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

Public Member Functions

 __construct ()
 
 getSubtitle ()
 
 setTitle (string $title)
 
 getTitle ()
 
 setLogo (ObjectStorage $logo)
 
ObjectStorage< FileReferencegetLogo ()
 
 setDescription (string $description)
 
 getDescription ()
 
 addPost (Post $post)
 
 removePost (Post $postToRemove)
 
 removeAllPosts ()
 
ObjectStorage< PostgetPosts ()
 
 addCategory (Category $category)
 
 setCategories (ObjectStorage $categories)
 
ObjectStorage< CategorygetCategories ()
 
 removeCategory (Category $category)
 
 setAdministrator (Administrator $administrator)
 
 getAdministrator ()
 
 setSubtitle (?string $subtitle)
 
- ‪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 ()
 
non empty string __toString ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface
 getUid ()
 
 getPid ()
 
 _isNew ()
 
 _hasProperty (string $propertyName)
 

Protected Attributes

string $title = ''
 
string $subtitle = null
 
string $description = ''
 
ObjectStorage $logo
 
ObjectStorage $posts
 
ObjectStorage $categories
 
Administrator LazyLoadingProxy null $administrator = null
 
- ‪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

A blog

Definition at line 29 of file Blog.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 78 of file Blog.php.

Member Function Documentation

◆ addCategory()

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

Definition at line 149 of file Blog.php.

◆ addPost()

TYPO3Tests\BlogExample\Domain\Model\Blog::addPost ( Post  $post)

Definition at line 126 of file Blog.php.

◆ getAdministrator()

TYPO3Tests\BlogExample\Domain\Model\Blog::getAdministrator ( )

Definition at line 180 of file Blog.php.

References TYPO3Tests\BlogExample\Domain\Model\Blog\$administrator.

◆ getCategories()

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

Definition at line 165 of file Blog.php.

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

◆ getDescription()

TYPO3Tests\BlogExample\Domain\Model\Blog::getDescription ( )

Definition at line 121 of file Blog.php.

References TYPO3Tests\BlogExample\Domain\Model\Blog\$description.

◆ getLogo()

ObjectStorage<FileReference> TYPO3Tests\BlogExample\Domain\Model\Blog::getLogo ( )
Returns
‪ObjectStorage<FileReference>

Definition at line 111 of file Blog.php.

References TYPO3Tests\BlogExample\Domain\Model\Blog\$logo.

◆ getPosts()

ObjectStorage<Post> TYPO3Tests\BlogExample\Domain\Model\Blog::getPosts ( )
Returns
‪ObjectStorage<Post>

Definition at line 144 of file Blog.php.

References TYPO3Tests\BlogExample\Domain\Model\Blog\$posts.

◆ getSubtitle()

TYPO3Tests\BlogExample\Domain\Model\Blog::getSubtitle ( )

Definition at line 85 of file Blog.php.

References TYPO3Tests\BlogExample\Domain\Model\Blog\$subtitle.

◆ getTitle()

TYPO3Tests\BlogExample\Domain\Model\Blog::getTitle ( )

Definition at line 95 of file Blog.php.

References TYPO3Tests\BlogExample\Domain\Model\Blog\$title.

◆ removeAllPosts()

TYPO3Tests\BlogExample\Domain\Model\Blog::removeAllPosts ( )

Definition at line 136 of file Blog.php.

◆ removeCategory()

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

Definition at line 170 of file Blog.php.

◆ removePost()

TYPO3Tests\BlogExample\Domain\Model\Blog::removePost ( Post  $postToRemove)

Definition at line 131 of file Blog.php.

◆ setAdministrator()

TYPO3Tests\BlogExample\Domain\Model\Blog::setAdministrator ( Administrator  $administrator)

Definition at line 175 of file Blog.php.

References TYPO3Tests\BlogExample\Domain\Model\Blog\$administrator.

◆ setCategories()

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

Definition at line 157 of file Blog.php.

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

◆ setDescription()

TYPO3Tests\BlogExample\Domain\Model\Blog::setDescription ( string  $description)

◆ setLogo()

TYPO3Tests\BlogExample\Domain\Model\Blog::setLogo ( ObjectStorage  $logo)
Parameters
ObjectStorage<FileReference>‪$logo

Definition at line 103 of file Blog.php.

References TYPO3Tests\BlogExample\Domain\Model\Blog\$logo.

◆ setSubtitle()

TYPO3Tests\BlogExample\Domain\Model\Blog::setSubtitle ( ?string  $subtitle)

Definition at line 185 of file Blog.php.

References TYPO3Tests\BlogExample\Domain\Model\Blog\$subtitle.

◆ setTitle()

TYPO3Tests\BlogExample\Domain\Model\Blog::setTitle ( string  $title)

Definition at line 90 of file Blog.php.

References TYPO3Tests\BlogExample\Domain\Model\Blog\$title.

Member Data Documentation

◆ $administrator

Administrator LazyLoadingProxy null TYPO3Tests\BlogExample\Domain\Model\Blog::$administrator = null
protected

The blog's administrator

@Extbase\ORM\Lazy

Definition at line 76 of file Blog.php.

Referenced by TYPO3Tests\BlogExample\Domain\Model\Blog\getAdministrator(), and TYPO3Tests\BlogExample\Domain\Model\Blog\setAdministrator().

◆ $categories

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

◆ $description

string TYPO3Tests\BlogExample\Domain\Model\Blog::$description = ''
protected

A short description of the blog

@Extbase\Validate("StringLength", options={"maximum": 150})

Definition at line 48 of file Blog.php.

Referenced by TYPO3Tests\BlogExample\Domain\Model\Blog\getDescription(), and TYPO3Tests\BlogExample\Domain\Model\Blog\setDescription().

◆ $logo

ObjectStorage TYPO3Tests\BlogExample\Domain\Model\Blog::$logo
protected

◆ $posts

ObjectStorage TYPO3Tests\BlogExample\Domain\Model\Blog::$posts
protected

Definition at line 64 of file Blog.php.

Referenced by TYPO3Tests\BlogExample\Domain\Model\Blog\getPosts().

◆ $subtitle

string TYPO3Tests\BlogExample\Domain\Model\Blog::$subtitle = null
protected

◆ $title

string TYPO3Tests\BlogExample\Domain\Model\Blog::$title = ''
protected

The blog's title.

@Extbase\Validate("StringLength", options={"minimum": 1, "maximum": 80})

Definition at line 36 of file Blog.php.

Referenced by TYPO3Tests\BlogExample\Domain\Model\Blog\getTitle(), and TYPO3Tests\BlogExample\Domain\Model\Blog\setTitle().