Ejemplo n.º 1
0
 /**
  * Returns GP / ENV vars
  *
  * @param string $var Identifier
  * @return mixed The value of the variable pointed to.
  * @access private
  */
 protected function getVariable($var)
 {
     $vars = explode(':', $var, 2);
     $val = parent::getVariableCommon($vars);
     return $val;
 }
Ejemplo n.º 2
0
 /**
  * Returns GP / ENV / TSFE vars
  *
  * @param string $var Identifier
  * @return mixed The value of the variable pointed to or NULL if variable did not exist
  */
 protected function getVariable($var)
 {
     $vars = explode(':', $var, 2);
     $val = parent::getVariableCommon($vars);
     if (is_null($val)) {
         $splitAgain = explode('|', $vars[1], 2);
         $k = trim($splitAgain[0]);
         if ($k) {
             switch ((string) trim($vars[0])) {
                 case 'TSFE':
                     $val = $this->getGlobal('TSFE|' . $vars[1]);
                     break;
             }
         }
     }
     return $val;
 }