getLatestComments() 공개 정적인 메소드

Get the latest comments for a given type
public static getLatestComments ( string $status, integer $limit = 10 ) : array
$status string The status for the comments to retrieve.
$limit integer The maximum number of items to retrieve.
리턴 array
예제 #1
0
 /**
  * Load the data
  */
 private function loadData()
 {
     $this->comments = BackendBlogModel::getLatestComments('published', 5);
     $this->numCommentStatus = BackendBlogModel::getCommentStatusCount();
 }