示例#1
0
 public function _afterLoad()
 {
     $this->setData('title', $this->getData('user_fullname') . ' (' . $this->getData('city_name') . ') ' . date('d.m.Y H:i', $this->getData('date')));
     $this->setData('img', '<img src="' . app::getUrl($this->getData('image')) . '" width="350px"/>');
     /** @var map_block_map_marker_content $content_block */
     $content_block = new map_block_map_marker_content();
     $content_block->setVar('event', $this);
     $this->setData('content', $content_block->getHtml());
     return $this;
 }
示例#2
0
 public function _afterLoad()
 {
     $this->setData('title', $this->getData('name'));
     $this->setData('img', '<img src="' . app::getUrl($this->getData('image')) . '" width="350px"/>');
     /** @var map_block_map_marker_content $content_block */
     $content_block = new map_block_map_marker_tradepoint_content();
     $content_block->setVar('tradepoint', $this);
     $this->setData('content', $content_block->getHtml());
     return $this;
 }
示例#3
0
 public function logoutAction()
 {
     app::getSession()->destroy();
     header('Location: ' . app::getUrl('map/index/activity'));
 }