コード例 #1
0
ファイル: task.php プロジェクト: raceface2nd/owncollab
 /**
  * @param $id
  * @return mixed
  */
 public function getById($id)
 {
     $project = $this->connect->select("*", $this->tableName, "id = :id", [':id' => $id]);
     if (count($project) === 1) {
         return $project[0];
     } else {
         return false;
     }
 }