PHP 클래스 PHPFusion\OutputHandler

파일 보기 프로젝트 열기: php-fusion/PHP-Fusion 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$jqueryTags string Additional javascripts
$pageFooterTags string Additional contents to the footer
$pageHeadTags string Additional tags to the html head
$pageTitle string The title in the "title" tag

공개 메소드들

메소드 설명
addHandler ( callback $callback ) Add a new output handler function
addToFooter ( string $tag = "" ) Add content to the footer
addToHead ( string $tag = "" ) Add content to the html head
addToJQuery ( string $tag = "" ) Add javascript source code to the output
addToMeta ( string $name, string $addition = "" ) Append something to a meta tag
addToTitle ( type $addition = "" ) Append something to the title of the page
getTitle ( ) Get Current Page Title
handleOutput ( string $output ) : string Execute the output handlers
replaceInOutput ( string $target, string $replace, string $modifiers = "" ) Replace something in the output using regexp
setMeta ( string $name, string $content = "" ) Set a meta tag by name
setTitle ( string $title = "" ) Set the new title of the page

메소드 상세

addHandler() 공개 정적인 메소드

Add a new output handler function
public static addHandler ( callback $callback )
$callback callback The name of a function or other callable object

addToFooter() 공개 정적인 메소드

Add content to the footer
public static addToFooter ( string $tag = "" )
$tag string

addToHead() 공개 정적인 메소드

Add content to the html head
public static addToHead ( string $tag = "" )
$tag string

addToJQuery() 공개 정적인 메소드

Add javascript source code to the output
public static addToJQuery ( string $tag = "" )
$tag string

addToMeta() 공개 정적인 메소드

Append something to a meta tag
public static addToMeta ( string $name, string $addition = "" )
$name string
$addition string

addToTitle() 공개 정적인 메소드

Append something to the title of the page
public static addToTitle ( type $addition = "" )
$addition type

getTitle() 공개 정적인 메소드

Get Current Page Title
public static getTitle ( )

handleOutput() 공개 정적인 메소드

Execute the output handlers
public static handleOutput ( string $output ) : string
$output string
리턴 string

replaceInOutput() 공개 정적인 메소드

Replace something in the output using regexp
public static replaceInOutput ( string $target, string $replace, string $modifiers = "" )
$target string Regexp pattern without delimiters
$replace string The new content
$modifiers string Regexp modifiers

setMeta() 공개 정적인 메소드

Set a meta tag by name
public static setMeta ( string $name, string $content = "" )
$name string
$content string

setTitle() 공개 정적인 메소드

Set the new title of the page
public static setTitle ( string $title = "" )
$title string

프로퍼티 상세

$jqueryTags 공개적으로 정적으로 프로퍼티

Additional javascripts
public static string $jqueryTags
리턴 string

$pageFooterTags 공개적으로 정적으로 프로퍼티

Additional contents to the footer
public static string $pageFooterTags
리턴 string

$pageHeadTags 공개적으로 정적으로 프로퍼티

Additional tags to the html head
public static string $pageHeadTags
리턴 string

$pageTitle 공개적으로 정적으로 프로퍼티

The title in the "title" tag
public static string $pageTitle
리턴 string