/** * Updates the 'status' field of the clip object * * @param int $id * @param string $status * @return boolean */ public function updateClipStatus($id, $status) { $clip = $this->clipDao->findById($id); $newStatus = $status == 'approve' ? 'approved' : 'blocked'; $clip->status = $newStatus; $this->clipDao->save($clip); return $clip->id ? true : false; }