Heratio Framework API Reference

LightweightObject
in package

Generic lightweight object wrapper for template compatibility.

Wraps any stdClass and provides __get/__call/__isset so that sfOutputEscaperObjectDecorator can call Propel-style getters like getName(), getId(), etc.

Used for: terms, level of description, taxonomies, and any DB row that templates access via method calls.

Tags
author

Johan Pieterse johan@theahg.co.za

Table of Contents

Methods

__call()  : mixed
Handle Propel-style getter calls (getName, getId, etc.)
__construct()  : mixed
__get()  : mixed
__isset()  : bool
__toString()  : string
getRawData()  : object
Get raw data object.

Methods

__call()

Handle Propel-style getter calls (getName, getId, etc.)

public __call(string $name, array<string|int, mixed> $arguments) : mixed
Parameters
$name : string
$arguments : array<string|int, mixed>

__construct()

public __construct(object $data) : mixed
Parameters
$data : object

__isset()

public __isset(string $name) : bool
Parameters
$name : string
Return values
bool

getRawData()

Get raw data object.

public getRawData() : object
Return values
object

        
On this page

Search results