예제 #1
0
 public function update($applicationId, $privacy)
 {
     $applicationDb = new Shared_Db_Table_Application();
     try {
         $applicationDb->getAdapter()->beginTransaction();
         $applicationId = $applicationDb->update(array('privacy' => (string) $privacy), $applicationDb->getAdapter()->quoteInto('id = ?', $applicationId));
         $applicationDb->getAdapter()->commit();
     } catch (Exception $e) {
         $applicationDb->getAdapter()->rollBack();
         throw $e;
     }
     return $this;
 }