/** * @deprecated * @return OW_Dispatcher */ public function getPhotoUrl($id, $preview = false, $hash = null, $dimension = NULL) { if (!$hash || $dimension === NULL) { /** @var $photo PHOTO_BOL_Photo */ $photo = $this->photoDao->findById($id); $hash = $photo->hash; $dimension = !empty($photo->dimension) ? $photo->dimension : FALSE; } return $this->photoDao->getPhotoUrlByType($id, $preview ? self::TYPE_PREVIEW : self::TYPE_MAIN, $hash, $dimension); }