TYPO3
7.6
|
Public Attributes | |
const | TABLE_NAME = 'tx_extensionmanager_domain_model_extension' |
Protected Member Functions | |
markExtensionWithMaximumVersionAsCurrent ($repositoryUid) | |
fetchMaximalVersionsForAllExtensions ($repositoryUid) | |
getNumberOfCurrentExtensions () | |
addDefaultConstraints (\TYPO3\CMS\Extbase\Persistence\Generic\Query $query) | |
Protected Member Functions inherited from Repository | |
getRepositoryClassName () | |
Protected Attributes | |
$databaseConnection | |
$dataMapper | |
Protected Attributes inherited from Repository | |
$persistenceManager | |
$objectManager | |
$objectType | |
$defaultOrderings = array() | |
$defaultQuerySettings = null | |
A repository for extensions
Definition at line 20 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
|
protected |
Adds default constraints to the query - in this case it enables us to always just search for the latest version of an extension
\TYPO3\CMS\Extbase\Persistence\Generic\Query | $query | the query to adjust |
Definition at line 376 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
Referenced by ExtensionRepository\countAll(), and ExtensionRepository\findAll().
countAll | ( | ) |
Count all extensions
Implements RepositoryInterface.
Definition at line 64 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
References ExtensionRepository\addDefaultConstraints(), and Repository\createQuery().
countByVersionRangeAndExtensionKey | ( | $extensionKey, | |
$lowestVersion = 0 , |
|||
$highestVersion = 0 |
|||
) |
Count extensions with a certain key between a given version range
string | $extensionKey | |
int | $lowestVersion | |
int | $highestVersion |
Definition at line 274 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
References ExtensionRepository\findByVersionRangeAndExtensionKeyOrderedByVersion().
|
protected |
Fetches the UIDs of all maximal versions for all extensions. This is done by doing a LEFT JOIN to itself ("a" and "b") and comparing both integer_version fields.
int | $repositoryUid |
Definition at line 337 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
Referenced by ExtensionRepository\markExtensionWithMaximumVersionAsCurrent().
findAll | ( | ) |
Finds all extensions
Returns all objects of this repository
Implements RepositoryInterface.
Definition at line 76 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
References ExtensionRepository\addDefaultConstraints(), and Repository\createQuery().
findAllCommunityDistributions | ( | ) |
Finds all extensions with category "distribution" not published by the TYPO3 CMS Team
Definition at line 225 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
References Repository\createQuery().
findAllOfficialDistributions | ( | ) |
Finds all extensions with category "distribution" that are published by the TYPO3 CMS Team
Definition at line 248 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
References Repository\createQuery().
findByExtensionKeyOrderedByVersion | ( | $extensionKey | ) |
Find an extension by extension key ordered by version
string | $extensionKey |
Definition at line 94 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
References Repository\createQuery().
findByTitleOrAuthorNameOrExtensionKey | ( | $searchString | ) |
Find an extension by title, author name or extension key This is the function used by the TER search. It is using a scoring for the matches to sort the extension with an exact key match on top
string | $searchString | The string to search for extensions |
Definition at line 150 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
findByVersionRangeAndExtensionKeyOrderedByVersion | ( | $extensionKey, | |
$lowestVersion = 0 , |
|||
$highestVersion = 0 , |
|||
$includeCurrentVersion = true |
|||
) |
Find an extension between a certain version range ordered by version number
string | $extensionKey | |
int | $lowestVersion | |
int | $highestVersion | |
bool | $includeCurrentVersion |
Definition at line 186 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
References Repository\createQuery(), and elseif.
Referenced by ExtensionRepository\countByVersionRangeAndExtensionKey().
findHighestAvailableVersion | ( | $extensionKey | ) |
Find highest version available of an extension
string | $extensionKey |
Definition at line 285 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
References Repository\createQuery().
findOneByCurrentVersionByExtensionKey | ( | $extensionKey | ) |
Find the current version by extension key
string | $extensionKey |
Definition at line 108 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
References Repository\createQuery().
findOneByExtensionKeyAndVersion | ( | $extensionKey, | |
$version | |||
) |
Find one extension by extension key and version
string | $extensionKey | |
string | $version | (example: 4.3.10) |
Definition at line 129 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
References Repository\createQuery().
|
protected |
Returns the number of extensions that are current.
Definition at line 360 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
Referenced by ExtensionRepository\insertLastVersion().
injectDataMapper | ( | \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper | $dataMapper | ) |
\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper | $dataMapper |
Definition at line 40 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
References ExtensionRepository\$dataMapper.
insertLastVersion | ( | $repositoryUid = 1 | ) |
Updates the current_version field after update.
int | $repositoryUid |
Definition at line 301 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
References ExtensionRepository\getNumberOfCurrentExtensions(), and ExtensionRepository\markExtensionWithMaximumVersionAsCurrent().
|
protected |
Sets current_version = 1 for all extensions where the extension version is maximal.
For performance reasons, the "native" TYPO3_DB is used here directly.
int | $repositoryUid |
Definition at line 316 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
References ExtensionRepository\fetchMaximalVersionsForAllExtensions().
Referenced by ExtensionRepository\insertLastVersion().
|
protected |
Definition at line 30 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
|
protected |
Definition at line 35 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.
Referenced by ExtensionRepository\injectDataMapper().
const TABLE_NAME = 'tx_extensionmanager_domain_model_extension' |
Definition at line 25 of file extensionmanager/Classes/Domain/Repository/ExtensionRepository.php.