name=$p_name; $this->value=$p_value; $this->amount_id=null; $this->paid=''; $this->id=$p_id; $this->tiers=""; // id of the field for the tiers to be updated } /*!\brief show the html input of the widget*/ public function input($p_name=null,$p_value=null) { $this->name=($p_name==null)?$this->name:$p_name; $this->value=($p_value==null)?$this->value:$p_value; if ( $this->readOnly==true) return $this->display(); $this->id=($this->id=="")?$this->name:$this->id; $r=sprintf(" ", $this->name, $this->amount_id, $this->paid, $this->tiers, $this->name, $this->id, $this->value, $this->id ); return $r; } /*!\brief print in html the readonly value of the widget*/ public function display() { $r=sprintf("%s",$this->value); $r.=sprintf('', $this->name,$this->value); return $r; } static public function test_me() { } }