PHP Класс Bluz\View\View

Автор: Anton Shevchuk, ErgallM
Наследование: implements Bluz\View\ViewInterface, implements JsonSerializable, use trait Bluz\Common\Container\Container, use trait Bluz\Common\Container\JsonSerialize, use trait Bluz\Common\Container\MagicAccess, use trait Bluz\Common\Options, use trait Bluz\Common\Helper
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$baseUrl base url
$partialPath paths to partial
$path path to template
$template template name

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

Метод Описание
__construct ( ) Create view instance, initial default helper path
__sleep ( ) : string[] List of packed properties
__toString ( ) : string Render like string
addPartialPath ( string $path ) : View Add partial path for use inside partial and partialLoop helpers
setPath ( string $path ) : void
setTemplate ( string $file ) : void

Описание методов

__construct() публичный Метод

Create view instance, initial default helper path
public __construct ( )

__sleep() публичный Метод

List of packed properties
public __sleep ( ) : string[]
Результат string[]

__toString() публичный Метод

Render like string
public __toString ( ) : string
Результат string

addPartialPath() публичный Метод

Add partial path for use inside partial and partialLoop helpers
public addPartialPath ( string $path ) : View
$path string
Результат View

setPath() публичный Метод

public setPath ( string $path ) : void
$path string
Результат void

setTemplate() публичный Метод

public setTemplate ( string $file ) : void
$file string
Результат void

Описание свойств

$baseUrl защищенное свойство

base url
protected $baseUrl

$partialPath защищенное свойство

paths to partial
protected $partialPath

$path защищенное свойство

path to template
protected $path

$template защищенное свойство

template name
protected $template