continued refactoring of view classes.

This commit is contained in:
Taylor Otwell
2011-08-29 19:27:02 -05:00
parent 15cde60794
commit 8229891d26
5 changed files with 43 additions and 11 deletions

View File

@@ -8,6 +8,13 @@
*/
class View_Composer {
/**
* The view composers.
*
* @var array
*/
protected $composers;
/**
* Create a new view composer instance.
*
@@ -59,6 +66,20 @@ class View_Composer {
*/
class View_Factory {
/**
* The directory containing the views.
*
* @var string
*/
protected $path;
/**
* The view composer instance.
*
* @var View_Composer
*/
protected $composer;
/**
* Create a new view factory instance.
*
@@ -114,14 +135,6 @@ class View_Factory {
/**
* Magic Method for handling the dynamic creation of named views.
*
* <code>
* // Create an instance of the "login" named view
* $view = View::of_login();
*
* // Create an instance of the "login" named view and bind data to the view
* $view = View::of_login(array('name' => 'Fred'));
* </code>
*/
public function __call($method, $parameters)
{