TYPO3
7.6
|
Public Member Functions | |
injectPersistenceManager (\TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface $persistenceManager) | |
__construct (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) | |
add ($object) | |
remove ($object) | |
update ($modifiedObject) | |
findAll () | |
countAll () | |
removeAll () | |
findByUid ($uid) | |
findByIdentifier ($identifier) | |
setDefaultOrderings (array $defaultOrderings) | |
setDefaultQuerySettings (\TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface $defaultQuerySettings) | |
createQuery () | |
__call ($methodName, $arguments) | |
Protected Member Functions | |
getRepositoryClassName () | |
Protected Attributes | |
$persistenceManager | |
$objectManager | |
$objectType | |
$defaultOrderings = array() | |
$defaultQuerySettings = null | |
The base repository - will usually be extended by a more concrete repository.
Definition at line 24 of file extbase/Classes/Persistence/Repository.php.
__construct | ( | \TYPO3\CMS\Extbase\Object\ObjectManagerInterface | $objectManager | ) |
Constructs a new Repository
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface | $objectManager |
Definition at line 64 of file extbase/Classes/Persistence/Repository.php.
References Repository\$objectManager, Repository\getRepositoryClassName(), and ClassNamingUtility\translateRepositoryNameToModelName().
__call | ( | $methodName, | |
$arguments | |||
) |
Dispatches magic methods (findBy[Property]())
string | $methodName | The name of the magic method |
string | $arguments | The arguments of the magic method |
\TYPO3\CMS\Extbase\Persistence\Generic\Exception\UnsupportedMethodException |
Definition at line 235 of file extbase/Classes/Persistence/Repository.php.
References Repository\createQuery(), and elseif.
add | ( | $object | ) |
Adds an object to this repository
object | $object | The object to add |
Exception\IllegalObjectTypeException |
Implements RepositoryInterface.
Definition at line 78 of file extbase/Classes/Persistence/Repository.php.
countAll | ( | ) |
Returns the total number objects of this repository.
Implements RepositoryInterface.
Definition at line 136 of file extbase/Classes/Persistence/Repository.php.
References Repository\createQuery().
createQuery | ( | ) |
Returns a query for objects of this repository
Implements RepositoryInterface.
Definition at line 214 of file extbase/Classes/Persistence/Repository.php.
Referenced by Repository\__call(), ExtensionRepository\countAll(), Repository\countAll(), ExtensionRepository\findAll(), Repository\findAll(), ExtensionRepository\findAllCommunityDistributions(), ExtensionRepository\findAllOfficialDistributions(), LogEntryRepository\findByConstraint(), ExtensionRepository\findByExtensionKeyOrderedByVersion(), SysNoteRepository\findByPidsAndAuthor(), ExtensionRepository\findByVersionRangeAndExtensionKeyOrderedByVersion(), ExtensionRepository\findHighestAvailableVersion(), ExtensionRepository\findOneByCurrentVersionByExtensionKey(), and ExtensionRepository\findOneByExtensionKeyAndVersion().
findAll | ( | ) |
Returns all objects of this repository.
Implements RepositoryInterface.
Definition at line 125 of file extbase/Classes/Persistence/Repository.php.
References Repository\createQuery().
Referenced by Repository\removeAll().
findByIdentifier | ( | $identifier | ) |
Finds an object matching the given identifier.
mixed | $identifier | The identifier of the object to find |
Implements RepositoryInterface.
Definition at line 174 of file extbase/Classes/Persistence/Repository.php.
Referenced by Repository\findByUid().
findByUid | ( | $uid | ) |
Finds an object matching the given identifier.
int | $uid | The identifier of the object to find |
Implements RepositoryInterface.
Definition at line 162 of file extbase/Classes/Persistence/Repository.php.
References Repository\findByIdentifier().
Referenced by RepositoryRepository\updateRepositoryCount().
|
protected |
Returns the class name of this class.
Definition at line 266 of file extbase/Classes/Persistence/Repository.php.
Referenced by Repository\__construct().
injectPersistenceManager | ( | \TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface | $persistenceManager | ) |
\TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface | $persistenceManager |
Definition at line 54 of file extbase/Classes/Persistence/Repository.php.
References Repository\$persistenceManager.
remove | ( | $object | ) |
Removes an object from this repository.
object | $object | The object to remove |
Exception\IllegalObjectTypeException |
Implements RepositoryInterface.
Definition at line 94 of file extbase/Classes/Persistence/Repository.php.
removeAll | ( | ) |
Removes all objects of this repository as if remove() was called for all of them.
Implements RepositoryInterface.
Definition at line 148 of file extbase/Classes/Persistence/Repository.php.
References Repository\findAll().
setDefaultOrderings | ( | array | $defaultOrderings | ) |
Sets the property names to order the result by per default. Expected like this: array( 'foo' => ::ORDER_ASCENDING, 'bar' => ::ORDER_DESCENDING )
array | $defaultOrderings | The property names to order by |
Implements RepositoryInterface.
Definition at line 191 of file extbase/Classes/Persistence/Repository.php.
References Repository\$defaultOrderings.
setDefaultQuerySettings | ( | \TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface | $defaultQuerySettings | ) |
Sets the default query settings to be used in this repository
\TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface | $defaultQuerySettings | The query settings to be used by default |
Implements RepositoryInterface.
Definition at line 203 of file extbase/Classes/Persistence/Repository.php.
References Repository\$defaultQuerySettings.
Referenced by SysNoteRepository\initializeObject().
update | ( | $modifiedObject | ) |
Replaces an existing object with the same identifier by the given object
object | $modifiedObject | The modified object |
Exception\UnknownObjectException | |
Exception\IllegalObjectTypeException |
Implements RepositoryInterface.
Definition at line 111 of file extbase/Classes/Persistence/Repository.php.
Referenced by RepositoryRepository\updateRepositoryCount().
|
protected |
Definition at line 44 of file extbase/Classes/Persistence/Repository.php.
Referenced by Repository\setDefaultOrderings().
|
protected |
Definition at line 49 of file extbase/Classes/Persistence/Repository.php.
Referenced by Repository\setDefaultQuerySettings().
|
protected |
Definition at line 34 of file extbase/Classes/Persistence/Repository.php.
Referenced by Repository\__construct().
|
protected |
Definition at line 39 of file extbase/Classes/Persistence/Repository.php.
|
protected |
Definition at line 29 of file extbase/Classes/Persistence/Repository.php.
Referenced by Repository\injectPersistenceManager().