Property | Type | Description | |
---|---|---|---|
$default_serialiser | string | ||
$serialisers | Bravo3\Orm\Serialisers\SerialiserInterface[] |
Method | Description | |
---|---|---|
addSerialiser ( Bravo3\Orm\Serialisers\SerialiserInterface $serialiser ) | ||
getDefaultSerialiser ( ) : Bravo3\Orm\Serialisers\SerialiserInterface | Get the default serialiser | |
getDefaultSerialiserId ( ) : string | Get the ID of the default serialiser | |
getIterator ( ) : Traversable | Retrieve an iterator for all serialisers in the map | |
getSerialiser ( string $id ) : Bravo3\Orm\Serialisers\SerialiserInterface | Get a serialiser by ID | |
offsetExists ( mixed $offset ) : boolean |
(PHP 5 >= 5.0.0) Whether a offset exists |
|
offsetGet ( string $offset ) : Bravo3\Orm\Serialisers\SerialiserInterface | Get a serialiser by ID | |
offsetSet ( null $offset, Bravo3\Orm\Serialisers\SerialiserInterface $value ) | This function is an alias for addSerialiser(), the offset is ignored | |
offsetUnset ( string $offset ) | This function is an alias for removeSerialiser() | |
removeSerialiser ( string $id ) | Remove a serialiser from the list | |
setDefaultSerialiserId ( string $id ) | Set the default serialiser by ID |
public addSerialiser ( Bravo3\Orm\Serialisers\SerialiserInterface $serialiser ) | ||
$serialiser | Bravo3\Orm\Serialisers\SerialiserInterface |
public getDefaultSerialiser ( ) : Bravo3\Orm\Serialisers\SerialiserInterface | ||
return | Bravo3\Orm\Serialisers\SerialiserInterface |
public getDefaultSerialiserId ( ) : string | ||
return | string |
public getIterator ( ) : Traversable | ||
return | Traversable |
public getSerialiser ( string $id ) : Bravo3\Orm\Serialisers\SerialiserInterface | ||
$id | string | |
return | Bravo3\Orm\Serialisers\SerialiserInterface |
public offsetExists ( mixed $offset ) : boolean | ||
$offset | mixed | An offset to check for. |
return | boolean | true on success or false on failure.
The return value will be casted to boolean if non-boolean was returned. |
public offsetUnset ( string $offset ) | ||
$offset | string |
public removeSerialiser ( string $id ) | ||
$id | string |
public setDefaultSerialiserId ( string $id ) | ||
$id | string |