/** * main class constructor */ public function __construct($sMetaBoxID, $sTitle, $asPageSlugs = array(), $sContext = 'normal', $sPriority = 'default', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework') { parent::__construct($sMetaBoxID, $sTitle, $asPageSlugs, $sContext, $sPriority, $sCapability, $sTextDomain); add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts')); }
/** * return config instance for the module * @return null */ public function get_config() { if (empty($this->config)) { $configs = HW_Config_Module_Section::get_config(); foreach ($configs as $config) { if (isset($config['module']) && $config['module'] == $this && isset($config['config'])) { $this->config = $config['config']; } } } return $this->config; }