PHP 클래스 Horde_View_Helper_Capture, horde

저자: Mike Naberezny ([email protected])
저자: Derek DeVries ([email protected])
저자: Chuck Hagenbuch ([email protected])
상속: extends Horde_View_Helper_Base
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
capture ( ) : Horde_View_Helper_Capture_Base Capture allows you to extract a part of the template into an instance variable.
contentFor ( string $name ) : Horde_View_Helper_Capture_ContentFor Calling contentFor() stores the block of markup for later use.

메소드 상세

capture() 공개 메소드

You can use this instance variable anywhere in your templates and even in your layout. Example: capture() ?> Welcome To my shiny new web page! greeting = $capture->end() ?>
public capture ( ) : Horde_View_Helper_Capture_Base
리턴 Horde_View_Helper_Capture_Base

contentFor() 공개 메소드

Subsequently, you can retrieve it inside an instance variable that will be named "contentForName" in another template or in the layout. Example: contentFor("header") ?> end() ?> Use $this->contentForHeader anywhere in your templates: contentForHeader ?>
public contentFor ( string $name ) : Horde_View_Helper_Capture_ContentFor
$name string Name of the content that becomes the instance variable name. "foo" -> "$this->contentForFoo"
리턴 Horde_View_Helper_Capture_ContentFor