Exemplo n.º 1
0
 protected function loadElementRef(fs\file $file = null)
 {
     if ($file) {
         $this->getParser()->changeMode('view');
         $result = parent::loadElementRef($file);
         $this->getParser()->resetMode();
     } else {
         $result = parent::loadElementRef();
     }
     return $result;
 }
Exemplo n.º 2
0
 public function reflectApplyFunction($sName, array $aPath, $sMode, $bRead = false, $sArguments = '', array $aArguments = array())
 {
     switch ($sName) {
         case 'values':
             $result = $this->reflectValues();
             break;
         case 'extract':
             $result = $this->reflectFunctionExtract($aPath, $sMode, $aArguments, $bRead);
             break;
         case 'join':
             $result = $this->reflectFunctionJoin($aPath, $sMode, $aArguments, $bRead);
             break;
         default:
             $result = parent::reflectApplyFunction($sName, $aPath, $sMode, $bRead, $sArguments, $aArguments);
     }
     return $result;
 }
Exemplo n.º 3
0
 protected function loadDistinctElement(Foreign $el)
 {
     return $el->getElementRef();
 }