PHPdoc updated

This commit is contained in:
Anton Terekhov
2012-11-10 15:55:11 +04:00
parent 07206a0365
commit 4f55333064
6 changed files with 34 additions and 10 deletions

View File

@ -56,7 +56,9 @@ abstract class Layout
abstract protected function execute();
/**
* Execute Action, insert action's result html into layout template and return Layout html
* @param Action $action
* @return string
*/
public function fetch($action)
{
@ -64,7 +66,11 @@ abstract class Layout
$this->execute();
return $this->view->fetch($this->getTemplate());
}
/**
* Return content of template
* @return string
*/
protected function getTemplate()
{
$template = ($this->template) ? $this->template : substr(get_class($this), 0, -6/*strlen('Layout')*/);