Public Member Functions | Protected Attributes

Robo47_Form_Decorator_Info Class Reference

List of all members.

Public Member Functions

 getInfo ()
 render ($content)
 setInfo ($info)
 setPlacement ($placement)

Protected Attributes

 $_info = ''
 $_placement = self::PREPEND

Detailed Description

Definition at line 31 of file Info.php.


Member Function Documentation

Robo47_Form_Decorator_Info::getInfo (  ) 
Returns:
string

Definition at line 69 of file Info.php.

Referenced by render().

    {
        return $this->_info;
    }

Here is the caller graph for this function:

Robo47_Form_Decorator_Info::render ( content  ) 
Parameters:
string $content
Returns:
string

Definition at line 79 of file Info.php.

References getInfo().

    {
        $element = $this->getElement();
        $view = $element->getView();
        if (null === $view) {
            return $content;
        }

        $separator = $this->getSeparator();
        $placement = $this->getPlacement();

        $info = $this->getInfo();

        switch ($placement) {
            case self::PREPEND:
                $return = $info . $separator . $content;
                break;
            case self::APPEND:
            default:
                $return = $content . $separator . $info;
                break;
        }
        return $return;
    }

Here is the call graph for this function:

Robo47_Form_Decorator_Info::setInfo ( info  ) 
Parameters:
string $info
Returns:
Robo47_Form_Decorator_Info *Provides Fluent Interface*

Definition at line 59 of file Info.php.

    {
        $this->_info = $info;
        return $this;
    }

Robo47_Form_Decorator_Info::setPlacement ( placement  ) 
Parameters:
string $placement
Returns:
Robo47_Form_Decorator_Info *Provides Fluent Interface*

Definition at line 48 of file Info.php.

    {
        $this->_placement = strtoupper($placement);
        return $this;
    }


Member Data Documentation

Robo47_Form_Decorator_Info::$_info = '' [protected]

Definition at line 41 of file Info.php.

Robo47_Form_Decorator_Info::$_placement = self::PREPEND [protected]

Definition at line 37 of file Info.php.


The documentation for this class was generated from the following file: