AdminPageFramework_PostType_Model::__construct PHP Метод

__construct() публичный Метод

public __construct ( $oProp )
    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);
            }
        }
    }

Usage Example

 function __construct($oProp)
 {
     parent::__construct($oProp);
     if ($this->_isInThePage()) {
         add_action('restrict_manage_posts', array($this, '_replyToAddAuthorTableFilter'));
         add_action('restrict_manage_posts', array($this, '_replyToAddTaxonomyTableFilter'));
         add_filter('parse_query', array($this, '_replyToGetTableFilterQueryForTaxonomies'));
         add_action('admin_head', array($this, '_replyToPrintStyle'));
     }
     add_action('the_content', array($this, '_replyToFilterPostTypeContent'));
 }
All Usage Examples Of AdminPageFramework_PostType_Model::__construct