Rearranged view methods.

This commit is contained in:
Taylor Otwell 2011-08-05 11:12:15 -05:00
parent c688eef3f2
commit fa1fa876b5
1 changed files with 11 additions and 11 deletions

View File

@ -204,17 +204,6 @@ private static function load_composers($module)
static::$composers[$module] = (file_exists($composers)) ? require $composers : array();
}
/**
* Magic Method for handling the dynamic creation of named views.
*/
public static function __callStatic($method, $parameters)
{
if (strpos($method, 'of_') === 0)
{
return static::of(substr($method, 3), $parameters);
}
}
/**
* Get the parsed content of the view.
*
@ -265,6 +254,17 @@ public function bind($key, $value)
return $this;
}
/**
* Magic Method for handling the dynamic creation of named views.
*/
public static function __callStatic($method, $parameters)
{
if (strpos($method, 'of_') === 0)
{
return static::of(substr($method, 3), $parameters);
}
}
/**
* Magic Method for getting items from the view data.
*/