Changeset 166 for Dev/trunk/classes
- Timestamp:
- 11/23/11 17:15:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/pipelineSequencer.php
r164 r166 1 1 <?php 2 3 2 /* 4 3 * To change this template, choose Tools | Templates … … 27 26 $stringPipelineUpdated = ""; 28 27 $numberOfSteps = 0; 29 28 30 29 if (is_array($this->loadedSession->pipeline)) { 31 30 foreach ($this->loadedSession->pipeline as $object) { 32 31 $stringPipeline .= "$object->uid,"; 33 $stringPipelineType .= get_class($object) .",";32 $stringPipelineType .= get_class($object) . ","; 34 33 $stringPipelineUpdated .= "1,"; 35 34 $numberOfSteps++; 36 37 35 } 38 $stringPipeline = rtrim($stringPipeline, ",");39 $stringPipelineType = rtrim($stringPipelineType, ",");40 $stringPipelineUpdated = rtrim($stringPipelineUpdated, ",");41 42 36 } else { 43 37 $stringPipeline = $this->loadedSession->pipeline; … … 69 63 <input type="hidden" name="pipelineUpDated" id="pipelineUpdatedField" value="<?php echo $stringPipelineUpdated; ?>" /> 70 64 <input type="hidden" name="numSteps" id="numSteps" value="<?php echo $numberOfSteps; ?>" /> 65 <input type="hidden" name="session" id="sessionField" value="<?php echo $this->loadedSession->uid; ?>" /> 71 66 </div> 72 67 </fieldset> … … 108 103 if (isset($_SESSION['updateNeeded'])) { // user has performed an operation that flags session to be reloaded from DB, or is first load of page for that session 109 104 $sessionResults = $this->dbi->get("Session", array("uid" => $currentSession)); 110 105 111 106 if (count($sessionResults) > 0) { 112 107 $_SESSION['localSessionCopy'] = $sessionResults[0]; … … 116 111 } 117 112 } 118 //var_dump($_SESSION['localSessionCopy']); 119 113 120 114 if (isset($_SESSION['localSessionCopy']) && !empty($_SESSION['localSessionCopy'])) { 121 115 122 116 $this->loadedSession = $_SESSION['localSessionCopy']; 123 117 unset($_SESSION['updateNeeded']); 124 118 } 125 126 119 } 127 120 … … 180 173 } 181 174 182 183 175 } 184 176 ?>
Note: See TracChangeset
for help on using the changeset viewer.