public function reflectApplyFunction($sName, array $aPath, $sMode, $bRead = false, $sArguments = '', array $aArguments = array()) { switch ($sName) { case 'init': $result = $this->reflectFunctionInit($this->getParser()->getPather()->parseArguments($sArguments, $sMode, $bRead, false)); break; case 'max-size': $result = ini_get('upload_max_filesize') . 'B'; break; //case 'extensions' : $result = implode(', ', $this->getExtensions()); break; //case 'extensions' : $result = implode(', ', $this->getExtensions()); break; case 'extensions': $result = $this->reflectFunctionExtensions($aPath, $sMode, $aArguments); break; case 'directory': $result = parent::reflectApplyFunction('setDirectory', $aPath, $sMode, $bRead, $sArguments, $aArguments); break; case 'position': $result = ''; break; default: $result = parent::reflectApplyFunction($sName, $aPath, $sMode, $bRead, $sArguments, $aArguments); } return $result; }
public function reflectApplyDefault($sPath, array $aPath = array(), $sMode = '', $bRead = false, array $aArguments = array()) { if ($bRead && $this->useScript()) { $sName = str_replace('@', '', $sPath); $result = $this->loadProperty($sName); } else { $result = parent::reflectApplyDefault($sPath, $aPath, $sMode, $bRead); } return $result; }
public function reflectApplyFunction($sName, array $aPath, $sMode, $bRead = false, $sArguments = '', array $aArguments = array()) { switch ($sName) { case 'test': $result = 'Hello world !'; break; default: $result = parent::reflectApplyFunction($sName, $aPath, $sMode, $bRead, $sArguments, $aArguments); } return $result; }
public function reflectApplyFunction($sName, array $aPath, $sMode, $bRead = false, $sArguments = '', array $aArguments = array()) { switch ($sName) { case 'check-active': $node = $this->getOptions(); if (!($sPath = $node->read('@match', false))) { $sPath = $node->read('@href'); } $result = $this->getDummy()->call('checkActive', array($sPath)); break; default: $result = parent::reflectApplyFunction($sName, $aPath, $sMode, $bRead, $sArguments, $aArguments); } return $result; }
public function reflectApplyDefault($sPath, array $aPath, $sMode, $bRead = false, array $aArguments = array()) { return parent::reflectApplyDefault($sPath, $aPath, $sMode, $bRead); }