PHP 클래스 RFormatter, php-ref

파일 보기 프로젝트 열기: digitalnature/php-ref 1 사용 예제들

공개 메소드들

메소드 설명
bubbles ( array $items ) Generate modifier tokens
cacheLock ( string $id ) Ends cache capturing for the given ID
colDiv ( integer $padLen = null ) Column divider (cell delimiter)
didCache ( string $id ) : boolean Resolve cache request
emptyGroup ( string $prefix = '' ) Generate empty group token
endContain ( ) Generate container ending token
endExp ( ) Input expression end
endGroup ( ) Generate group ending token
endRoot ( ) Root ending token
endRow ( ) Generate row ending token
flush ( ) Flush output and send contents to the output device
sectionTitle ( string $title ) Generate section title
sep ( string $label = ' ' ) Separator token
startContain ( string | array $type, string | boolean $label = false ) Generate container start token
startExp ( ) Input expression start
startGroup ( string $prefix = '' ) : boolean Generate group start token
startRoot ( ) Root starting token
startRow ( ) Generate row start token
text ( string | array $type, string | null $text = null, string | array | null $meta = null, string | null $uri = null ) Generate a base entity

메소드 상세

bubbles() 공개 메소드

Generate modifier tokens
public bubbles ( array $items )
$items array

cacheLock() 공개 메소드

Ends cache capturing for the given ID
public cacheLock ( string $id )
$id string

colDiv() 공개 메소드

Column divider (cell delimiter)
public colDiv ( integer $padLen = null )
$padLen integer

didCache() 공개 메소드

If the ID is not present in the cache, then a new cache entry is created for the given ID, and string offsets are captured until cacheLock is called This method must return TRUE if the ID exists in the cache, and append the cached item to the output, FALSE otherwise.
public didCache ( string $id ) : boolean
$id string
리턴 boolean

emptyGroup() 공개 메소드

Generate empty group token
public emptyGroup ( string $prefix = '' )
$prefix string

endContain() 공개 메소드

Generate container ending token
public endContain ( )

endExp() 공개 메소드

Input expression end
public endExp ( )

endGroup() 공개 메소드

Generate group ending token
public endGroup ( )

endRoot() 공개 메소드

Root ending token
public endRoot ( )

endRow() 공개 메소드

Generate row ending token
public endRow ( )

flush() 추상적인 공개 메소드

Flush output and send contents to the output device
abstract public flush ( )

sectionTitle() 공개 메소드

Generate section title
public sectionTitle ( string $title )
$title string

sep() 공개 메소드

Separator token
public sep ( string $label = ' ' )
$label string

startContain() 공개 메소드

Generate container start token
public startContain ( string | array $type, string | boolean $label = false )
$type string | array
$label string | boolean

startExp() 공개 메소드

Input expression start
public startExp ( )

startGroup() 공개 메소드

This method must return boolean TRUE on success, false otherwise (eg. max depth reached). The evaluator will skip this group on FALSE
public startGroup ( string $prefix = '' ) : boolean
$prefix string
리턴 boolean

startRoot() 공개 메소드

Root starting token
public startRoot ( )

startRow() 공개 메소드

Generate row start token
public startRow ( )

text() 추상적인 공개 메소드

Generate a base entity
abstract public text ( string | array $type, string | null $text = null, string | array | null $meta = null, string | null $uri = null )
$type string | array
$text string | null
$meta string | array | null
$uri string | null