This object is an helper for the view

uses implements the singleton pattern
uses check dwoo cache directories
uses the current user
uses get the cachetime
uses multi-byte wordwrap for abstract
package OWR
subpackage View
used_by \OWR\Stream\Parser
used_by \OWR\CLI\Controller
used_by \OWR\View
used_by \OWR\DAO
used_by \OWR\OPML\Parser
used_by \OWR\Controller
used_by \OWR\Upload
used_by \OWR\User
used_by \OWR\DB\Request

 Methods

Used in templates to cache gettext() response

_(string $name) : string
author Pierre-Alain Mignot
access public

Parameters

$name

string

The message being translated

Returns

stringa translated string if one is found in the translation table, else the submitted message

Cloning is denied This function can NOT be overloaded

__clone() 
Inherited
access public
author Pierre-Alain Mignot
inherited_from \OWR\Singleton::__clone()

Destructor Will write translations cache if it has changed

__destruct() 
access public
author Pierre-Alain Mignot

Executed when an object is unserialized We register the new object

__wakeUp() 
Inherited
access public
author Pierre-Alain Mignot
inherited_from \OWR\Singleton::__wakeUp()

Returns an abstract of a text This method takes care of open/closed tags

asAbstract(string $text, int $width) : string
author Pierre-Alain Mignot
access public

Parameters

$text

string

the text to troncate

$width

int

the width to cut

Returns

stringthe abstract of $text

Instance getter This function can NOT be overloaded

iGet() : mixed
InheritedStatic
access public
static
author Pierre-Alain Mignot
inherited_from \OWR\Singleton::iGet()

Returns

mixedthe instance

Returns a preformatted list

makeList(array $values, string $ULclass, string $LIclass) : string
access public
author Pierre-Alain Mignot

Parameters

$values

array

the datas

$ULclass

string

the css class for

    , optionnal

$LIclass

string

the css class for

  • , optionnal

  • Returns

    stringthe list

    Register function This function is called when an object is unserialized and is used to register the instance of the object This function can NOT be overloaded

    register(mixed $instance) 
    InheritedStatic
    access public
    static
    author Pierre-Alain Mignot
    inherited_from \OWR\Singleton::register()

    Parameters

    $instance

    mixed

    the instance to register

    Constructor Tries to get cached responses from gettext

    __construct() 
    access protected
    author Pierre-Alain Mignot

     Properties

     

    true if we have to write the cache translations file

    $_transChanged : boolean
    access protected
     

    cache of gettext

    $_translations : array
    access protected
     

    store instancied objects

    $_instances : array
    Inherited
    access private
    static
    inherited_from \OWR\Singleton::$$_instances