BlogPost::existsEntry PHP Method

existsEntry() public method

指定した月の記事が存在するかチェックする
public existsEntry ( integer $blogContentId, integer $year, integer $month ) : boolean
$blogContentId integer
$year integer
$month integer
return boolean
    public function existsEntry($blogContentId, $year, $month)
    {
        if ($this->find('first', ['fields' => ['BlogPost.id'], 'conditions' => $this->_getEntryDatesConditions($blogContentId, $year, $month), 'recursive' => -1, 'cache' => false])) {
            return true;
        } else {
            return false;
        }
    }