TYPO3 CMS  TYPO3_6-2
FileCollectionRepository.php
Go to the documentation of this file.
1 <?php
3 
18 
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 }
$uid
Definition: server.php:36