PHP Class Horde_Themes_Element, horde

Author: Michael Slusarz ([email protected])
Datei anzeigen Open project: horde/horde Class Usage Examples

Public Properties

Property Type Description
$app string Current application name.

Protected Properties

Property Type Description
$_data array URI/filesystem path values.
$_dirname string The default directory name for this element type.
$_name string Element name.
$_opts array Options.

Public Methods

Method Description
__construct ( string $name = '', array $options = [] ) Constructor.
__get ( $name )
__toString ( ) : string String representation of this object.
fromUri ( string $uri ) : Horde_Themes_Element Convert a URI into a Horde_Themes_Element object.

Method Details

__construct() public method

Constructor.
public __construct ( string $name = '', array $options = [] )
$name string The element name. If null, will return the element directory.
$options array Additional options: - app: (string) Use this application instead of the current app. - data: (array) Contains 2 elements: 'fs' - filesystem path, 'uri' - the element URI. If set, use as the data values instead of auto determining. - nohorde: (boolean) If true, do not fallback to horde for element. - noview: (boolean) If true, do not load images from view-specific directories. (Since 2.4.0) - theme: (string) Use this theme instead of the Horde default. - uri: (string) Use this as the URI value.

__get() public method

public __get ( $name )

__toString() public method

String representation of this object.
public __toString ( ) : string
return string The relative URI.

fromUri() public static method

Convert a URI into a Horde_Themes_Element object.
public static fromUri ( string $uri ) : Horde_Themes_Element
$uri string The URI to convert.
return Horde_Themes_Element A theme element object.

Property Details

$_data protected_oe property

URI/filesystem path values.
protected array $_data
return array

$_dirname protected_oe property

The default directory name for this element type.
protected string $_dirname
return string

$_name protected_oe property

Element name.
protected string $_name
return string

$_opts protected_oe property

Options.
protected array $_opts
return array

$app public_oe property

Current application name.
public string $app
return string