public function __construct($isOptionKey = null, $sCallerPath = null, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework') { if (!$this->_isInstantiatable()) { return; } parent::__construct($isOptionKey, $sCallerPath ? trim($sCallerPath) : ($sCallerPath = is_admin() && (isset($GLOBALS['pagenow']) && in_array($GLOBALS['pagenow'], array('plugins.php')) || isset($_GET['page'])) ? LesserAdminPageFramework_Utility::getCallerScriptPath(__FILE__) : null), $sCapability, $sTextDomain); $this->oUtil->addAndDoAction($this, 'start_' . $this->oProp->sClassName, $this); }
public function __get($sName) { if ('aScriptInfo' === $sName) { $this->sCallerPath = $this->sCallerPath ? $this->sCallerPath : LesserAdminPageFramework_Utility::getCallerScriptPath(__FILE__); $this->aScriptInfo = $this->getCallerInfo($this->sCallerPath); return $this->aScriptInfo; } if ('aOptions' === $sName) { $this->aOptions = $this->_getOptions(); return $this->aOptions; } if ('aLastInput' === $sName) { $this->aLastInput = $this->_getLastInput(); return $this->aLastInput; } }