AdminPageFramework::__construct PHP Method

__construct() public method

public __construct ( $isOptionKey = null, $sCallerPath = null, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' )
    public function __construct($isOptionKey = null, $sCallerPath = null, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework')
    {
        if (!$this->_isInstantiatable()) {
            return;
        }
        parent::__construct($isOptionKey, $this->_getCallerPath($sCallerPath), $sCapability, $sTextDomain);
    }

Usage Example

 public function __construct($sOptionKey = null, $sCallerPath = null, $sCapability = 'manage_network', $sTextDomain = 'admin-page-framework')
 {
     if (!$this->_isInstantiatable()) {
         return;
     }
     $sCallerPath = $sCallerPath ? $sCallerPath : AdminPageFramework_Utility::getCallerScriptPath(__FILE__);
     parent::__construct($sOptionKey, $sCallerPath, $sCapability, $sTextDomain);
     new AdminPageFramework_Model_Menu__RegisterMenu($this, 'network_admin_menu');
 }
All Usage Examples Of AdminPageFramework::__construct