コード例 #1
0
ファイル: PrimaryKey.php プロジェクト: apioo/fusio-impl
 public function apply($value)
 {
     $id = (int) $value;
     if (empty($id)) {
         return false;
     }
     $record = $this->table->get($id);
     if ($record instanceof RecordInterface) {
         return $id;
     } else {
         return false;
     }
 }