/** * Loads the posts belonging to this category * * @return Fishpig_Wordpress_Model_Mysql4_Post_Collection */ public function getPostCollection() { return parent::getPostCollection()->addIsViewableFilter()->addTermIdFilter($this->getId(), $this->getTaxonomy()); }
/** * Retrieve the object resource model * * @return Fishpig_Wordpress_Model_Resource_Post_Collection_Abstract */ protected function _getObjectResourceModel() { return parent::getPostCollection(); }