for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Andrew Coulton <[email protected]>
* @copyright 2015 inGenerator Ltd
* @license http://kohanaframework.org/license
*/
namespace Ingenerator\KohanaView\ViewModel\PageLayout;
use Ingenerator\KohanaView\ViewModel;
use Ingenerator\KohanaView\ViewModel\AbstractViewModel;
* Provides a base class for all views that are intended to provide a complete HTML template that will
* contain some body html content - eg for the global site layout etc.
*
* It is commonly used together with a PageContentView but note you can always still create an instance
* of this page layout and display any html string directly for simpler cases.
* @property-read string $body_html The content to display in the body HTML area
* @property-read string $title The page title
* @package Ingenerator\KohanaView\ViewModel\PageLayoutView
abstract class AbstractPageLayoutView extends AbstractViewModel implements ViewModel\PageLayoutView
{
* @var array
protected $variables = [
'body_html' => NULL,
'title' => NULL,
];
* @param string $title
* @return void
public function setTitle($title)
$this->variables['title'] = $title;
}
* @param string $html
public function setBodyHTML($html)
$this->variables['body_html'] = $html;