PHP 클래스 Xpressengine\Document\Models\Document

Config를 설정할 때 division 을 사용하는 경우에는 이 모델의 table 이름을 division table 이름으로 변경합니다.
저자: XE Developers ([email protected])
상속: extends Xpressengine\Database\Eloquent\DynamicModel
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$incrementing
$table

보호된 프로퍼티들

프로퍼티 타입 설명
$approves array
$casts
$config
$connection string Virtual connection name.
$displays array
$division
$dynamic use dynamic query
$fillable
$hidden
$publishes array
$replyCharLen
$statuses array

공개 메소드들

메소드 설명
checkRequired ( array $attributes ) : void Check required attributes
fixedAttributes ( array $attributes ) : array Set default value to attributes
getDepth ( ) : float 덧글의 depth 반환
getPureContent ( string $content ) : string HTML 코드를 제거한 pureContent 반환
getReplyCharLen ( ) : integer Reply character length
setApprove ( ) 승인
setApproveWait ( ) 승인 대기
setApproved ( string $approved ) : void 승인 상태 변경
setConfig ( ConfigEntity $config, string | null $table = null ) : void set config
setDisplay ( string $display ) : void change documents display condition
setNotice ( boolean $notice = true ) 공지 상태로 변경
setPublish ( ) 발행
setPublished ( string $published ) : void change documents publish condition
setReject ( ) 승인 신청 거절
setReply ( ) : void Set reply attributes value
setReplyCharLen ( integer $len ) : void Set reply character length
setReserve ( ) 발행 예약
setRestore ( ) 휴지통 문서 복구
setStatus ( string $status ) : void change documents status condition
setTemporary ( ) 임시저장
setTrash ( ) 휴지통
user ( ) : BelongsTo user relationship

보호된 메소드들

메소드 설명
getReplyChar ( Document $parent ) : string get reply code
makeReplyChar ( string $prevChars = null ) : string Make next reply code characters
performDeleteOnModel ( ) : void Perform a model delete operation.
performInsert ( Builder $query, array $options = [] ) : boolean Perform a model insert operation.
performUpdate ( Builder $query, array $options = [] ) : boolean Perform a model update operation.

메소드 상세

checkRequired() 공개 메소드

Check required attributes
public checkRequired ( array $attributes ) : void
$attributes array attributes
리턴 void

fixedAttributes() 공개 메소드

Set default value to attributes
public fixedAttributes ( array $attributes ) : array
$attributes array attributes
리턴 array

getDepth() 공개 메소드

덧글의 depth 반환
public getDepth ( ) : float
리턴 float

getPureContent() 공개 메소드

HTML 코드를 제거한 pureContent 반환
public getPureContent ( string $content ) : string
$content string content
리턴 string

getReplyChar() 보호된 메소드

get reply code
protected getReplyChar ( Document $parent ) : string
$parent Document Parent document model
리턴 string

getReplyCharLen() 공개 정적인 메소드

Reply character length
public static getReplyCharLen ( ) : integer
리턴 integer

makeReplyChar() 보호된 메소드

Make next reply code characters
protected makeReplyChar ( string $prevChars = null ) : string
$prevChars string previous child reply code character
리턴 string

performDeleteOnModel() 보호된 메소드

Perform a model delete operation.
protected performDeleteOnModel ( ) : void
리턴 void

performInsert() 보호된 메소드

Perform a model insert operation.
protected performInsert ( Builder $query, array $options = [] ) : boolean
$query Illuminate\Database\Eloquent\Builder Illuminate database eloquent builder
$options array options
리턴 boolean

performUpdate() 보호된 메소드

Perform a model update operation.
protected performUpdate ( Builder $query, array $options = [] ) : boolean
$query Illuminate\Database\Eloquent\Builder Illuminate database eloquent builder
$options array options
리턴 boolean

setApprove() 공개 메소드

승인
public setApprove ( )

setApproveWait() 공개 메소드

승인 대기
public setApproveWait ( )

setApproved() 공개 메소드

승인 상태 변경
public setApproved ( string $approved ) : void
$approved string condition value. 'approved':승인됨, 'waiting':대기중, 'rejected':거절됨
리턴 void

setConfig() 공개 메소드

set config
public setConfig ( ConfigEntity $config, string | null $table = null ) : void
$config Xpressengine\Config\ConfigEntity document config entity
$table string | null table name
리턴 void

setDisplay() 공개 메소드

change documents display condition
public setDisplay ( string $display ) : void
$display string condition value 'visible':보여짐, 'secret':비밀글, 'hidden':숨김
리턴 void

setNotice() 공개 메소드

공지 상태로 변경
public setNotice ( boolean $notice = true )
$notice boolean is notice

setPublish() 공개 메소드

발행
public setPublish ( )

setPublished() 공개 메소드

change documents publish condition
public setPublished ( string $published ) : void
$published string condition value. 'published':발행됨, 'waiting':대기중, 'reserved':발행예약됨, 'rejected':거절됨
리턴 void

setReject() 공개 메소드

승인 신청 거절
public setReject ( )

setReply() 공개 메소드

Set reply attributes value
public setReply ( ) : void
리턴 void

setReplyCharLen() 공개 정적인 메소드

Set reply character length
public static setReplyCharLen ( integer $len ) : void
$len integer reply character length
리턴 void

setReserve() 공개 메소드

발행 예약
public setReserve ( )

setRestore() 공개 메소드

휴지통 문서 복구
public setRestore ( )

setStatus() 공개 메소드

change documents status condition
public setStatus ( string $status ) : void
$status string condition value. 'usual':일반, 'temp':임시저장글, 'trash':휴지통글
리턴 void

setTemporary() 공개 메소드

임시저장
public setTemporary ( )

setTrash() 공개 메소드

휴지통
public setTrash ( )

user() 공개 메소드

user relationship
public user ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo

프로퍼티 상세

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

protected array $approves
리턴 array

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

protected $casts

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

protected $config

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

Virtual connection name.
protected string $connection
리턴 string

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

protected array $displays
리턴 array

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

protected $division

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

use dynamic query
protected $dynamic

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

protected $fillable

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

protected $hidden

$incrementing 공개적으로 프로퍼티

public $incrementing

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

protected array $publishes
리턴 array

$replyCharLen 보호되어 있는 정적으로 프로퍼티

protected static $replyCharLen

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

protected array $statuses
리턴 array

$table 공개적으로 프로퍼티

public $table