‪TYPO3CMS  ‪main
TYPO3Tests\BlogExample\Domain\Model\TtContent Class Reference
Inheritance diagram for TYPO3Tests\BlogExample\Domain\Model\TtContent:
TYPO3\CMS\Extbase\DomainObject\AbstractEntity TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface TYPO3\CMS\Extbase\Persistence\ObjectMonitoringInterface

Public Member Functions

 __construct ()
 
 getHeader ()
 
 setHeader (string $header)
 
ObjectStorage< FileReferencegetImage ()
 
 setImage (ObjectStorage $image)
 
 addCategory (Category $category)
 
 setCategories (ObjectStorage $categories)
 
ObjectStorage< CategorygetCategories ()
 
 removeCategory (Category $category)
 
 __toString ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
 setPid (int $pid)
 
 _setProperty (string $propertyName, mixed $value)
 
 _getProperty (string $propertyName)
 
 _memorizeCleanState (?string $propertyName=null)
 
 _memorizePropertyCleanState (string $propertyName)
 
 _getCleanProperty (string $propertyName)
 
 _isDirty (?string $propertyName=null)
 
 _isClone ()
 
 _setClone (bool $clone)
 
 __clone ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface
 getUid ()
 
 getPid ()
 
 _isNew ()
 
 _hasProperty (string $propertyName)
 

Protected Attributes

string $header = ''
 
ObjectStorage $image
 
ObjectStorage $categories
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
int $uid = null
 
int $_localizedUid = null
 
int $_languageUid = null
 
int $_versionedUid = null
 
int $pid = null
 

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
const PROPERTY_UID = 'uid'
 
const PROPERTY_PID = 'pid'
 
const PROPERTY_LOCALIZED_UID = '_localizedUid'
 
const PROPERTY_LANGUAGE_UID = '_languageUid'
 
const PROPERTY_VERSIONED_UID = '_versionedUid'
 
int< 1, function getUid():?int { if( $this->uid !==null) { return(int) $this-> uid
 
return null
 
int< 0, function getPid():int|null { if( $this->pid===null) { return null;} return(int) $this-> pid
 
array< non-empty-string, function _getProperties():array { $properties=get_object_vars( $this);foreach( $properties as $propertyName=> $propertyValue) { if(str_starts_with( $propertyName, '_')) { unset( $properties[ $propertyName]);} } return $properties;} public function _hasProperty(string $propertyName):bool { return property_exists( $this, $propertyName);} public function _isNew():bool { return $this-> uid === null
 
array< non-empty-string, function _getCleanProperties():array { return $this-> _cleanProperties
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
 isPropertyDirty (mixed $previousValue, mixed $currentValue)
 

Detailed Description

Definition at line 25 of file TtContent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3Tests\BlogExample\Domain\Model\TtContent::__construct ( )

Definition at line 40 of file TtContent.php.

Member Function Documentation

◆ __toString()

TYPO3Tests\BlogExample\Domain\Model\TtContent::__toString ( )

Returns this as a formatted string

Reimplemented from TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject.

Definition at line 101 of file TtContent.php.

References TYPO3Tests\BlogExample\Domain\Model\TtContent\getHeader().

◆ addCategory()

TYPO3Tests\BlogExample\Domain\Model\TtContent::addCategory ( Category  $category)

Definition at line 72 of file TtContent.php.

◆ getCategories()

ObjectStorage<Category> TYPO3Tests\BlogExample\Domain\Model\TtContent::getCategories ( )
Returns
‪ObjectStorage<Category>

Definition at line 88 of file TtContent.php.

References TYPO3Tests\BlogExample\Domain\Model\TtContent\$categories.

◆ getHeader()

TYPO3Tests\BlogExample\Domain\Model\TtContent::getHeader ( )

◆ getImage()

ObjectStorage<FileReference> TYPO3Tests\BlogExample\Domain\Model\TtContent::getImage ( )
Returns
‪ObjectStorage<FileReference>

Definition at line 59 of file TtContent.php.

References TYPO3Tests\BlogExample\Domain\Model\TtContent\$image.

◆ removeCategory()

TYPO3Tests\BlogExample\Domain\Model\TtContent::removeCategory ( Category  $category)

Definition at line 93 of file TtContent.php.

◆ setCategories()

TYPO3Tests\BlogExample\Domain\Model\TtContent::setCategories ( ObjectStorage  $categories)
Parameters
ObjectStorage<Category>‪$categories

Definition at line 80 of file TtContent.php.

References TYPO3Tests\BlogExample\Domain\Model\TtContent\$categories.

◆ setHeader()

TYPO3Tests\BlogExample\Domain\Model\TtContent::setHeader ( string  $header)

◆ setImage()

TYPO3Tests\BlogExample\Domain\Model\TtContent::setImage ( ObjectStorage  $image)
Parameters
ObjectStorage<FileReference>‪$image

Definition at line 67 of file TtContent.php.

References TYPO3Tests\BlogExample\Domain\Model\TtContent\$image.

Member Data Documentation

◆ $categories

ObjectStorage TYPO3Tests\BlogExample\Domain\Model\TtContent::$categories
protected

◆ $header

string TYPO3Tests\BlogExample\Domain\Model\TtContent::$header = ''
protected

◆ $image

ObjectStorage TYPO3Tests\BlogExample\Domain\Model\TtContent::$image
protected