Public Member Functions | Protected Attributes

Robo47_View_Helper_Cdn Class Reference

List of all members.

Public Member Functions

 __construct ($cdn= '')
 Inits object.
 __toString ()
 Returns the cdn-string.
 Cdn ($path=null)
 Returns itself or if path is set CDN-url + path.
 getCdn ()
 Returns the cdn-string.
 setCdn ($cdn)

Protected Attributes

 $_cdn = ''

Detailed Description

Definition at line 31 of file Cdn.php.


Constructor & Destructor Documentation

Robo47_View_Helper_Cdn::__construct ( cdn = ''  ) 

Inits object.

Parameters:
string $cdn

Definition at line 44 of file Cdn.php.

References setCdn().

    {
        $this->setCdn($cdn);
    }

Here is the call graph for this function:


Member Function Documentation

Robo47_View_Helper_Cdn::__toString (  ) 

Returns the cdn-string.

Returns:
string

Definition at line 89 of file Cdn.php.

    {
        return (string) $this->_cdn;
    }

Robo47_View_Helper_Cdn::Cdn ( path = null  ) 

Returns itself or if path is set CDN-url + path.

Returns:
Robo47_View_Helper_Cdn|string

Definition at line 54 of file Cdn.php.

    {
        if (null === $path) {
            return $this;
        } else {
            return $this->_cdn . $path;
        }
    }

Robo47_View_Helper_Cdn::getCdn (  ) 

Returns the cdn-string.

Returns:
string

Definition at line 79 of file Cdn.php.

    {
        return $this->_cdn;
    }

Robo47_View_Helper_Cdn::setCdn ( cdn  ) 
Parameters:
string $cdn
Returns:
Robo47_View_Helper_Cdn *provides fluent interface*

Definition at line 68 of file Cdn.php.

Referenced by __construct().

    {
        $this->_cdn = (string) $cdn;
        return $this;
    }

Here is the caller graph for this function:


Member Data Documentation

Robo47_View_Helper_Cdn::$_cdn = '' [protected]

Definition at line 37 of file Cdn.php.


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