Class Horde_Themes_Element
The Horde_Themes_Element:: class provides an object-oriented interface to
a themes element.
Copyright 2010-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
Methods summary
public
|
#
__construct( string $name = '', array $options = array() )
Constructor.
Parameters
- $name
- <p>The element name. If null, will return the
element directory.</p>
- $options
- Additional options:
<pre><span class="php-quote">'app'</span> - (string) <span class="php-keyword1">Use</span> this application instead of the <span class="php-keyword2">current</span> app.
<span class="php-quote">'data'</span> - (<span class="php-keyword1">array</span>) Contains <span class="php-num">2</span> elements: <span class="php-quote">'fs'</span> - filesystem path,
<span class="php-quote">'uri'</span> - the element URI. <span class="php-keyword1">If</span> set, <span class="php-keyword1">use</span> <span class="php-keyword1">as</span> the data
values instead of auto determining.
<span class="php-quote">'nohorde'</span> - (boolean) <span class="php-keyword1">If</span> <span class="php-keyword1">true</span>, <span class="php-keyword1">do</span> not fallback to horde <span class="php-keyword1">for</span> element.
<span class="php-quote">'theme'</span> - (string) <span class="php-keyword1">Use</span> this theme instead of the Horde <span class="php-keyword1">default</span>.
<span class="php-quote">'uri'</span> - (string) <span class="php-keyword1">Use</span> this <span class="php-keyword1">as</span> the URI value.</pre>
|
public
string
|
#
__toString( )
String representation of this object.
String representation of this object.
Returns
string The relative URI.
|
public
|
|
public static
Horde_Themes_Element
|
#
fromUri( string $uri )
Convert a URI into a Horde_Themes_Element object.
Convert a URI into a Horde_Themes_Element object.
Parameters
Returns
|
Properties summary
public
string
|
$app
Current application name.
Current application name.
|
|
Magic properties summary
public
mixed
|
$fs
(string) Filesystem location.
|
public
mixed
|
$fulluri
|
public
mixed
|
$uri
|