Property | Type | Description | |
---|---|---|---|
$_legacy | Bolt\Storage\ContentLegacyService | ||
$contenttype | |||
$datechanged | DateTime | ||
$datecreated | DateTime | ||
$datedepublish | DateTime | ||
$datepublish | DateTime | ||
$group | array | @deprecated Deprecated since 3.0, to be removed in 4.0. | |
$id | integer | ||
$ownerid | integer | ||
$relation | |||
$slug | string | ||
$sortorder | integer | ||
$status | string | ||
$taxonomy |
Method | Description | |
---|---|---|
get ( string $key ) : mixed | Getter for templates using {{ content.get(title) }} functions. | |
getContenttype ( ) | ||
getDatechanged ( ) : DateTime | Get change date. | |
getDatecreated ( ) : DateTime | Get creation date. | |
getDatedepublish ( ) : DateTime | ||
getDatepublish ( ) : DateTime | ||
getGroup ( ) : array | ||
getId ( ) : integer | ||
getLegacy ( ) : Bolt\Storage\ContentLegacyService | ||
getOwnerid ( ) : integer | ||
getRelation ( string | null $contentType = null ) : |
||
getSlug ( ) : string | ||
getSortorder ( ) : integer | ||
getStatus ( ) : string | ||
getTaxonomy ( ) : |
||
getTemplatefields ( ) | ||
getTitle ( ) : string | Getter for a record's 'title' field. | |
set ( string $key, mixed $value ) | Setter for content values. | |
setContenttype ( $value ) | ||
setDatechanged ( DateTime | string | null $date ) | Set change date. | |
setDatecreated ( DateTime | string | null $date ) | Set creation date. | |
setDatedepublish ( DateTime | string | null $date ) | Set depublished date. | |
setDatepublish ( DateTime | string | null $date ) | Set published date. | |
setGroup ( array $group ) | ||
setId ( integer $id ) | ||
setLegacyService ( Bolt\Storage\ContentLegacyService $service ) | ||
setOwnerid ( integer $ownerid ) | ||
setRelation ( |
||
setSlug ( string $slug ) | ||
setSortorder ( integer $sortorder ) | ||
setStatus ( string $status ) | ||
setTaxonomy ( |
||
setTemplatefields ( $value ) | ||
setValues ( array $values ) | Helper to set an array of values |
Method | Description | |
---|---|---|
getValidDateObject ( DateTime | string | null $date ) : DateTime | null | Get a valid date property to persist. |
public getDatechanged ( ) : DateTime | ||
return | DateTime |
public getDatecreated ( ) : DateTime | ||
return | DateTime |
public getLegacy ( ) : Bolt\Storage\ContentLegacyService | ||
return | Bolt\Storage\ContentLegacyService |
public getRelation ( string | null $contentType = null ) : |
||
$contentType | string | null | |
return |
public getTaxonomy ( ) : |
||
return |
public setDatechanged ( DateTime | string | null $date ) | ||
$date | DateTime | string | null |
public setDatecreated ( DateTime | string | null $date ) | ||
$date | DateTime | string | null |
public setDatedepublish ( DateTime | string | null $date ) | ||
$date | DateTime | string | null |
public setDatepublish ( DateTime | string | null $date ) | ||
$date | DateTime | string | null |
public setLegacyService ( Bolt\Storage\ContentLegacyService $service ) | ||
$service | Bolt\Storage\ContentLegacyService |
public setRelation ( |
||
$rel |
public setTaxonomy ( |
||
$taxonomy |
protected ContentLegacyService,Bolt\Storage $_legacy | ||
return | Bolt\Storage\ContentLegacyService |
protected array $group | ||
return | array |
protected Relations,Bolt\Storage\Collection $relation | ||
return |