Example #1
0
 /**
  * @access private
  */
 function BeforeGenerate()
 {
     parent::BeforeGenerate();
     if ($this->DataSource) {
         $this->Content = $this->DataSource->GetField($this->Field);
     } else {
         $this->Debug("Bad DataSource");
     }
 }
Example #2
0
 function BeforeGenerate()
 {
     parent::BeforeGenerate();
     if ($this->DataSource) {
         $this->Content = $this->DataSource->GetField($this->Field);
     } else {
         if ($this->App->Debug) {
             echo $this->DebugId() . "Bad DataSource<br>";
         }
     }
 }