76 $this->liveIds = $this->
reindex($liveIds);
119 public function get() {
120 if (isset($this->resolvedIds)) {
128 $this->resolvedIds = $ids;
145 'uid,t3ver_oid,t3ver_state',
147 'pid=-1 AND t3ver_oid IN (' . $this->
intImplode(
',', $ids) .
')' 148 .
' AND t3ver_wsid=' . $this->workspaceId
151 if (!empty($versions)) {
152 foreach ($versions as $version) {
153 $liveReferenceId = $version[
't3ver_oid'];
154 $versionId = $version[
'uid'];
155 if (isset($ids[$liveReferenceId])) {
157 unset($ids[$liveReferenceId]);
159 $ids[$liveReferenceId] = $versionId;
185 .
' AND t3ver_wsid=' . $this->workspaceId
186 .
' AND t3ver_move_id IN (' . $this->
intImplode(
',', $ids) .
')' 189 if (!empty($movePlaceholders)) {
190 foreach ($movePlaceholders as $movePlaceholder) {
191 $liveReferenceId = $movePlaceholder[
't3ver_move_id'];
192 $movePlaceholderId = $movePlaceholder[
'uid'];
194 if (isset($ids[$movePlaceholderId])) {
195 $ids[$movePlaceholderId] = $liveReferenceId;
196 unset($ids[$liveReferenceId]);
198 } elseif (!$this->keepMovePlaceholder) {
199 unset($ids[$liveReferenceId]);
217 if (empty($this->sortingStatement) || count($ids) < 2) {
224 'uid IN (' . $this->
intImplode(
',', $ids) .
')',
226 $this->sortingStatement,
231 if (!is_array($records)) {
235 $ids = $this->
reindex(array_keys($records));
255 'uid IN (' . $this->
intImplode(
',', $ids) .
')',
262 if (!is_array($records)) {
266 foreach ($ids as $id) {
267 if (!empty($records[$id][
't3ver_oid'])) {
268 $ids[$id] = $records[$id][
't3ver_oid'];
286 $ids = array_values($ids);
287 $ids = array_combine($ids, $ids);
processSorting(array $ids)
static isTableWorkspaceEnabled($table)
processVersionMovePlaceholders(array $ids)
setWorkspaceId($workspaceId)
processVersionOverlays(array $ids)
intImplode($delimiter, array $values)
setKeepDeletePlaceholder($keepDeletePlaceholder)
static isTableMovePlaceholderAware($table)
setKeepMovePlaceholder($keepMovePlaceholder)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
__construct($tableName, array $liveIds, $sortingStatement=NULL)
static isTableLocalizable($table)
isVersionMovePlaceholderAware()
setKeepLiveIds($keepLiveIds)