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
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
__get()
public
__get(string $name) : mixed
Parameters
- $name : string
__isset()
public
__isset(string $name) : bool
Parameters
- $name : string
Return values
bool__toString()
public
__toString() : string
Return values
stringgetRawData()
Get raw data object.
public
getRawData() : object