コード例 #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;
     }
 }