コード例 #1
0
 /**
  * Singleton object,call getInstance()
  */
 function __construct()
 {
     parent::__construct();
     $this->m_path =& xPath::getCurrent();
     $mod =& x_getModuleManager();
     $components = $mod->invokeAll('xh_documentComponents', array(&$this->m_path));
     $this->m_components = $components->getValidValues(true);
     $this->m_component_view = new xDocumentView();
 }
コード例 #2
0
 /**
  * Outputs a link based on given params.
  *
  * @return string
  * @static
  */
 function renderLink($lang, $resource, $action, $type = NULL, $id = NULL, $page = NULL, $params = array(), $forward_params = NULL)
 {
     $path = new xPath($lang, $resource, $action, $type, $id, $page, $params);
     return $path->getLink($forward_params);
 }