Extbase\Persistence

Class Tx_Extbase_Persistence_Repository

All Implemented Interfaces:


public class Tx_Extbase_Persistence_Repository
implements Tx_Extbase_Persistence_RepositoryInterface

The base repository - will usually be extended by a more concrete repository.

Package: Extbase
Subpackage: Persistence
Version: $ID:$


Method Summary

 void add(object $object)
 void remove(object $object)
 void replace(object $existingObject, object $newObject)
 array findAll()
 object findByUid(int $uid)
 Tx_Extbase_Persistence_QueryInterface createQuery()
 void __call(string $methodName, string $arguments)

Method Detail

add

public void add(object $object)

Adds an object to this repository

Description Copied From interface:

Adds an object to this repository.

Specified By

Parameters

$object - The object to add

remove

public void remove(object $object)

Removes an object from this repository.

Description Copied From interface:

Removes an object from this repository.

Specified By

Parameters

$object - The object to remove

replace

public void replace(object $existingObject, object $newObject)

Replaces an object by another.

Parameters

$existingObject - The existing object
$newObject - The new object

findAll

public array findAll()

Returns all objects of this repository

Description Copied From interface:

Returns all objects of this repository.

Specified By

findByUid

public object findByUid(int $uid)

Finds an object matching the given identifier.

Description Copied From interface:

Finds an object matching the given identifier.

Specified By

Parameters

$uid - The identifier of the object to find

createQuery

public Tx_Extbase_Persistence_QueryInterface createQuery()

Returns a query for objects of this repository

__call

public void __call(string $methodName, string $arguments)

Dispatches magic methods (findBy[Property]())

Parameters

$methodName - The name of the magic method
$arguments - The arguments of the magic method