PHPDoc fixes

This commit is contained in:
Phill Sparks
2012-02-04 21:30:52 +00:00
parent f3be544b1a
commit 62072e5281
36 changed files with 74 additions and 56 deletions

View File

@@ -68,17 +68,28 @@ foreach ($paths as $name => $path)
$GLOBALS['laravel_paths'][$name] = realpath($path).DS;
}
// --------------------------------------------------------------
// Define a global path helper function.
// --------------------------------------------------------------
/**
* A global path helper function.
*
* <code>
* $storage = path('storage');
* </code>
*
* @param string $path
* @return string
*/
function path($path)
{
return $GLOBALS['laravel_paths'][$path];
}
// --------------------------------------------------------------
// Define a global path setter function.
// --------------------------------------------------------------
/**
* A global path setter function.
*
* @param string $path
* @param string $value
* @return void
*/
function set_path($path, $value)
{
$GLOBALS['laravel_paths'][$path] = $value;