Jinya CMS

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

$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
public string|null $link = null

The link opened when the file is clicked, implementation is theme-specific

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>

Search results