예제 #1
0
파일: News.php 프로젝트: RayManOff/my-blog
 public function getAuthor()
 {
     if (!empty($this->data['author_id'])) {
         return Author::findOneById($this->data['author_id']);
     } else {
         return false;
     }
 }