예제 #1
0
 /**
  * Set the current sfSympalContent instance for this sympal context
  *
  * @param sfSympalContent $content 
  * @return void
  */
 public function setCurrentContent(sfSympalContent $content)
 {
     $this->_currentContent = $content;
     if (!$this->_site) {
         $this->_site = $content->getSite();
     }
     $this->_dispatcher->notify(new sfEvent($this->_currentContent, 'sympal.content.set_content'));
 }
예제 #2
0
 /**
  * Set the current sfSympalContent instance for this sympal context
  *
  * @param sfSympalContent $content 
  * @return void
  */
 public function setCurrentContent(sfSympalContent $content)
 {
     $this->_currentContent = $content;
     if (!$this->_site) {
         $this->_site = $content->getSite();
     }
     if ($menuItem = $content->getMenuItem()) {
         $this->_currentMenuItem = $menuItem;
     }
 }