コード例 #1
0
ファイル: TBGIssue.class.php プロジェクト: oparoz/thebuggenie
 public function countFiles()
 {
     if ($this->_num_files === null) {
         if ($this->_files !== null) {
             $this->_num_files = count($this->_files);
         } else {
             $this->_num_files = TBGFile::countByIssueID($this->getID());
         }
     }
     return $this->_num_files;
 }