/** * Updates photo album * * @param PHOTO_BOL_PhotoAlbum $album * @return int */ public function updateAlbum(PHOTO_BOL_PhotoAlbum $album) { $this->photoAlbumDao->save($album); $event = new OW_Event(PHOTO_CLASS_EventHandler::EVENT_ON_ALBUM_EDIT, array('id' => $album->id)); OW::getEventManager()->trigger($event); return $album->id; }