Location: PHPKode > scripts > OO PHP Library > oo-php-library-1-8a/src/db/TDBText.php
<?
/*
 * $Id: TDBText.php,v 1.2 2000/04/14 11:07:56 nightmar Exp $
 */ 
class TDBText extends TDBObject {
	var $text;
	var $field;

  	function on_output($val) {
  	   	if (isset($this->text))
  			echo $this->text;
  		else
  			echo $val;
  	}

    function TDBText($field, $text) {
        $this->text = $text;
	    $this->field = $field;
 	}
}

?>
Return current item: OO PHP Library