mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Updating doc blocks for App and Configure.
This commit is contained in:
parent
65a12ed902
commit
8110aed1b1
1 changed files with 12 additions and 7 deletions
|
@ -450,7 +450,7 @@ class Configure extends Object {
|
|||
}
|
||||
|
||||
/**
|
||||
* Class and file loader.
|
||||
* Class/file loader and path management.
|
||||
*
|
||||
* @link http://book.cakephp.org/view/499/The-App-Class
|
||||
* @since CakePHP(tm) v 1.2.0.6001
|
||||
|
@ -634,8 +634,9 @@ class App extends Object {
|
|||
/**
|
||||
* Used to read information stored path
|
||||
*
|
||||
* Usage
|
||||
* App::path('models'); will return all paths for models
|
||||
* Usage:
|
||||
*
|
||||
* `App::path('models'); will return all paths for models`
|
||||
*
|
||||
* @param string $type type of path
|
||||
* @return string array
|
||||
|
@ -731,7 +732,7 @@ class App extends Object {
|
|||
* Passing $type only returns the values for a given value of $key.
|
||||
*
|
||||
* @param string $type valid values are: 'model', 'behavior', 'controller', 'component',
|
||||
* 'view', 'helper', 'datasource', 'libs', and 'cake'
|
||||
* 'view', 'helper', 'datasource', 'libs', and 'cake'
|
||||
* @return array numeric keyed array of core lib paths
|
||||
* @access public
|
||||
*/
|
||||
|
@ -783,9 +784,11 @@ class App extends Object {
|
|||
/**
|
||||
* Returns an index of objects of the given type, with the physical path to each object.
|
||||
*
|
||||
* @param string $type Type of object, i.e. 'model', 'controller', 'helper', or 'plugin'
|
||||
* @param mixed $path Optional
|
||||
* @return Configure instance
|
||||
* @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
|
||||
* type will be used.
|
||||
* @param boolean $cache Set to false to rescan objects of the chosen type. Defaults to true.
|
||||
* @return mixed Either false on incorrect / miss. Or an array of found objects.
|
||||
* @access public
|
||||
*/
|
||||
function objects($type, $path = null, $cache = true) {
|
||||
|
@ -1072,6 +1075,7 @@ class App extends Object {
|
|||
* @param string $name unique name for this map
|
||||
* @param string $type type object being mapped
|
||||
* @param string $plugin camelized if object is from a plugin, the name of the plugin
|
||||
* @return void
|
||||
* @access private
|
||||
*/
|
||||
function __map($file, $name, $type, $plugin) {
|
||||
|
@ -1252,6 +1256,7 @@ class App extends Object {
|
|||
* @param string $path Path to scan for files
|
||||
* @param string $suffix if false, return only directories. if string, match and return files
|
||||
* @return array List of directories or files in directory
|
||||
* @access private
|
||||
*/
|
||||
function __list($path, $suffix = false, $extension = false) {
|
||||
if (!class_exists('Folder')) {
|
||||
|
|
Loading…
Reference in a new issue