Updating documentation on App::objects() so it more reflects what the method does. Fixes #874

This commit is contained in:
mark_story 2010-06-30 08:45:06 -04:00
parent 8f25547fc1
commit 735ac17b85

View file

@ -758,7 +758,11 @@ class App extends Object {
}
/**
* Returns an index of objects of the given type, with the physical path to each object.
* Returns an array of objects of the given type.
*
* Example usage:
*
* `App::objects('plugin');` returns `array('DebugKit', 'Blog', 'User');`
*
* @param string $type Type of object, i.e. 'model', 'controller', 'helper', or 'plugin'
* @param mixed $path Optional Scan only the path given. If null, paths for the chosen