AdminPageFramework_PostType_Router::__construct PHP Method

__construct() public method

public __construct ( $oProp )
    public function __construct($oProp)
    {
        parent::__construct($oProp);
        $this->oUtil->registerAction('init', array($this, '_replyToDetermineToLoad'));
        $this->oUtil->registerAction('current_screen', array($this, '_replyToDetermineToLoadAdmin'));
    }

Usage Example

 public function __construct($oProp)
 {
     parent::__construct($oProp);
     add_action("set_up_{$this->oProp->sClassName}", array($this, '_replyToRegisterPostType'), 999);
     if ($this->oProp->bIsAdmin) {
         add_action('load_' . $this->oProp->sPostType, array($this, '_replyToSetUpHooksForModel'));
         if ($this->oProp->sCallerPath) {
             new AdminPageFramework_PostType_Model__FlushRewriteRules($this);
         }
     }
 }
All Usage Examples Of AdminPageFramework_PostType_Router::__construct