/** * Updates photo * * @param PHOTO_BOL_Photo $photo * @return int */ public function updatePhoto(PHOTO_BOL_Photo $photo) { $this->photoDao->save($photo); $this->cleanListCache(); $event = new OW_Event(PHOTO_CLASS_EventHandler::EVENT_ON_PHOTO_EDIT, array('id' => $photo->id)); OW::getEventManager()->trigger($event); return $photo->id; }