Kimai_Database_Mysql::isValidProjectId PHP Méthode

isValidProjectId() public méthode

checks if given $projectId exists in the db
public isValidProjectId ( integer $projectId ) : boolean
$projectId integer
Résultat boolean
    public function isValidProjectId($projectId)
    {
        $table = $this->getProjectTable();
        $filter = array('projectID' => $projectId, 'trash' => 0);
        return $this->rowExists($table, $filter);
    }
Kimai_Database_Mysql