Changeset 468 for trunk/lib/PageSequence.inc.php
- Timestamp:
- Feb 20, 2014 3:03:59 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:mergeinfo
set to
/branches/eli_branch merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/lib/PageSequence.inc.php
r396 r468 35 35 class PageSequence 36 36 { 37 var$current_step_id = 0;38 var$start_url;39 var$sequence_title = '';40 var$seq = '_sequence_';41 var$idle_timeout;37 public $current_step_id = 0; 38 public $start_url; 39 public $sequence_title = ''; 40 public $seq = '_sequence_'; 41 public $idle_timeout; 42 42 43 43 /** … … 47 47 * @access public 48 48 */ 49 function PageSequence($params)49 public function __construct($params) 50 50 { 51 51 if (isset($params['sequence_title'])) { … … 84 84 * @access public 85 85 */ 86 function addStep($step_id, $params)86 public function addStep($step_id, $params) 87 87 { 88 88 // Keys for the steps array cannot be numeric. … … 114 114 * @return bool true on success, false on failure 115 115 */ 116 function setFeature($step_id=null, $features)116 public function setFeature($step_id=null, $features) 117 117 { 118 118 $pos = isset($step_id) ? $this->getPosition($step_id) : $this->getPosition(); … … 134 134 * @return mixed Value stored in session. 135 135 */ 136 function getFeature($step_id, $key, $default='')136 public function getFeature($step_id, $key, $default='') 137 137 { 138 138 $pos = isset($step_id) ? $this->getPosition($step_id) : $this->getPosition(); … … 151 151 * @access public 152 152 */ 153 function setCurrent($step_id)153 public function setCurrent($step_id) 154 154 { 155 155 $app =& App::getInstance(); … … 171 171 * @access public 172 172 */ 173 function getID($pos=null)173 public function getID($pos=null) 174 174 { 175 175 if (isset($pos)) { … … 188 188 * @access public 189 189 */ 190 function getPosition($step_id=null)190 public function getPosition($step_id=null) 191 191 { 192 192 // Get current step id if step not provided. … … 217 217 * @access public 218 218 */ 219 function getRequiredID($curr_step_id)219 public function getRequiredID($curr_step_id) 220 220 { 221 221 if ('' === $curr_step_id) { … … 242 242 * @access public 243 243 */ 244 function getNextID()244 public function getNextID() 245 245 { 246 246 // Loop through all steps. … … 263 263 * @access public 264 264 */ 265 function complete($step_id=null)265 public function complete($step_id=null) 266 266 { 267 267 $pos = isset($step_id) ? $this->getPosition($step_id) : $this->getPosition(); … … 277 277 * @access public 278 278 */ 279 function printEditLink($step_id=null)279 public function printEditLink($step_id=null) 280 280 { 281 281 $app =& App::getInstance(); … … 296 296 * @access public 297 297 */ 298 function setDataDefault($data_key, $data_val)298 public function setDataDefault($data_key, $data_val) 299 299 { 300 300 if (!isset($_SESSION[$this->seq]['data'][$data_key])) { … … 310 310 * @access public 311 311 */ 312 function getData($data_key=null)312 public function getData($data_key=null) 313 313 { 314 314 if (!isset($data_key)) { … … 328 328 * @access public 329 329 */ 330 function clearData($data_key=null)330 public function clearData($data_key=null) 331 331 { 332 332 if (isset($data_key)) { … … 342 342 * Deletes all data that are older than auto_timeout. Set current time if not not expired or not set. 343 343 */ 344 function _auto_timeout()344 private function _auto_timeout() 345 345 { 346 346 $app =& App::getInstance(); … … 363 363 * @access public 364 364 */ 365 function registerData($step_data)365 public function registerData($step_data) 366 366 { 367 367 $_SESSION[$this->seq]['data'] = array_merge($_SESSION[$this->seq]['data'], $step_data); … … 372 372 * 373 373 */ 374 function startOver()374 public function startOver() 375 375 { 376 376 $this->current_step_id = 0; … … 383 383 } // END CLASS 384 384 385 ?>
Note: See TracChangeset
for help on using the changeset viewer.