TYPO3 CMS  TYPO3_6-2
ReferenceEntity.php
Go to the documentation of this file.
1 <?php
3 
21 
25  protected $element;
26 
30  protected $field;
31 
38  public function __construct(\TYPO3\CMS\Version\Dependency\ElementEntity $element, $field) {
39  $this->element = $element;
40  $this->field = $field;
41  }
42 
48  public function getElement() {
49  return $this->element;
50  }
51 
57  public function getField() {
58  return $this->field;
59  }
60 
66  public function __toString() {
67  return $this->element . '.' . $this->field;
68  }
69 
70 }
__construct(\TYPO3\CMS\Version\Dependency\ElementEntity $element, $field)