Ejemplo n.º 1
0
 function __construct()
 {
     //		global $ilDB;
     $this->global_cache = ilCachedComponentData::getInstance();
     $rec = $this->global_cache->lookCompId($this->getName(), $this->getComponentType());
     $this->setId($rec["id"]);
     $this->setPluginSlots(ilComponent::lookupPluginSlots($this->getComponentType(), $this->getName()));
     //
     //		echo '<pre>' . print_r($data, 1) . '</pre>';
     //
     //
     //		$set = $ilDB->queryF("SELECT * FROM il_component WHERE type = %s ".
     //			" AND name = %s", array("text", "text"),
     //			array($this->getComponentType(), $this->getName()));
     //		$rec = $ilDB->fetchAssoc($set);
     //
     //		$this->setId($rec["id"]);
     //		$this->setPluginSlots(ilComponent::lookupPluginSlots(
     //			$this->getComponentType(), $this->getName()));
 }