PHP Класс Horde_View_Helper_Capture, horde

Автор: Mike Naberezny ([email protected])
Автор: Derek DeVries ([email protected])
Автор: Chuck Hagenbuch ([email protected])
Наследование: extends Horde_View_Helper_Base
Показать файл Открыть проект

Открытые методы

Метод Описание
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