/** * Get Post Tree * * @return string * * @access protected */ protected function getPostTree() { $model = new aam_View_Post(); return $model->getPostTree(); }
/** * Get Post Tree * * @return string * * @access public */ public function postTree() { if (aam_View_Collection::hasFeature(self::FEATURE_POST_ACCESS)) { $post = new aam_View_Post(); $response = $post->getPostTree(); } else { $response = self::DEFAULT_AJAX_RESPONSE; } return $response; }