‪TYPO3CMS  11.5
ExtbaseTeam\BlogExample\Domain\Model\Blog Class Reference
Inheritance diagram for ExtbaseTeam\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 ()
 
string getSubtitle ()
 
 setTitle ($title)
 
string getTitle ()
 
 setLogo ($logo)
 
string getLogo ()
 
 setDescription ($description)
 
string getDescription ()
 
 addPost (Post $post)
 
 removePost (Post $postToRemove)
 
 removeAllPosts ()
 
TYPO3 CMS Extbase Persistence ObjectStorage getPosts ()
 
 addCategory (Category $category)
 
 setCategories ($categories)
 
TYPO3 CMS Extbase Persistence ObjectStorage getCategories ()
 
 removeCategory (Category $category)
 
 setAdministrator (Administrator $administrator)
 
Administrator LazyLoadingProxy null getAdministrator ()
 
 setSubtitle ($subtitle)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
int null getUid ()
 
 setPid (int $pid)
 
int null getPid ()
 
bool _setProperty (string $propertyName, $propertyValue)
 
mixed _getProperty (string $propertyName)
 
array _getProperties ()
 
bool _hasProperty ($propertyName)
 
bool _isNew ()
 
 _memorizeCleanState ($propertyName=null)
 
 _memorizePropertyCleanState ($propertyName)
 
array _getCleanProperties ()
 
mixed _getCleanProperty (string $propertyName)
 
bool _isDirty ($propertyName=null)
 
bool _isClone ()
 
 _setClone ($clone)
 
 __clone ()
 
string __toString ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Persistence\ObjectMonitoringInterface
 _memorizeCleanState ()
 
bool _isDirty ()
 

Protected Attributes

string $title = ''
 
string $subtitle
 
string $description = ''
 
string $logo = ''
 
TYPO3 CMS Extbase Persistence ObjectStorage< Post$posts
 
TYPO3 CMS Extbase Persistence ObjectStorage< Category$categories
 
ExtbaseTeam BlogExample Domain Model Administrator $administrator
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
int $uid
 
int $_localizedUid
 
int $_languageUid
 
int $_versionedUid
 
int $pid
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
bool isPropertyDirty ($previousValue, $currentValue)
 

Detailed Description

A blog

Definition at line 28 of file Blog.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructs a new Blog

Definition at line 78 of file Blog.php.

Member Function Documentation

◆ addCategory()

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

Add category to a blog

Parameters
Category$category

Definition at line 191 of file Blog.php.

◆ addPost()

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

Adds a post to this blog

Parameters
Post$post

Definition at line 153 of file Blog.php.

◆ getAdministrator()

Administrator LazyLoadingProxy null ExtbaseTeam\BlogExample\Domain\Model\Blog::getAdministrator ( )

Returns the administrator value

Returns
‪Administrator|LazyLoadingProxy|null

Definition at line 241 of file Blog.php.

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

◆ getCategories()

TYPO3 CMS Extbase Persistence ObjectStorage ExtbaseTeam\BlogExample\Domain\Model\Blog::getCategories ( )

Get categories

Returns
‪\TYPO3\CMS\Extbase\Persistence\ObjectStorage

Definition at line 211 of file Blog.php.

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

◆ getDescription()

string ExtbaseTeam\BlogExample\Domain\Model\Blog::getDescription ( )

Returns the description

Returns
‪string

Definition at line 143 of file Blog.php.

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

◆ getLogo()

string ExtbaseTeam\BlogExample\Domain\Model\Blog::getLogo ( )
Returns
‪string

Definition at line 123 of file Blog.php.

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

◆ getPosts()

TYPO3 CMS Extbase Persistence ObjectStorage ExtbaseTeam\BlogExample\Domain\Model\Blog::getPosts ( )

Returns all posts in this blog

Returns
‪\TYPO3\CMS\Extbase\Persistence\ObjectStorage

Definition at line 181 of file Blog.php.

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

◆ getSubtitle()

string ExtbaseTeam\BlogExample\Domain\Model\Blog::getSubtitle ( )
Returns
‪string

Definition at line 87 of file Blog.php.

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

◆ getTitle()

string ExtbaseTeam\BlogExample\Domain\Model\Blog::getTitle ( )

Returns the blog's title

Returns
‪string The blog's title

Definition at line 107 of file Blog.php.

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

◆ removeAllPosts()

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

Remove all posts from this blog

Definition at line 171 of file Blog.php.

◆ removeCategory()

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

Remove category from blog

Parameters
Category$category

Definition at line 221 of file Blog.php.

◆ removePost()

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

Remove a post from this blog

Parameters
Post$postToRemove‪The post to be removed

Definition at line 163 of file Blog.php.

◆ setAdministrator()

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

Sets the administrator value

Parameters
Administrator$administrator‪The Administrator of this Blog

Definition at line 231 of file Blog.php.

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

◆ setCategories()

ExtbaseTeam\BlogExample\Domain\Model\Blog::setCategories (   $categories)

Set categories

Parameters
\TYPO3\CMS\Extbase\Persistence\ObjectStorage$categories

Definition at line 201 of file Blog.php.

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

◆ setDescription()

ExtbaseTeam\BlogExample\Domain\Model\Blog::setDescription (   $description)

Sets the description for the blog

Parameters
string$description

Definition at line 133 of file Blog.php.

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

◆ setLogo()

ExtbaseTeam\BlogExample\Domain\Model\Blog::setLogo (   $logo)
Parameters
string$logo

Definition at line 115 of file Blog.php.

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

◆ setSubtitle()

ExtbaseTeam\BlogExample\Domain\Model\Blog::setSubtitle (   $subtitle)
Parameters
string | null$subtitle

Definition at line 249 of file Blog.php.

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

◆ setTitle()

ExtbaseTeam\BlogExample\Domain\Model\Blog::setTitle (   $title)

Sets this blog's title

Parameters
string$title‪The blog's title

Definition at line 97 of file Blog.php.

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

Member Data Documentation

◆ $administrator

ExtbaseTeam BlogExample Domain Model Administrator ExtbaseTeam\BlogExample\Domain\Model\Blog::$administrator
protected

The blog's administrator

@Extbase\ORM\Lazy

Definition at line 73 of file Blog.php.

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

◆ $categories

TYPO3 CMS Extbase Persistence ObjectStorage<Category> ExtbaseTeam\BlogExample\Domain\Model\Blog::$categories
protected

◆ $description

string ExtbaseTeam\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 ExtbaseTeam\BlogExample\Domain\Model\Blog\getDescription(), and ExtbaseTeam\BlogExample\Domain\Model\Blog\setDescription().

◆ $logo

string ExtbaseTeam\BlogExample\Domain\Model\Blog::$logo = ''
protected

A relative path to a logo image

Definition at line 54 of file Blog.php.

Referenced by ExtbaseTeam\BlogExample\Domain\Model\Blog\getLogo(), and ExtbaseTeam\BlogExample\Domain\Model\Blog\setLogo().

◆ $posts

TYPO3 CMS Extbase Persistence ObjectStorage<Post> ExtbaseTeam\BlogExample\Domain\Model\Blog::$posts
protected

The posts of this blog

@Extbase\ORM\Lazy @Extbase\ORM\Cascade("remove")

Definition at line 62 of file Blog.php.

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

◆ $subtitle

string ExtbaseTeam\BlogExample\Domain\Model\Blog::$subtitle
protected

◆ $title

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

The blog's title.

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

Definition at line 35 of file Blog.php.

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