/** * Get the List of Posts * * @return string * * @access protected */ protected function getPostList() { $model = new aam_View_Post(); return $model->retrievePostList(); }
/** * Get the List of Posts * * @return string * * @access public */ public function postList() { if (aam_View_Collection::hasFeature(self::FEATURE_POST_ACCESS)) { $post = new aam_View_Post(); $response = $post->retrievePostList(); } else { $response = self::DEFAULT_AJAX_RESPONSE; } return $response; }