コード例 #1
0
ファイル: Application.php プロジェクト: kzfk/emlauncher
 public function refreshApiKey($con = null)
 {
     $this->row['api_key'] = ApplicationDb::makeApiKey();
     $sql = 'UPDATE application SET api_key = :api_key WHERE id = :id';
     $bind = array(':id' => $this->getId(), ':api_key' => $this->getApiKey());
     mfwDBIBase::query($sql, $bind, $con);
 }