Exemple #1
0
 /**
  * @access private
  */
 function BeforeGenerate()
 {
     parent::BeforeGenerate();
     if ($this->DataSource) {
         $this->Content = $this->DataSource->GetField($this->Field);
         //$this->Debug("Content = [" . $this->Content . "]");
         if ($this->Content == '') {
             //$this->Debug("DBText Content is blank");
             $this->Debug($this->DataSource->Result ? 'Result ok' : 'Result bad');
         }
     } else {
         $this->Debug("Bad DataSource");
     }
     //echo "[$this->Content]<br>;
 }
Exemple #2
0
 /**
  * @access private
  */
 function GetContent()
 {
     //$GLOBALS[TPMODULEFLAG] = true;
     //echo "Getting TTpModule Content [$this->ModuleFilename]<br>";
     //ob_start();
     //include $this->ModuleName;
     //$this->Content = ob_get_contents();
     $this->Content = $this->ModulePage->Generate();
     //$this->Content = "Getting TTpModule Content [$this->ModuleFilename]";
     //ob_end_clean();
     return parent::GetContent();
 }
Exemple #3
0
 function Dump()
 {
     parent::Dump();
     echo "DataSource: [" . $this->DataSource->Name . "]<br>";
     echo "Field: [{$this->Field}]<br>";
 }