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 BeforeGenerate()
 {
     parent::BeforeGenerate();
     $this->SetValueAttribute();
     $this->SetNameAttribute();
 }
Exemple #3
0
 function BeforeGenerate()
 {
     if ($this->App->Debug) {
         echo $this->DebugId() . "BeforeGenerate(): DataSource object [{$this->DataSource}]<br>";
     }
     parent::BeforeGenerate();
     if ($this->DataSource) {
         $this->Content = $this->DataSource->GetField($this->Field);
     } else {
         if ($this->App->Debug) {
             echo $this->DebugId() . "Bad DataSource<br>";
         }
     }
 }