Esempio n. 1
0
 function findClass($class_id)
 {
     $location = new ContentClass($this->dbcon, $class_id);
     $this->current_section = $location->getSection();
     $this->current_element = $this->_trimText($location->getName());
     $this->content_type = AMP_CONTENT_PAGETYPE_LIST;
 }
Esempio n. 2
0
 /**
  * set the ContentClass for use on the current page 
  * 
  * @param   integer   $class_id     The database id of the ContentClass to use 
  * @access  public
  * @since   3.5.3
  * @return  void
  */
 function setClass($class_id)
 {
     require_once 'AMP/Content/Class.inc.php';
     $contentClass = new ContentClass($this->dbcon, $class_id);
     if (!$contentClass->hasData()) {
         return false;
     }
     $this->class =& $contentClass;
     $this->section_id = $contentClass->getSection();
     $this->_globalizePageVars();
 }