TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
FileCollectionRepository.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Core\Resource
;
3
17
use
TYPO3\CMS\Core\Resource\Exception\ResourceDoesNotExistException
;
18
25
class
FileCollectionRepository
extends
\TYPO3\CMS\Core\Collection\RecordCollectionRepository
{
26
30
protected
$table
=
'sys_file_collection'
;
31
35
protected
$typeField
=
'type'
;
36
44
public
function
findByUid
(
$uid
) {
45
$object = parent::findByUid(
$uid
);
46
if
($object === NULL) {
47
throw
new
ResourceDoesNotExistException
(
'Could not find row with uid "'
.
$uid
.
'" in table "'
. $this->table .
'"'
, 1314354066);
48
}
49
return
$object;
50
}
51
59
protected
function
createDomainObject
(array $record) {
60
return
$this->
getFileFactory
()->createCollectionObject($record);
61
}
62
68
protected
function
getFileFactory
() {
69
return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
'TYPO3\\CMS\\Core\\Resource\\ResourceFactory'
);
70
}
71
72
}
TYPO3\CMS\Core\Resource\FileCollectionRepository\createDomainObject
createDomainObject(array $record)
Definition:
FileCollectionRepository.php:59
ResourceDoesNotExistException
TYPO3\CMS\Core\Resource\FileCollectionRepository\$table
$table
Definition:
FileCollectionRepository.php:30
$uid
$uid
Definition:
server.php:36
TYPO3\CMS\Core\Resource\FileCollectionRepository
Definition:
FileCollectionRepository.php:25
TYPO3\CMS\Core\Resource\Exception\ResourceDoesNotExistException
Definition:
ResourceDoesNotExistException.php:19
TYPO3\CMS\Core\Resource\FileCollectionRepository\getFileFactory
getFileFactory()
Definition:
FileCollectionRepository.php:68
TYPO3\CMS\Core\Collection\RecordCollectionRepository
Definition:
RecordCollectionRepository.php:21
TYPO3\CMS\Core\Resource\FileCollectionRepository\findByUid
findByUid($uid)
Definition:
FileCollectionRepository.php:44
TYPO3\CMS\Core\Resource\FileCollectionRepository\$typeField
$typeField
Definition:
FileCollectionRepository.php:35
TYPO3\CMS\Core\Resource
Definition:
AbstractFile.php:2
typo3
sysext
core
Classes
Resource
FileCollectionRepository.php
Generated on Wed Aug 7 2019 09:52:21 for TYPO3 CMS by
1.8.13