eZPublish(LegacyStack)  5.1
eZKernel Namespace Reference

Allows for object persistence in a database. More...

Detailed Description

Allows for object persistence in a database.

Classes which stores simple types in databases should inherit from this and implement the definition() function. The class will then get initialization, fetching, listing, moving, storing and deleting for free as well as attribute access. The new class must have a constructor which takes one parameter called $row and pass that this constructor.

class MyClass extends eZPersistentObject { public function __construct( $row ) { parent::__construct( $row ); } }