TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Version\Dependency\ElementEntity Class Reference
Inheritance diagram for TYPO3\CMS\Version\Dependency\ElementEntity:
t3lib_utility_Dependency_Element

Public Member Functions

 __construct ($table, $id, array $data=array(), \TYPO3\CMS\Version\Dependency\DependencyResolver $dependency)
 
 setInvalid ($invalid)
 
 isInvalid ()
 
 getTable ()
 
 getId ()
 
 setId ($id)
 
 getData ()
 
 getDataValue ($key)
 
 setDataValue ($key, $value)
 
 hasDataValue ($key)
 
 __toString ()
 
 getDependency ()
 
 getChildren ()
 
 getParents ()
 
 hasReferences ()
 
 getRecord ()
 

Static Public Member Functions

static getIdentifier ($table, $id)
 

Public Attributes

const REFERENCES_ChildOf = 'childOf'
 
const REFERENCES_ParentOf = 'parentOf'
 
const EVENT_Construct = 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity::construct'
 
const EVENT_CreateChildReference = 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity::createChildReference'
 
const EVENT_CreateParentReference = 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity::createParentReference'
 
const RESPONSE_Skip = 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity->skip'
 

Protected Attributes

 $invalid = FALSE
 
 $table
 
 $id
 
 $data
 
 $record
 
 $dependency
 
 $children
 
 $parents
 
 $traversingParents = FALSE
 
 $outerMostParent
 
 $nestedChildren
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Object to hold information on a dependent database element in abstract.

Definition at line 20 of file ElementEntity.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Version\Dependency\ElementEntity::__construct (   $table,
  $id,
array  $data = array(),
\TYPO3\CMS\Version\Dependency\DependencyResolver  $dependency 
)

Creates this object.

Parameters
string$table
integer$id
array$data(optional)
\TYPO3\CMS\Version\Dependency\DependencyResolver$dependency

Definition at line 92 of file ElementEntity.php.

References TYPO3\CMS\Version\Dependency\ElementEntity\$data, TYPO3\CMS\Version\Dependency\ElementEntity\$dependency, TYPO3\CMS\Version\Dependency\ElementEntity\$id, and TYPO3\CMS\Version\Dependency\ElementEntity\$table.

Member Function Documentation

◆ __toString()

TYPO3\CMS\Version\Dependency\ElementEntity::__toString ( )

Converts this object for string representation.

Returns
string

Definition at line 190 of file ElementEntity.php.

◆ getChildren()

TYPO3\CMS\Version\Dependency\ElementEntity::getChildren ( )

◆ getData()

TYPO3\CMS\Version\Dependency\ElementEntity::getData ( )

Gets the data.

Returns
array

Definition at line 146 of file ElementEntity.php.

References TYPO3\CMS\Version\Dependency\ElementEntity\$data.

◆ getDataValue()

◆ getDependency()

TYPO3\CMS\Version\Dependency\ElementEntity::getDependency ( )

◆ getId()

◆ getIdentifier()

static TYPO3\CMS\Version\Dependency\ElementEntity::getIdentifier (   $table,
  $id 
)
static

Converts the object for string representation.

Parameters
string$table
integer$id
Returns
string

Definition at line 331 of file ElementEntity.php.

References TYPO3\CMS\Version\Dependency\ElementEntity\$id, and TYPO3\CMS\Version\Dependency\ElementEntity\$table.

Referenced by TYPO3\CMS\Version\Dependency\ElementEntityProcessor\getDataHandler().

◆ getParents()

TYPO3\CMS\Version\Dependency\ElementEntity::getParents ( )

◆ getRecord()

TYPO3\CMS\Version\Dependency\ElementEntity::getRecord ( )

◆ getTable()

◆ hasDataValue()

TYPO3\CMS\Version\Dependency\ElementEntity::hasDataValue (   $key)

Determines whether a particular key holds data.

Parameters
string$key
Returns
bool

Definition at line 181 of file ElementEntity.php.

Referenced by TYPO3\CMS\Version\Dependency\ElementEntityProcessor\createNewDependentElementCallback(), and TYPO3\CMS\Version\Dependency\ElementEntity\getDataValue().

◆ hasReferences()

◆ isInvalid()

TYPO3\CMS\Version\Dependency\ElementEntity::isInvalid ( )
Returns
bool

Definition at line 110 of file ElementEntity.php.

References TYPO3\CMS\Version\Dependency\ElementEntity\$invalid.

◆ setDataValue()

TYPO3\CMS\Version\Dependency\ElementEntity::setDataValue (   $key,
  $value 
)

Sets a value for a particular key in the data.

Parameters
string$key
mixed$value
Returns
void

Definition at line 171 of file ElementEntity.php.

Referenced by TYPO3\CMS\Version\Dependency\ElementEntityProcessor\createNewDependentElementCallback().

◆ setId()

TYPO3\CMS\Version\Dependency\ElementEntity::setId (   $id)

◆ setInvalid()

TYPO3\CMS\Version\Dependency\ElementEntity::setInvalid (   $invalid)

Member Data Documentation

◆ $children

TYPO3\CMS\Version\Dependency\ElementEntity::$children
protected

◆ $data

TYPO3\CMS\Version\Dependency\ElementEntity::$data
protected

◆ $dependency

TYPO3\CMS\Version\Dependency\ElementEntity::$dependency
protected

◆ $id

◆ $invalid

TYPO3\CMS\Version\Dependency\ElementEntity::$invalid = FALSE
protected

◆ $nestedChildren

TYPO3\CMS\Version\Dependency\ElementEntity::$nestedChildren
protected

◆ $outerMostParent

TYPO3\CMS\Version\Dependency\ElementEntity::$outerMostParent
protected

◆ $parents

TYPO3\CMS\Version\Dependency\ElementEntity::$parents
protected

◆ $record

TYPO3\CMS\Version\Dependency\ElementEntity::$record
protected

◆ $table

◆ $traversingParents

TYPO3\CMS\Version\Dependency\ElementEntity::$traversingParents = FALSE
protected

Definition at line 72 of file ElementEntity.php.

◆ EVENT_Construct

const TYPO3\CMS\Version\Dependency\ElementEntity::EVENT_Construct = 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity::construct'

◆ EVENT_CreateChildReference

const TYPO3\CMS\Version\Dependency\ElementEntity::EVENT_CreateChildReference = 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity::createChildReference'

◆ EVENT_CreateParentReference

const TYPO3\CMS\Version\Dependency\ElementEntity::EVENT_CreateParentReference = 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity::createParentReference'

◆ REFERENCES_ChildOf

const TYPO3\CMS\Version\Dependency\ElementEntity::REFERENCES_ChildOf = 'childOf'

Definition at line 22 of file ElementEntity.php.

◆ REFERENCES_ParentOf

const TYPO3\CMS\Version\Dependency\ElementEntity::REFERENCES_ParentOf = 'parentOf'

Definition at line 23 of file ElementEntity.php.

◆ RESPONSE_Skip