Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
ff674873
Commit
ff674873
authored
Apr 21, 2017
by
Thomas Löffler
Browse files
[CLEANUP] Removes occurence of SearchRepository
parent
74ffb8c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
html/typo3conf/ext/ter_fe2/Classes/Domain/Repository/ExtensionRepository.php
View file @
ff674873
...
...
@@ -29,17 +29,11 @@
class
Tx_TerFe2_Domain_Repository_ExtensionRepository
extends
Tx_TerFe2_Domain_Repository_AbstractRepository
{
/**
* @var Tx_TerFe2_Domain_Repository_SearchRepository
*/
protected
$searchRepository
;
/**
* @var boolean
*/
protected
$showInsecure
=
TRUE
;
/**
* Allow the listing of insecure extensions or not
*
...
...
@@ -153,29 +147,6 @@ class Tx_TerFe2_Domain_Repository_ExtensionRepository extends Tx_TerFe2_Domain_R
return
$query
->
execute
();
}
/**
* Returns all extensions by an author
*
* @param Tx_TerFe2_Domain_Model_Author $author The Author to search for
* @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage Objects
*/
public
function
findByAuthor
(
Tx_TerFe2_Domain_Model_Author
$author
)
{
$uids
=
$this
->
searchRepository
->
findUidsByAuthor
(
$author
);
// Workaround to enable paginate
$query
=
$this
->
createQuery
();
$query
->
getQuerySettings
()
->
setRespectStoragePage
(
FALSE
);
$query
->
getQuerySettings
()
->
setRespectSysLanguage
(
FALSE
);
$query
->
setOrderings
(
array
(
'extKey'
=>
\
TYPO3\CMS\Extbase\Persistence\QueryInterface
::
ORDER_ASCENDING
)
);
$this
->
match
(
$query
,
$query
->
in
(
'uid'
,
$uids
));
return
$query
->
execute
();
}
/**
*
* @param string $frontendUser
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment