Beispiel #1
0
 public function GenerateMeta_Restaurant_Index(Application_Model_City $city, Application_Model_Restaurant $restaurant)
 {
     $this->view->headTitle(join(' ', array($this->view->translate->_('Ресторан ') . $restaurant->getName() . '.', $this->view->translate->_('AzRestoran, все рестораны, бары, кафе, клубы, пабы в ') . $city->getName())));
     $this->view->headMeta()->appendName('description', '');
 }
 public function GetRestaurantMapData(Application_Model_Restaurant $restaurant)
 {
     $view = Zend_Layout::getMvcInstance()->getView();
     return array('logo' => $restaurant->getGallery()->getPosterPhoto()->getPath(), 'name' => $restaurant->getContent()->getName(), 'url' => $view->url(array('city-alias' => $view->city->getAlias(), 'restaurant-alias' => $restaurant->getAlias()), 'restaurant-show'), 'commentUrl' => $view->getCommentablePageUrl($restaurant), 'address' => $restaurant->getContent()->getAddress(), 'locationLat' => $restaurant->getLocationLat(), 'locationLng' => $restaurant->getLocationLng(), 'commentsCount' => (new Application_Model_Comment_Count_Facade($restaurant))->getCommentsCount());
 }