noalyss  Version-6.7.2
Public Member Functions | Static Public Member Functions
ITextarea Class Reference
Inheritance diagram for ITextarea:
HtmlInput

Public Member Functions

 display ()
 print in html the readonly value of the widget
 input ($p_name=null, $p_value=null)
 show the html input of the widget

Static Public Member Functions

static test_me ()

Detailed Description

Definition at line 26 of file class_itextarea.php.


Member Function Documentation

print in html the readonly value of the widget

Definition at line 49 of file class_itextarea.php.

References $r, h(), name, and value.

Referenced by input().

    {
        $r='<p>';
        $r.=h($this->value);
        $r.=sprintf('<input type="hidden" name="%s" value="%s">',
                    $this->name,h($this->value));
        $r.='</p>';

    }
ITextarea::input ( p_name = null,
p_value = null 
)

show the html input of the widget

Definition at line 29 of file class_itextarea.php.

References $r, display(), name, readOnly, style, and value.

    {
        $this->name=($p_name==null)?$this->name:$p_name;
        $this->value=($p_value==null)?$this->value:$p_value;
        if ( !isset ($this->style )) $this->style=' class="itextarea" ';
        $this->id=($this->id=="")?$this->name:$this->id;

        if ( $this->readOnly==true) return $this->display();

        $r="";
        $r.='<TEXTAREA '.$this->style.'  name="'.$this->name.'" id="'.$this->id.'"';
        $r.='>';
        $r.=$this->value;

        $r.="</TEXTAREA>";
        return $r;
    }
static ITextarea::test_me ( ) [static]

Definition at line 58 of file class_itextarea.php.

    {
    }

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations