Ejemplo n.º 1
0
 /**
  * Returns an Url object for node and language
  * @param \Cx\Core\ContentManager\Model\Entity\Node $node Node to get the Url of
  * @param int $lang (optional) Language to use, default is FRONTENT_LANG_ID
  * @param array $parameters (optional) HTTP GET parameters to append
  * @param string $protocol (optional) The protocol to use
  * @return \Cx\Core\Routing\Url Url object for the supplied module, cmd and lang
  */
 public static function fromNode($node, $lang = '', $parameters = array(), $protocol = '')
 {
     if ($lang == '') {
         $lang = FRONTEND_LANG_ID;
     }
     $page = $node->getPage($lang);
     return static::fromPage($page, $parameters, $protocol);
 }
 public function getPage($lang)
 {
     $this->_load();
     return parent::getPage($lang);
 }