2 namespace TYPO3\CMS\Core\Resource;
47 $this->factory = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\ResourceFactory::class);
57 public function add($object)
68 public function remove($object)
80 public function replace($existingObject, $newObject)
90 public function update($modifiedObject)
123 $whereClause =
'1=1';
124 if ($this->type !=
'') {
125 $whereClause .=
' AND ' . $this->typeField .
' = ' .
$GLOBALS[
'TYPO3_DB']->fullQuoteStr($this->type, $this->table) .
' ';
128 $res =
$GLOBALS[
'TYPO3_DB']->exec_SELECTquery(
'*', $this->table, $whereClause);
129 while ($row =
$GLOBALS[
'TYPO3_DB']->sql_fetch_assoc($res)) {
132 $GLOBALS[
'TYPO3_DB']->sql_free_result($res);
179 throw new \InvalidArgumentException(
'The UID has to be an integer. UID given: "' . $uid .
'"', 1316779798);
182 if (empty($row) || !is_array($row)) {
183 throw new \RuntimeException(
'Could not find row with UID "' . $uid .
'" in table "' . $this->table .
'"', 1314354065);
198 $whereClause =
$GLOBALS[
'TSFE']->sys_page->enableFields($this->table);
199 $whereClause .=
$GLOBALS[
'TSFE']->sys_page->deleteClause($this->table);
202 $whereClause = \TYPO3\CMS\Backend\Utility\BackendUtility::BEenableFields($this->table);
203 $whereClause .= \TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause($this->table);
224 throw new \BadMethodCallException(
'Repository does not support the setDefaultOrderings() method.', 1313185906);
238 throw new \BadMethodCallException(
'Repository does not support the setDefaultQuerySettings() method.', 1313185907);
250 throw new \BadMethodCallException(
'Repository does not support the createQuery() method.', 1313185908);
274 public function __call($method, $arguments)
276 throw new \BadMethodCallException(
'Repository method "' . $method .
'" is not implemented.', 1378918410);
287 return $this->objectType;