__construct() публичный Метод

public __construct ( $oCaller, $sCallerPath, $sClassName, $sCapability, $sTextDomain, $sStructureType )
 public function __construct($oCaller, $sCallerPath, $sClassName, $aisOptionKey, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework')
 {
     parent::__construct($oCaller, $sCallerPath, $sClassName, $sCapability, $sTextDomain, $this->sFieldsType);
     $this->sTargetFormPage = $_SERVER['REQUEST_URI'];
     $this->_setOptionsProperties($aisOptionKey, $sClassName);
     $GLOBALS['aAdminPageFramework']['aPageClasses'] = isset($GLOBALS['aAdminPageFramework']['aPageClasses']) && is_array($GLOBALS['aAdminPageFramework']['aPageClasses']) ? $GLOBALS['aAdminPageFramework']['aPageClasses'] : array();
     $GLOBALS['aAdminPageFramework']['aPageClasses'][$sClassName] = $oCaller;
     add_filter("option_page_capability_{$this->sOptionKey}", array($this, '_replyToGetCapability'));
 }
 public function __construct($oCaller, $sCallerPath, $sClassName, $aisOptionKey, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework')
 {
     $this->_sFormRegistrationHook = 'load_after_' . $sClassName;
     parent::__construct($oCaller, $sCallerPath, $sClassName, $sCapability, $sTextDomain, $this->sStructureType);
     $this->sTargetFormPage = $_SERVER['REQUEST_URI'];
     $this->_setOptionsProperties($aisOptionKey, $sClassName);
     $GLOBALS['aAdminPageFramework']['aPageClasses'] = $this->getElementAsArray($GLOBALS, array('aAdminPageFramework', 'aPageClasses'));
     $GLOBALS['aAdminPageFramework']['aPageClasses'][$sClassName] = $oCaller;
     add_filter("option_page_capability_{$this->sOptionKey}", array($this, '_replyToGetCapability'));
 }
 public function __construct($oCaller, $sCallerPath, $sClassName, $sCapability, $sTextDomain, $sFieldsType)
 {
     parent::__construct($oCaller, $sCallerPath, $sClassName, $sCapability, $sTextDomain, $sFieldsType);
     if (!$sCallerPath) {
         return;
     }
     switch ($this->_getCallerType($sCallerPath)) {
         case 'theme':
             add_action('after_switch_theme', array('AdminPageFramework_WPUtility', 'FlushRewriteRules'));
             break;
         case 'plugin':
             register_activation_hook($sCallerPath, array('AdminPageFramework_WPUtility', 'FlushRewriteRules'));
             register_deactivation_hook($sCallerPath, array('AdminPageFramework_WPUtility', 'FlushRewriteRules'));
             break;
     }
 }
 function __construct($oCaller, $sClassName, $sCapability = 'edit_posts', $sTextDomain = 'admin-page-framework', $sFieldsType = 'post_meta_box')
 {
     parent::__construct($oCaller, null, $sClassName, $sCapability, $sTextDomain, $sFieldsType);
     // meta boxes don't need the caller script path.
 }
 public function __construct($oCaller, $sCallerPath, $sClassName, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework', $sStructureType)
 {
     $this->_sFormRegistrationHook = 'load_' . $sClassName;
     $this->sSettingNoticeActionHook = 'load_' . $sClassName;
     parent::__construct($oCaller, $sCallerPath, $sClassName, $sCapability, $sTextDomain, $sStructureType);
 }
 public function __construct($oCaller, $sClassName, $sCapability = 'edit_posts', $sTextDomain = 'admin-page-framework', $sFieldsType = 'post_meta_box')
 {
     parent::__construct($oCaller, null, $sClassName, $sCapability, $sTextDomain, $sFieldsType);
 }
 /**
  * Constructs the instance of AdminPageFramework_Property_Page class object.
  * 
  * @remark      Used by the setInPageTabsVisibility() method.
  * @since       2.0.0
  * @since       2.1.5   The $oCaller parameter was added.
  * @return      void
  */
 public function __construct($oCaller, $sCallerPath, $sClassName, $sOptionKey, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework')
 {
     parent::__construct($oCaller, $sCallerPath, $sClassName, $sCapability, $sTextDomain, $this->sFieldsType);
     $this->sTargetFormPage = $_SERVER['REQUEST_URI'];
     $this->sOptionKey = $sOptionKey ? $sOptionKey : $sClassName;
     $this->_bDisableSavingOptions = '' === $sOptionKey ? true : false;
     /* Store the page class objects in the global storage. These will be referred by the meta box class to determine if the passed page slug's screen ID (hook suffix). */
     $GLOBALS['aAdminPageFramework']['aPageClasses'] = isset($GLOBALS['aAdminPageFramework']['aPageClasses']) && is_array($GLOBALS['aAdminPageFramework']['aPageClasses']) ? $GLOBALS['aAdminPageFramework']['aPageClasses'] : array();
     $GLOBALS['aAdminPageFramework']['aPageClasses'][$sClassName] = $oCaller;
     // The meta box class for pages needs to access the object.
     // The capability for the settings. $this->sOptionKey is the part that is set in the settings_fields() function.
     // This prevents the "Cheatin' huh?" message.
     add_filter("option_page_capability_{$this->sOptionKey}", array($this, '_replyToGetCapability'));
 }