Inheritance: extends AdminPageFramework_Factory_Router
 protected function _loadFieldTypeDefinitions()
 {
     if (empty(self::$_aFieldTypeDefinitions)) {
         self::$_aFieldTypeDefinitions = AdminPageFramework_FieldTypeRegistration::register(array(), $this->oProp->sClassName, $this->oMsg);
     }
     $this->oProp->aFieldTypeDefinitions = $this->oUtil->addAndApplyFilters($this, array('field_types_admin_page_framework', "field_types_{$this->oProp->sClassName}"), self::$_aFieldTypeDefinitions);
 }
コード例 #2
0
 /**
  * Loads the default field type definition.
  * 
  * @since       2.1.5
  * @internal
  */
 public function _loadDefaultFieldTypeDefinitions()
 {
     if (empty(self::$_aFieldTypeDefinitions)) {
         // This class adds filters for the field type definitions so that framework's default field types will be added.
         self::$_aFieldTypeDefinitions = AdminPageFramework_FieldTypeRegistration::register(array(), $this->oProp->sClassName, $this->oMsg);
     }
     $this->oProp->aFieldTypeDefinitions = $this->oUtil->addAndApplyFilter($this, 'field_types_' . $this->oProp->sClassName, self::$_aFieldTypeDefinitions);
 }
コード例 #3
0
 /**
  * Sets up hooks and properties.
  * 
  * @internal
  */
 function __construct($oProp)
 {
     parent::__construct($oProp);
     if ($this->_isInThePage() && !$this->oProp->bIsAdminAjax) {
         if (is_network_admin()) {
             add_action('network_admin_notices', array($this, '_replyToPrintSettingNotice'));
         } else {
             add_action('admin_notices', array($this, '_replyToPrintSettingNotice'));
         }
     }
 }
コード例 #4
0
 public function __construct($oProp)
 {
     parent::__construct($oProp);
     $this->oProp->aFieldCallbacks = $this->_getFormElementCallbacks();
     if (!$this->_isInThePage()) {
         return;
     }
     if ($this->oProp->bIsAdminAjax) {
         return;
     }
     if (is_network_admin()) {
         add_action('network_admin_notices', array($this, '_replyToPrintSettingNotice'));
     } else {
         add_action('admin_notices', array($this, '_replyToPrintSettingNotice'));
     }
 }
コード例 #5
0
 public function __construct($oProp)
 {
     parent::__construct($oProp);
     new AdminPageFramework_Factory_View__SettingNotice($this, $this->oProp->sSettingNoticeActionHook);
 }