Inheritance diagram for App:

Public Member Functions | |
| __destruct () | |
| __find ($file, $recursive=true) | |
| __load ($file) | |
| __map ($file, $name, $type, $plugin) | |
| __mapped ($name, $type, $plugin) | |
| __overload ($type, $name) | |
| __paths ($type) | |
| __remove ($name, $type, $plugin) | |
| __settings ($type, $plugin, $parent) | |
| & | getInstance () |
| import ($type=null, $name=null, $parent=true, $search=array(), $file=null, $return=false) | |
Public Attributes | |
| $__cache = false | |
| $__loaded = array() | |
| $__map = array() | |
| $__paths = array() | |
| $return = false | |
| $search = array() | |
Definition at line 720 of file configure.php.
| App::__destruct | ( | ) |
Object destructor.
Writes cache file if changes have been made to the $__map or $__paths
Definition at line 1185 of file configure.php.
References __map(), __paths(), Configure::corePaths(), and Cache::write().
| App::__find | ( | $ | file, | |
| $ | recursive = true | |||
| ) |
Locates the $file in $__paths, searches recursively.
| string | $file full file name | |
| boolean | $recursive search $__paths recursively |
Definition at line 919 of file configure.php.
References $path, __load(), __paths(), Folder(), and Cache::read().
| App::__load | ( | $ | file | ) |
Attempts to load $file.
| string | $file full path to file including file name |
Definition at line 966 of file configure.php.
| App::__map | ( | $ | file, | |
| $ | name, | |||
| $ | type, | |||
| $ | plugin | |||
| ) |
Maps the $name to the $file.
| string | $file full path to file | |
| string | $name unique name for this map | |
| string | $type type object being mapped | |
| string | $plugin if object is from a plugin, the name of the plugin private |
Definition at line 991 of file configure.php.
References camelize().
Referenced by __destruct(), __mapped(), and __remove().
| App::__mapped | ( | $ | name, | |
| $ | type, | |||
| $ | plugin | |||
| ) |
Returns a file's complete path.
| string | $name unique name | |
| string | $type type object | |
| string | $plugin if object is from a plugin, the name of the plugin |
Definition at line 1008 of file configure.php.
References __map(), and camelize().
Referenced by import().
| App::__overload | ( | $ | type, | |
| $ | name | |||
| ) |
Used to overload objects as needed.
Definition at line 1030 of file configure.php.
References Overloadable::overload().
| App::__paths | ( | $ | type | ) |
Returns default search paths.
| string | $type type of object to be searched |
Definition at line 1127 of file configure.php.
References $path, Configure::corePaths(), and Configure::read().
Referenced by __destruct(), and __find().
| App::__remove | ( | $ | name, | |
| $ | type, | |||
| $ | plugin | |||
| ) |
Removes file location from map if the file has been deleted.
| string | $name name of object | |
| string | $type type of object | |
| string | $plugin name of plugin |
Definition at line 1169 of file configure.php.
References __map(), and camelize().
| App::__settings | ( | $ | type, | |
| $ | plugin, | |||
| $ | parent | |||
| ) |
Loads parent classes based on $type. Returns a prefix or suffix needed for loading files.
| string | $type type of object | |
| string | $plugin name of plugin | |
| boolean | $parent false will not attempt to load parent |
Definition at line 1045 of file configure.php.
References $path, camelize(), Configure::corePaths(), import(), Configure::read(), and underscore().
| & App::getInstance | ( | ) |
Returns a single instance of App.
Definition at line 903 of file configure.php.
References Cache::read().
Referenced by import().
| App::import | ( | $ | type = null, |
|
| $ | name = null, |
|||
| $ | parent = true, |
|||
| $ | search = array(), |
|||
| $ | file = null, |
|||
| $ | return = false | |||
| ) |
Finds classes based on $name or specific file(s) to search.
Definition at line 781 of file configure.php.
References $return, $search, __load(), __mapped(), camelize(), getInstance(), and underscore().
Referenced by __(), __c(), __construct(), AclComponent::__construct(), ErrorHandler::__construct(), __d(), __dc(), __dcn(), __dn(), TestSuiteShell::__installSimpleTest(), ModelTask::__interactive(), Dispatcher::__loadController(), ViewTask::__loadController(), __n(), Object::__openPersistent(), EmailComponent::__renderTemplate(), __settings(), EmailComponent::__smtp(), CacheHelper::__writeFile(), Shell::_checkUnitTest(), TranslateBehavior::_getLocale(), Dispatcher::_invoke(), Component::_loadComponents(), View::_loadHelpers(), Shell::_loadModels(), BakeShell::all(), BehaviorCollection::attach(), ControllerTask::bakeActions(), Dispatcher::cached(), Object::cakeError(), Set::classicExtract(), ModelTask::doAssociations(), JavascriptHelper::escapeString(), ModelTask::fixture(), Security::generateAuthKey(), ClassRegistry::init(), AuthComponent::initialize(), ConsoleShell::initialize(), Xml::load(), make_clean_css(), CakeSchema::read(), and Controller::render().
| App::$__cache = false |
Definition at line 741 of file configure.php.
| App::$__loaded = array() |
Definition at line 762 of file configure.php.
| App::$__map = array() |
Definition at line 748 of file configure.php.
| App::$__paths = array() |
Definition at line 755 of file configure.php.
| App::$search = array() |
1.4.7