Public Member Functions | |
| Registry () | |
| _set ($key, &$var) | |
| & | _get ($key) |
| set ($key, &$var) | |
| & | get ($key, $default=false) |
Public Attributes | |
| $store | |
PRONTO WEB FRAMEWORK Copyright (C) 2006, Judd Vinet
Description: A registry.
Definition at line 10 of file registry.php.
| & Registry::_get | ( | $ | key | ) |
Definition at line 27 of file registry.php.
| Registry::_set | ( | $ | key, | |
| &$ | var | |||
| ) |
Definition at line 22 of file registry.php.
| & Registry::get | ( | $ | key, | |
| $ | default = false | |||
| ) |
Fetch a variable/object.
| string | $key Key name | |
| mied | $default Value to return if the object does not exist in the registry. |
Definition at line 52 of file registry.php.
References $GLOBALS.
Referenced by __(), a(), Web::check_access(), debug(), Web::finish(), I18N::get_languages(), Web::has_access(), RecordModel_Base::import_plugin(), Page_Base::import_plugin(), l(), Page_Base::load_input(), Factory::model(), Factory::newobj(), Page::Page(), Factory::page(), Page_Base::Page_Base(), Page_Base::param(), Page_Base::param_set(), Page_Base::param_unset(), Factory::plugin(), Plugin_Base::Plugin_Base(), pronto_error(), RecordModel_Base::RecordModel_Base(), I18N::set_language(), SQL_Generator::SQL_Generator(), start_session(), url(), and Validator::validate().
| Registry::Registry | ( | ) |
Constructor
Definition at line 17 of file registry.php.
| Registry::set | ( | $ | key, | |
| &$ | var | |||
| ) |
Store a variable/object.
| string | $key Unique key name to store value under | |
| mixed | $var Variable to store |
Definition at line 40 of file registry.php.
References $GLOBALS.
Referenced by Factory::model(), Factory::newobj(), Factory::page(), Page_Base::param_set(), Page_Base::param_unset(), Factory::plugin(), Web::run(), I18N::set_language(), and start_session().
| Registry::$store |
Definition at line 12 of file registry.php.
1.6.1