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

Public Member Functions

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

Static Public Member Functions

static test_me ()

Detailed Description

Definition at line 28 of file class_iaction.php.


Member Function Documentation

print in html the readonly value of the widget

Definition at line 54 of file class_iaction.php.

Referenced by input().

    {
        return;
    }
IAction::input ( p_name = "",
p_value = "" 
)

show the html input of the widget

Definition at line 31 of file class_iaction.php.

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

    {
        $this->name=($p_name=="")?$this->name:$p_name;
        $this->value=($p_value=="")?$this->value:$p_value;
        $this->id=($this->id=="")?$this->name:$this->id;
        if ( $this->readOnly==true) return $this->display();
        $this->javascript= (!isset ($this->javascript))?"":$this->javascript;
        if ( $this->value !="")
            $r=sprintf('<span id="%s" class="action"> <A class="action" HREF="%s" %s>%s</A></span>',
                       $this->id,
                       $this->value,
                       $this->javascript,
                       $this->label);
        else
            $r=sprintf('<span id="%s" class="action"> <A class="action" href="javascript: %s">%s</A></span>',
                       $this->id,
                       $this->javascript,
                       $this->label);

        return $r;

    }
static IAction::test_me ( ) [static]

Definition at line 58 of file class_iaction.php.

    {
    }

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