BlogPostSection
in package
Uses
EntityTrait
This class contains a part of a blog post.
A blog post consists of several sections. A section must either contain a gallery, a file or html content
Tags
Table of Contents
- $blogPostId : int
- $fileId : int|null
- $galleryId : int|null
- $html : string|null
- $id : int
- $link : string|null
- $position : int
- format() : array<string, array<string, int|string|null>|int|string|null>
- Formats the blog post segment into an array
- getBlogPost() : BlogPost|null
- Gets the post this segment belongs to
- getFile() : File|null
- The file this segment contains
- getGallery() : Gallery|null
- The gallery this segment contains
Properties
$blogPostId
public
int
$blogPostId
The blog post the segment belongs to
Tags
$fileId
public
int|null
$fileId
= null
The file in the segment
Tags
$galleryId
public
int|null
$galleryId
= null
The gallery in the segment
Tags
$html
public
string|null
$html
= null
The html content in the segment
Tags
$id
public
int
$id
Tags
$link
public
string|null
$link
= null
The link opened when the file is clicked, implementation is theme-specific
Tags
$position
public
int
$position
The position of the segment
Tags
Methods
format()
Formats the blog post segment into an array
public
format() : array<string, array<string, int|string|null>|int|string|null>
Tags
Return values
array<string, array<string, int|string|null>|int|string|null> —getBlogPost()
Gets the post this segment belongs to
public
getBlogPost() : BlogPost|null
Tags
Return values
BlogPost|null —getFile()
The file this segment contains
public
getFile() : File|null
Tags
Return values
File|null —getGallery()
The gallery this segment contains
public
getGallery() : Gallery|null