PHP 클래스 Bolt\Storage\Entity\Content

상속: extends Bolt\Storage\Entity\Entity, use trait ContentRouteTrait, use trait Bolt\Storage\Mapping\ContentTypeTitleTrait
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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 Bolt\Storage\Collection\Relations
$slug string
$sortorder integer
$status string
$taxonomy Bolt\Storage\Collection\Taxonomy

공개 메소드들

메소드 설명
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 ) : Relations
getSlug ( ) : string
getSortorder ( ) : integer
getStatus ( ) : string
getTaxonomy ( ) : Taxonomy
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 ( Relations $rel )
setSlug ( string $slug )
setSortorder ( integer $sortorder )
setStatus ( string $status )
setTaxonomy ( Taxonomy $taxonomy )
setTemplatefields ( $value )
setValues ( array $values ) Helper to set an array of values

보호된 메소드들

메소드 설명
getValidDateObject ( DateTime | string | null $date ) : DateTime | null Get a valid date property to persist.

메소드 상세

get() 공개 메소드

Getter for templates using {{ content.get(title) }} functions.
public get ( string $key ) : mixed
$key string
리턴 mixed

getContenttype() 공개 메소드

public getContenttype ( )

getDatechanged() 공개 메소드

Get change date.
public getDatechanged ( ) : DateTime
리턴 DateTime

getDatecreated() 공개 메소드

Get creation date.
public getDatecreated ( ) : DateTime
리턴 DateTime

getDatedepublish() 공개 메소드

public getDatedepublish ( ) : DateTime
리턴 DateTime

getDatepublish() 공개 메소드

public getDatepublish ( ) : DateTime
리턴 DateTime

getGroup() 공개 메소드

public getGroup ( ) : array
리턴 array

getId() 공개 메소드

public getId ( ) : integer
리턴 integer

getLegacy() 공개 메소드

public getLegacy ( ) : Bolt\Storage\ContentLegacyService
리턴 Bolt\Storage\ContentLegacyService

getOwnerid() 공개 메소드

public getOwnerid ( ) : integer
리턴 integer

getRelation() 공개 메소드

public getRelation ( string | null $contentType = null ) : Relations
$contentType string | null
리턴 Bolt\Storage\Collection\Relations

getSlug() 공개 메소드

public getSlug ( ) : string
리턴 string

getSortorder() 공개 메소드

public getSortorder ( ) : integer
리턴 integer

getStatus() 공개 메소드

public getStatus ( ) : string
리턴 string

getTaxonomy() 공개 메소드

public getTaxonomy ( ) : Taxonomy
리턴 Bolt\Storage\Collection\Taxonomy

getTemplatefields() 공개 메소드

public getTemplatefields ( )

getTitle() 공개 메소드

If there is no field called 'title' then we just return the first text type field.
public getTitle ( ) : string
리턴 string

getValidDateObject() 보호된 메소드

Get a valid date property to persist.
protected getValidDateObject ( DateTime | string | null $date ) : DateTime | null
$date DateTime | string | null
리턴 DateTime | null

set() 공개 메소드

Setter for content values.
public set ( string $key, mixed $value )
$key string
$value mixed

setContenttype() 공개 메소드

public setContenttype ( $value )

setDatechanged() 공개 메소드

Set change date.
public setDatechanged ( DateTime | string | null $date )
$date DateTime | string | null

setDatecreated() 공개 메소드

Set creation date.
public setDatecreated ( DateTime | string | null $date )
$date DateTime | string | null

setDatedepublish() 공개 메소드

Set depublished date.
public setDatedepublish ( DateTime | string | null $date )
$date DateTime | string | null

setDatepublish() 공개 메소드

Set published date.
public setDatepublish ( DateTime | string | null $date )
$date DateTime | string | null

setGroup() 공개 메소드

public setGroup ( array $group )
$group array

setId() 공개 메소드

public setId ( integer $id )
$id integer

setLegacyService() 공개 메소드

public setLegacyService ( Bolt\Storage\ContentLegacyService $service )
$service Bolt\Storage\ContentLegacyService

setOwnerid() 공개 메소드

public setOwnerid ( integer $ownerid )
$ownerid integer

setRelation() 공개 메소드

public setRelation ( Relations $rel )
$rel Bolt\Storage\Collection\Relations

setSlug() 공개 메소드

public setSlug ( string $slug )
$slug string

setSortorder() 공개 메소드

public setSortorder ( integer $sortorder )
$sortorder integer

setStatus() 공개 메소드

public setStatus ( string $status )
$status string

setTaxonomy() 공개 메소드

public setTaxonomy ( Taxonomy $taxonomy )
$taxonomy Bolt\Storage\Collection\Taxonomy

setTemplatefields() 공개 메소드

public setTemplatefields ( $value )

setValues() 공개 메소드

Helper to set an array of values
public setValues ( array $values )
$values array

프로퍼티 상세

$_legacy 보호되어 있는 프로퍼티

protected ContentLegacyService,Bolt\Storage $_legacy
리턴 Bolt\Storage\ContentLegacyService

$contenttype 보호되어 있는 프로퍼티

protected $contenttype

$datechanged 보호되어 있는 프로퍼티

protected DateTime $datechanged
리턴 DateTime

$datecreated 보호되어 있는 프로퍼티

protected DateTime $datecreated
리턴 DateTime

$datedepublish 보호되어 있는 프로퍼티

protected DateTime $datedepublish
리턴 DateTime

$datepublish 보호되어 있는 프로퍼티

protected DateTime $datepublish
리턴 DateTime

$group 보호되어 있는 프로퍼티

@deprecated Deprecated since 3.0, to be removed in 4.0.
protected array $group
리턴 array

$id 보호되어 있는 프로퍼티

protected int $id
리턴 integer

$ownerid 보호되어 있는 프로퍼티

protected int $ownerid
리턴 integer

$relation 보호되어 있는 프로퍼티

protected Relations,Bolt\Storage\Collection $relation
리턴 Bolt\Storage\Collection\Relations

$slug 보호되어 있는 프로퍼티

protected string $slug
리턴 string

$sortorder 보호되어 있는 프로퍼티

protected int $sortorder
리턴 integer

$status 보호되어 있는 프로퍼티

protected string $status
리턴 string

$taxonomy 보호되어 있는 프로퍼티

protected Taxonomy,Bolt\Storage\Collection $taxonomy
리턴 Bolt\Storage\Collection\Taxonomy