reload() public method

public reload ( $data, $commits = null )
示例#1
0
文件: gitblog.php 项目: rsms/gitblog
 function reload($data, $commits)
 {
     parent::reload($data, $commits);
     # apply info from commits, like publish date and author
     $this->applyInfoFromCommits($commits);
     # load actual comments
     $db = new GBCommentDB();
     $db->loadString($data);
     $this->comments = $db->get();
     # apply filters
     gb_cfilter::apply('post-reload-comments', $this);
 }