コード例 #1
0
 public function __construct($oMsg = null)
 {
     if ($this->hasBeenCalled(get_class($this))) {
         return;
     }
     $this->oMsg = $oMsg ? $oMsg : AmazonAutoLinks_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'));
 }
コード例 #2
0
 function __construct($asClassName = 'admin_page_framework', $asFieldTypeSlug = null, $oMsg = null, $bAutoRegister = true)
 {
     $this->aFieldTypeSlugs = empty($asFieldTypeSlug) ? $this->aFieldTypeSlugs : (array) $asFieldTypeSlug;
     $this->oMsg = $oMsg ? $oMsg : AmazonAutoLinks_AdminPageFramework_Message::getInstance();
     if ($bAutoRegister) {
         foreach ((array) $asClassName as $_sClassName) {
             add_filter("field_types_{$_sClassName}", array($this, '_replyToRegisterInputFieldType'));
         }
     }
     $this->construct();
 }
コード例 #3
0
 public function _replyTpSetAndGetInstance_oMsg()
 {
     $this->oMsg = AmazonAutoLinks_AdminPageFramework_Message::getInstance($this->oProp->sTextDomain);
     return $this->oMsg;
 }