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')); }
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(); }
public function _replyTpSetAndGetInstance_oMsg() { $this->oMsg = AmazonAutoLinks_AdminPageFramework_Message::getInstance($this->oProp->sTextDomain); return $this->oMsg; }