Skip to content
Permalink
Browse files

Improve documentation for ViewBuilder.

Refs #7468
  • Loading branch information...
markstory committed Sep 29, 2015
1 parent 424c173 commit c9642e6251b6a29dcae73117a4655a75a63f1f96
Showing with 13 additions and 3 deletions.
  1. +13 −3 src/View/ViewBuilder.php
@@ -88,14 +88,19 @@ class ViewBuilder implements JsonSerializable, Serializable
protected $_name;
/**
* The view variables to use
* The view class name to use.
* Can either use plugin notation, a short name
* or a fully namespaced classname.
*
* @var string
*/
protected $_className;
/**
* The view variables to use
* Additional options used when constructing the view.
*
* This options array lets you provide custom constructor
* arguments to application/plugin view classes.
*
* @var array
*/
@@ -249,6 +254,8 @@ public function layout($name = null)
/**
* Set additional options for the view.
*
* This lets you provide custom constructor arguments to application/plugin view classes.
*
* @param array|null $options Either an array of options or null to get current options.
* @param bool $merge Whether or not to merge existing data with the new data.
* @return array|$this
@@ -281,7 +288,10 @@ public function name($name = null)
}
/**
* Get/set the view classname
* Get/set the view classname.
*
* Accepts either a short name (Ajax) a plugin name (MyPlugin.Ajax)
* or a fully namespaced name (App\View\AppView).
*
* @param string|null $name The class name for the view. Can
* be a plugin.class name reference, a short alias, or a fully

0 comments on commit c9642e6

Please sign in to comment.
You can’t perform that action at this time.