initializeSession() public method

public initializeSession ( $create = true )
Example #1
0
 public function setSource($model, $data)
 {
     $this->app->initializeSession();
     if ($data === UNDEFINED || $data === null) {
         $data = '-';
     }
     if (!$_SESSION['ctl_data'][$data]) {
         $_SESSION['ctl_data'][$data] = array();
     }
     if (!$_SESSION['ctl_data'][$data][$model->table]) {
         $_SESSION['ctl_data'][$data][$model->table] = array();
     }
     $model->_table[$this->short_name] =& $_SESSION['ctl_data'][$data][$model->table];
 }