getInstance() публичный статический Метод

public static getInstance ( $sTextDomain = 'admin-page-framework' )
 public function __construct($aFieldTypeDefinitions, array $aFieldErrors, $oMsg = null)
 {
     $this->aFieldTypeDefinitions = $aFieldTypeDefinitions;
     $this->aFieldErrors = $aFieldErrors;
     $this->oMsg = $oMsg ? $oMsg : AdminPageFramework_Message::getInstance();
     $this->_loadScripts();
 }
 /**
  * Sets up properties and hooks.
  * 
  * @since 3.0.0
  * @since 3.0.4 The $aFieldErrors parameter was added.
  */
 public function __construct($aFieldTypeDefinitions, array $aFieldErrors, $oMsg = null)
 {
     $this->aFieldTypeDefinitions = $aFieldTypeDefinitions;
     // used to merge the field definition array with the default field type definition.
     $this->aFieldErrors = $aFieldErrors;
     $this->oMsg = $oMsg ? $oMsg : AdminPageFramework_Message::getInstance();
     $this->_loadScripts();
 }
 function __construct($asClassName = 'admin_page_framework', $asFieldTypeSlug = null, $oMsg = null, $bAutoRegister = true)
 {
     $this->aFieldTypeSlugs = empty($asFieldTypeSlug) ? $this->aFieldTypeSlugs : (array) $asFieldTypeSlug;
     $this->oMsg = $oMsg ? $oMsg : AdminPageFramework_Message::getInstance();
     if ($bAutoRegister) {
         foreach ((array) $asClassName as $_sClassName) {
             add_filter("field_types_{$_sClassName}", array($this, '_replyToRegisterInputFieldType'));
         }
     }
     $this->construct();
 }
 public function __construct($oMsg = null)
 {
     if ($this->hasBeenCalled(get_class($this))) {
         return;
     }
     $this->oMsg = $oMsg ? $oMsg : AdminPageFramework_Message::getInstance();
     $this->registerAction('customize_controls_print_footer_scripts', array($this, '_replyToPrintScript'));
     $this->registerAction('admin_print_footer_scripts', array($this, '_replyToPrintScript'));
     $this->construct();
     add_action('wp_enqueue_scripts', array($this, 'load'));
 }
 /**
  * Sets up hooks and properties.
  * @internal
  */
 function __construct($asClassName, $asFieldTypeSlug = null, $oMsg = null, $bAutoRegister = true)
 {
     $this->aFieldTypeSlugs = empty($asFieldTypeSlug) ? $this->aFieldTypeSlugs : (array) $asFieldTypeSlug;
     $this->oMsg = $oMsg ? $oMsg : AdminPageFramework_Message::getInstance();
     // This automatically registers the field type. The build-in ones will be registered manually so it will be skipped.
     if ($bAutoRegister) {
         foreach ((array) $asClassName as $_sClassName) {
             add_filter("field_types_{$_sClassName}", array($this, '_replyToRegisterInputFieldType'));
         }
     }
     // User constructor
     $this->construct();
 }
 public function _replyTpSetAndGetInstance_oMsg()
 {
     $this->oMsg = AdminPageFramework_Message::getInstance($this->oProp->sTextDomain);
     return $this->oMsg;
 }
 /**
  * Responds to a request of an undefined property.
  * 
  * This is meant to instantiate classes only when necessary, rather than instantiating them all at once.
  * @internal
  */
 function __get($sPropertyName)
 {
     switch ($sPropertyName) {
         case 'oUtil':
             $this->oUtil = new AdminPageFramework_WPUtility();
             return $this->oUtil;
         case 'oDebug':
             $this->oDebug = new AdminPageFramework_Debug();
             return $this->oDebug;
         case 'oMsg':
             $this->oMsg = AdminPageFramework_Message::getInstance($this->oProp->sTextDomain);
             return $this->oMsg;
         case 'oForm':
             $this->oForm = $this->_getFormInstance($this->oProp);
             return $this->oForm;
         case 'oHeadTag':
             // 3.3.0+ for backward compatibility
             return $this->oResource;
         case 'oResource':
             // 3.3.0+
             $this->oResource = $this->_getResourceInstance($this->oProp);
             return $this->oResource;
         case 'oHelpPane':
             $this->oHelpPange = $this->_getHelpPaneInstance($this->oProp);
             return $this->oHelpPange;
         case 'oLink':
             $this->oLink = $this->_getLinkInstancce($this->oProp, $this->oMsg);
             return $this->oLink;
         case 'oPageLoadInfo':
             $this->oPageLoadInfo = $this->_getPageLoadInfoInstance($this->oProp, $this->oMsg);
             return $this->oPageLoadInfo;
     }
 }