PHP 클래스 Timber\PostPreview

부터: 1.0.4
파일 보기 프로젝트 열기: jarednova/timber

보호된 프로퍼티들

프로퍼티 타입 설명
$char_length
$end
$force
$length
$post
$readmore
$strip

공개 메소드들

메소드 설명
__construct ( Post $post )
__toString ( )
chars ( integer $char_length = false )
end ( string $end = '…' )
force ( boolean $force = true )
length ( integer $length = 50 )
read_more ( string $readmore = 'Read More' )
strip ( boolean | string $strip = true )

보호된 메소드들

메소드 설명
assemble ( string $text, array | booelan $readmore_matches, boolean $trimmed )
run ( )

메소드 상세

__construct() 공개 메소드

public __construct ( Post $post )
$post Post

__toString() 공개 메소드

public __toString ( )

assemble() 보호된 메소드

protected assemble ( string $text, array | booelan $readmore_matches, boolean $trimmed )
$text string
$readmore_matches array | booelan
$trimmed boolean was the text trimmed?

chars() 공개 메소드

public chars ( integer $char_length = false )
$char_length integer (in characters) of the target preview

end() 공개 메소드

public end ( string $end = '…' )
$end string how should the text in the preview end

force() 공개 메소드

public force ( boolean $force = true )
$force boolean If the editor wrote a manual excerpt longer than the set length, should it be "forced" to the size specified?

length() 공개 메소드

public length ( integer $length = 50 )
$length integer (in words) of the target preview

read_more() 공개 메소드

public read_more ( string $readmore = 'Read More' )
$readmore string What the text displays as to the reader inside of the tag

run() 보호된 메소드

protected run ( )

strip() 공개 메소드

public strip ( boolean | string $strip = true )
$strip boolean | string strip the tags or what? You can also provide a list of allowed tags

프로퍼티 상세

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

protected $char_length

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

protected $end

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

protected $force

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

protected $length

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

protected $post

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

protected $readmore

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

protected $strip