Extbase\Persistence

Interface Tx_Extbase_Persistence_RepositoryInterface

All Known Implementing Classes:


public interface Tx_Extbase_Persistence_RepositoryInterface

Contract for a repository

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


Method Summary

 void add(object $object)
 void remove(object $object)
 array findAll()
 object findByUid(int $uid)

Method Detail

add

public void add(object $object)

Adds an object to this repository.

Parameters

$object - The object to add

remove

public void remove(object $object)

Removes an object from this repository.

Parameters

$object - The object to remove

findAll

public array findAll()

Returns all objects of this repository.

findByUid

public object findByUid(int $uid)

Finds an object matching the given identifier.

Parameters

$uid - The identifier of the object to find