public function __construct($oCaller, $sCallerPath, $sClassName, $aisOptionKey, $sCapability = 'manage_options', $sTextDomain = 'amazon-auto-links') { $this->_sFormRegistrationHook = 'load_after_' . $sClassName; parent::__construct($oCaller, $sCallerPath, $sClassName, $sCapability, $sTextDomain, $this->sStructureType); $this->sTargetFormPage = $_SERVER['REQUEST_URI']; $this->_setOptionsProperties($aisOptionKey, $sClassName); $GLOBALS['aAmazonAutoLinks_AdminPageFramework']['aPageClasses'] = $this->getElementAsArray($GLOBALS, array('aAmazonAutoLinks_AdminPageFramework', 'aPageClasses')); $GLOBALS['aAmazonAutoLinks_AdminPageFramework']['aPageClasses'][$sClassName] = $oCaller; add_filter("option_page_capability_{$this->sOptionKey}", array($this, '_replyToGetCapability')); }
public function __construct($oCaller, $sCallerPath, $sClassName, $sCapability, $sTextDomain, $sStructureType) { parent::__construct($oCaller, $sCallerPath, $sClassName, $sCapability, $sTextDomain, $sStructureType); if (!$sCallerPath) { return; } switch ($this->_getCallerType($sCallerPath)) { case 'theme': add_action('after_switch_theme', array('AmazonAutoLinks_AdminPageFramework_WPUtility', 'flushRewriteRules')); break; case 'plugin': register_activation_hook($sCallerPath, array('AmazonAutoLinks_AdminPageFramework_WPUtility', 'flushRewriteRules')); register_deactivation_hook($sCallerPath, array('AmazonAutoLinks_AdminPageFramework_WPUtility', 'flushRewriteRules')); break; } }
public function __construct($oCaller, $sClassName, $sCapability = 'edit_posts', $sTextDomain = 'amazon-auto-links', $sStructureType = 'post_meta_box') { parent::__construct($oCaller, null, $sClassName, $sCapability, $sTextDomain, $sStructureType); }
public function __construct($oCaller, $sCallerPath, $sClassName, $sCapability = 'manage_options', $sTextDomain = 'amazon-auto-links', $sStructureType) { $this->_sFormRegistrationHook = 'load_' . $sClassName; parent::__construct($oCaller, $sCallerPath, $sClassName, $sCapability, $sTextDomain, $sStructureType); }