/** * @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>; }
/** * @access private */ function BeforeGenerate() { parent::BeforeGenerate(); $this->SetValueAttribute(); $this->SetNameAttribute(); }
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>"; } } }