Changeset 136 for trunk/lib/PageSequence.inc.php
- Timestamp:
- Jun 3, 2006 7:47:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/PageSequence.inc.php
r42 r136 4 4 * Code by Strangecode :: www.strangecode.com :: This document contains copyrighted information 5 5 * 6 * The PageSequence ::class provides an interface to simplify the creation of a multi-step form.6 * The PageSequence class provides an interface to simplify the creation of a multi-step form. 7 7 * 8 8 * @requires This class requires Prefs.inc.php … … 133 133 function setCurrent($step_id) 134 134 { 135 $app =& App::getInstance(); 136 135 137 if (false !== ($pos = $this->getPosition($step_id))) { 136 138 // Specified step exists (even if numeric). … … 138 140 } else { 139 141 // Step with specified key does not exist. 140 App::logMsg(sprintf(_("Step %s not defined in sequence %s"), $step_id, $this->sequence_title), LOG_INFO, __FILE__, __LINE__);142 $app->logMsg(sprintf(_("Step %s not defined in sequence %s"), $step_id, $this->sequence_title), LOG_INFO, __FILE__, __LINE__); 141 143 return false; 142 144 } … … 257 259 function printEditLink($step_id=null) 258 260 { 261 $app =& App::getInstance(); 262 259 263 $pos = isset($step_id) ? $this->getPosition($step_id) : $this->getPosition(); 260 264 if ($_SESSION[$this->seq]['steps'][$pos]['editable']) { 261 printf('[<a href="%s">%s</a>]', App::oHREF($_SERVER['PHP_SELF'] . '?step=' . $pos . '&boomerang=confirmation'), _("edit"));265 printf('[<a href="%s">%s</a>]', $app->oHREF($_SERVER['PHP_SELF'] . '?step=' . $pos . '&boomerang=confirmation'), _("edit")); 262 266 } 263 267 } … … 320 324 function _auto_timeout() 321 325 { 326 $app =& App::getInstance(); 327 322 328 if (isset($_SESSION[$this->seq]['last_access_time']) 323 329 && $_SESSION[$this->seq]['last_access_time'] < time() - $this->idle_timeout) { 324 330 // Session has expired, flush all vars to start over. 325 331 $this->startOver(); 326 App::dieURL($this->start_url);332 $app->dieURL($this->start_url); 327 333 } else { 328 334 // Set timer.
Note: See TracChangeset
for help on using the changeset viewer.