SetClass("biginput"); $this->AddOption('wrap','soft'); $this->SetName($name); $this->SetCols($cols); $this->SetRows($rows); $this->SetCaption($caption); $this->SetValue($value); } function Show() { if(isset($this->caption)) print ($this->caption." "); parent::Show(); } function SetName($value='textarea') { if(!is_string($value)) { return $this->error("Incorrect value for SetName [$value]"); } return $this->AddOption("name",$value); } function SetCaption($value=NULL) { if(is_null($value)) unset($this->caption); elseif(is_string($value)) $this->caption = $value; else { return $this->error("Incorrect value for SetCaption [$value]"); } return 0; } function SetValue($value="") { if(!is_string($value)) { return $this->error("Incorrect value for SetValue [$value]"); } return $this->AddItem($value); } function SetRows($value) { if(!is_int($value)) { return $this->error("Incorrect value for SetRows [$value]"); } return $this->AddOption("rows",strval($value)); } function SetCols($value) { if(!is_int($value)) { return $this->error("Incorrect value for SetCols [$value]"); } return $this->AddOption("cols",strval($value)); } } ?>