Class Details
/**
* EE_Registry Class
* Centralized Application Data Storage and Management
*
* @package Event Espresso
* @subpackage core
* @author Brent Christensen
*/
Class [ class EE_Registry implements EventEspresso\core\interfaces\ResettableInterface ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 23-1725
- Constants [0] {
}
- Static properties [2] {
Property [ private static ?EE_Registry $_instance = NULL ]
Property [ public static array $i18n_js_strings = [] ]
}
- Static methods [7] {
/**
* @singleton method used to instantiate class object
* @param EE_Dependency_Map|null $dependency_map
* @param Mirror|null $mirror
* @param ClassInterfaceCache|null $class_cache
* @param ObjectIdentifier|null $object_identifier
* @return EE_Registry instance
*/
Method [ static public method instance ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 145 - 167
- Parameters [4] {
Parameter #0 [ ?EE_Dependency_Map $dependency_map = NULL ]
Parameter #1 [ ?EventEspresso\core\services\container\Mirror $mirror = NULL ]
Parameter #2 [ ?EventEspresso\core\services\loaders\ClassInterfaceCache $class_cache = NULL ]
Parameter #3 [ ?EventEspresso\core\services\loaders\ObjectIdentifier $object_identifier = NULL ]
}
- Return [ EE_Registry ]
}
/**
* @return array
*/
Method [ static public method sanitize_i18n_js_strings ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 261 - 273
- Parameters [0] {
}
- Return [ array ]
}
/**
* localize_i18n_js_strings
*
* @return string
*/
Method [ static public method localize_i18n_js_strings ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 281 - 285
- Parameters [0] {
}
- Return [ string ]
}
/**
* call any loader that's been registered in the EE_Dependency_Map::$_class_loaders array
*
* @param string $classname PLEASE NOTE: the class name needs to match what's registered
* in the EE_Dependency_Map::$_class_loaders array,
* including the class prefix, ie: "EE_", "EEM_", "EEH_", etc
* @param array $arguments
* @return object
*/
Method [ static public method factory ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1461 - 1471
- Parameters [2] {
Parameter #0 [ string $classname ]
Parameter #1 [ array $arguments = [] ]
}
}
/**
* Resets the registry.
* The criteria for what gets reset is based on what can be shared between sites on the same request when
* switch_to_blog is used in a multisite install. Here is a list of things that are NOT reset.
* - $_dependency_map
* - $_class_abbreviations
* - $NET_CFG (EE_Network_Config): The config is shared network wide so no need to reset.
* - $REQ: Still on the same request so no need to change.
* - $CAP: There is no site specific state in the EE_Capability class.
* - $SSN: Although ideally, the session should not be shared between site switches, we can't reset it because only
* one Session can be active in a single request. Resetting could resolve in "headers already sent" errors.
* - $addons: In multisite, the state of the addons is something controlled via hooks etc in a normal request. So
* for now, we won't reset the addons because it could break calls to an add-ons class/methods in the
* switch or on the restore.
* - $modules
* - $shortcodes
* - $widgets
*
* @param boolean $hard [deprecated]
* @param boolean $reinstantiate whether to create new instances of EE_Registry's singletons too,
* or just reset without re-instantiating (handy to set to FALSE if you're not
* sure if you CAN currently reinstantiate the singletons at the moment)
* @param bool $reset_models Defaults to true. When false, then the models are not reset. This is so
* client
* code instead can just change the model context to a different blog id if
* necessary
* @return EE_Registry
* @throws EE_Error
* @throws ReflectionException
*/
Method [ static public method reset ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1610 - 1631
- Parameters [3] {
Parameter #0 [ bool $hard = false ]
Parameter #1 [ bool $reinstantiate = true ]
Parameter #2 [ bool $reset_models = true ]
}
- Return [ EE_Registry ]
}
/**
* if passed object implements ResettableInterface, then call it's reset() method
* if passed object implements InterminableInterface, then return false,
* to indicate that it should NOT be cleared from the Registry cache
*
* @param $object
* @param bool $reset_models
* @return bool returns true if cached object should be unset
* @throws EE_Error
* @throws ReflectionException
*/
Method [ static private method _reset_and_unset_object ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1645 - 1671
- Parameters [2] {
Parameter #0 [ $object ]
Parameter #1 [ bool $reset_models ]
}
- Return [ bool ]
}
/**
* @return EE_Config
*/
Method [ static public method CFG ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1694 - 1697
- Parameters [0] {
}
- Return [ EE_Config ]
}
}
- Properties [23] {
Property [ protected EE_Dependency_Map $_dependency_map ]
Property [ private EventEspresso\core\services\container\Mirror $mirror ]
Property [ private EventEspresso\core\services\loaders\ClassInterfaceCache $class_cache ]
Property [ private EventEspresso\core\services\loaders\ObjectIdentifier $object_identifier ]
Property [ protected array $_class_abbreviations = [] ]
Property [ public ?EventEspresso\core\services\commands\CommandBusInterface $BUS = NULL ]
Property [ public ?EE_Cart $CART = NULL ]
Property [ public ?EE_Config $CFG = NULL ]
Property [ public ?EE_Network_Config $NET_CFG = NULL ]
Property [ public ?EventEspresso\core\services\container\RegistryContainer $LIB = NULL ]
Property [ public ?EE_Request_Handler $REQ = NULL ]
Property [ public ?EE_Session $SSN = NULL ]
Property [ public ?EE_Capabilities $CAP = NULL ]
Property [ public ?EE_Message_Resource_Manager $MRM = NULL ]
Property [ public ?EventEspresso\core\services\assets\Registry $AssetsRegistry = NULL ]
Property [ public $addons = [] ]
Property [ public array $models = [] ]
Property [ public $modules = [] ]
Property [ public $shortcodes = [] ]
Property [ public $widgets = [] ]
Property [ public array $non_abstract_db_models = [] ]
Property [ public string $main_file = '' ]
Property [ protected bool $_cache_on = true ]
}
- Methods [38] {
/**
* protected constructor to prevent direct creation
*
* @Constructor
* @param EE_Dependency_Map $dependency_map
* @param Mirror $mirror
* @param ClassInterfaceCache $class_cache
* @param ObjectIdentifier $object_identifier
*/
Method [ protected method __construct ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 179 - 196
- Parameters [4] {
Parameter #0 [ EE_Dependency_Map $dependency_map ]
Parameter #1 [ EventEspresso\core\services\container\Mirror $mirror ]
Parameter #2 [ EventEspresso\core\services\loaders\ClassInterfaceCache $class_cache ]
Parameter #3 [ EventEspresso\core\services\loaders\ObjectIdentifier $object_identifier ]
}
}
/**
* initialize
*
* @throws OutOfBoundsException
* @throws InvalidArgumentException
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
* @throws EE_Error
* @throws ReflectionException
*/
Method [ public method initialize ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 209 - 242
}
/**
* @return void
*/
Method [ public method init ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 248 - 255
}
/**
* @param mixed string | EED_Module $module
* @throws OutOfBoundsException
* @throws InvalidArgumentException
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
* @throws EE_Error
* @throws ReflectionException
*/
Method [ public method add_module ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 297 - 308
- Parameters [1] {
Parameter #0 [ $module ]
}
}
/**
* @param string $module_name
* @return mixed EED_Module | NULL
*/
Method [ public method get_module ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 315 - 318
- Parameters [1] {
Parameter #0 [ string $module_name = '' ]
}
}
/**
* loads core classes - must be singletons
*
* @param string $class_name - simple class name ie: session
* @param mixed $arguments
* @param bool $load_only
* @return bool|null|object
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
* @throws EE_Error
* @throws ReflectionException
* @throws InvalidArgumentException
*/
Method [ public method load_core ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 334 - 359
- Parameters [3] {
Parameter #0 [ string $class_name ]
Parameter #1 [ $arguments = [] ]
Parameter #2 [ bool $load_only = false ]
}
}
/**
* loads service classes
*
* @param string $class_name - simple class name ie: session
* @param mixed $arguments
* @param bool $load_only
* @return bool|null|object
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
* @throws EE_Error
* @throws ReflectionException
* @throws InvalidArgumentException
* @deprecated 4.10.33.p
*/
Method [ public method load_service ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 376 - 395
- Parameters [3] {
Parameter #0 [ string $class_name ]
Parameter #1 [ $arguments = [] ]
Parameter #2 [ bool $load_only = false ]
}
}
/**
* loads data_migration_scripts
*
* @param string $class_name - class name for the DMS ie: EE_DMS_Core_4_2_0
* @param mixed $arguments
* @return bool|null|object
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
* @throws EE_Error
* @throws ReflectionException
* @throws InvalidArgumentException
*/
Method [ public method load_dms ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 410 - 422
- Parameters [2] {
Parameter #0 [ string $class_name ]
Parameter #1 [ $arguments = [] ]
}
}
/**
* loads object creating classes - must be singletons
*
* @param string $class_name - simple class name ie: attendee
* @param mixed $arguments - an array of arguments to pass to the class
* @param bool $from_db - some classes are instantiated from the db and thus call a different method to
* instantiate
* @param bool $cache if you don't want the class to be stored in the internal cache (non-persistent) then
* set this to FALSE (ie. when instantiating model objects from client in a loop)
* @param bool $load_only whether or not to just load the file and NOT instantiate, or load AND instantiate
* (default)
* @return EE_Base_Class|object|bool|null
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
* @throws EE_Error
* @throws ReflectionException
* @throws InvalidArgumentException
*/
Method [ public method load_class ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 443 - 469
- Parameters [5] {
Parameter #0 [ string $class_name ]
Parameter #1 [ $arguments = [] ]
Parameter #2 [ bool $from_db = false ]
Parameter #3 [ bool $cache = true ]
Parameter #4 [ bool $load_only = false ]
}
}
/**
* loads helper classes - must be singletons
*
* @param string $class_name - simple class name ie: price
* @param mixed $arguments
* @param bool $load_only
* @return bool|null|object
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
* @throws EE_Error
* @throws ReflectionException
* @throws InvalidArgumentException
*/
Method [ public method load_helper ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 485 - 500
- Parameters [3] {
Parameter #0 [ string $class_name ]
Parameter #1 [ $arguments = [] ]
Parameter #2 [ bool $load_only = true ]
}
}
/**
* loads core classes - must be singletons
*
* @param string $class_name - simple class name ie: session
* @param mixed $arguments
* @param bool $load_only
* @param bool $cache whether to cache the object or not.
* @return bool|null|object
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
* @throws EE_Error
* @throws ReflectionException
* @throws InvalidArgumentException
*/
Method [ public method load_lib ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 517 - 537
- Parameters [4] {
Parameter #0 [ string $class_name ]
Parameter #1 [ $arguments = [] ]
Parameter #2 [ bool $load_only = false ]
Parameter #3 [ bool $cache = true ]
}
}
/**
* loads model classes - must be singletons
*
* @param string $class_name - simple class name ie: price
* @param mixed $arguments
* @param bool $load_only
* @return EEM_Base|null
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
* @throws EE_Error
* @throws ReflectionException
* @throws InvalidArgumentException
*/
Method [ public method load_model ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 553 - 573
- Parameters [3] {
Parameter #0 [ string $class_name ]
Parameter #1 [ $arguments = [] ]
Parameter #2 [ bool $load_only = false ]
}
- Return [ ?EEM_Base ]
}
/**
* loads model classes - must be singletons
*
* @param string $class_name - simple class name ie: price
* @param mixed $arguments
* @param bool $load_only
* @return bool|null|object
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
* @throws EE_Error
* @throws ReflectionException
* @throws InvalidArgumentException
* @deprecated 4.10.33.p
*/
Method [ public method load_model_class ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 590 - 609
- Parameters [3] {
Parameter #0 [ string $class_name ]
Parameter #1 [ $arguments = [] ]
Parameter #2 [ bool $load_only = true ]
}
}
/**
* Determines if $model_name is the name of an actual EE model.
*
* @param string $model_name like Event, Attendee, Question_Group_Question, etc.
* @return boolean
*/
Method [ public method is_model_name ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 618 - 621
- Parameters [1] {
Parameter #0 [ string $model_name ]
}
- Return [ bool ]
}
/**
* generic class loader
*
* @param string $path_to_file - directory path to file location, not including filename
* @param string $file_name - file name ie: my_file.php, including extension
* @param string $type - file type - core? class? helper? model?
* @param mixed $arguments
* @param bool $load_only
* @return bool|null|object
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
* @throws EE_Error
* @throws ReflectionException
* @throws InvalidArgumentException
*/
Method [ public method load_file ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 639 - 657
- Parameters [5] {
Parameter #0 [ string $path_to_file ]
Parameter #1 [ string $file_name ]
Parameter #2 [ string $type = '' ]
Parameter #3 [ $arguments = [] ]
Parameter #4 [ bool $load_only = true ]
}
}
/**
* @param string $path_to_file - directory path to file location, not including filename
* @param string $class_name - full class name ie: My_Class
* @param string $type - file type - core? class? helper? model?
* @param mixed $arguments
* @param bool $load_only
* @return bool|null|object
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
* @throws EE_Error
* @throws ReflectionException
* @throws InvalidArgumentException
* @deprecated 4.10.33.p
*/
Method [ public method load_addon ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 674 - 692
- Parameters [5] {
Parameter #0 [ string $path_to_file ]
Parameter #1 [ string $class_name ]
Parameter #2 [ string $type = 'class' ]
Parameter #3 [ $arguments = [] ]
Parameter #4 [ bool $load_only = false ]
}
}
/**
* instantiates, caches, and automatically resolves dependencies
* for classes that use a Fully Qualified Class Name.
* if the class is not capable of being loaded using PSR-4 autoloading,
* then you need to use one of the existing load_*() methods
* which can resolve the classname and filepath from the passed arguments
*
* @param string $class_name Fully Qualified Class Name
* @param array $arguments an argument, or array of arguments to pass to the class upon instantiation
* @param bool $cache whether to cache the instantiated object for reuse
* @param bool $from_db some classes are instantiated from the db
* and thus call a different method to instantiate
* @param bool $load_only if true, will only load the file, but will NOT instantiate an object
* @param bool|string $addon if true, will cache the object in the EE_Registry->$addons array
* @return bool|null|mixed null = failure to load or instantiate class object.
* object = class loaded and instantiated successfully.
* bool = fail or success when $load_only is true
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
* @throws EE_Error
* @throws ReflectionException
* @throws InvalidArgumentException
*/
Method [ public method create ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 718 - 774
- Parameters [6] {
Parameter #0 [ string $class_name = '' ]
Parameter #1 [ array $arguments = [] ]
Parameter #2 [ bool $cache = false ]
Parameter #3 [ bool $from_db = false ]
Parameter #4 [ bool $load_only = false ]
Parameter #5 [ bool $addon = false ]
}
}
/**
* Recursively checks that a class exists and potentially attempts to load classes with non-FQCNs
*
* @param string|mixed $class_name
* @param array $arguments
* @param int $attempt
* @return mixed
*/
Method [ private method loadOrVerifyClassExists ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 785 - 810
- Parameters [3] {
Parameter #0 [ $class_name ]
Parameter #1 [ array $arguments ]
Parameter #2 [ int $attempt = 1 ]
}
}
/**
* instantiates, caches, and injects dependencies for classes
*
* @param array $file_paths an array of paths to folders to look in
* @param string $class_prefix EE or EEM or... ???
* @param string $class_name $class name
* @param string $type file type - core? class? helper? model?
* @param mixed $arguments an argument or array of arguments to pass to the class upon instantiation
* @param bool $from_db some classes are instantiated from the db
* and thus call a different method to instantiate
* @param bool $cache whether to cache the instantiated object for reuse
* @param bool $load_only if true, will only load the file, but will NOT instantiate an object
* @return bool|null|object null = failure to load or instantiate class object.
* object = class loaded and instantiated successfully.
* bool = fail or success when $load_only is true
* @throws EE_Error
* @throws ReflectionException
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
* @throws InvalidArgumentException
*/
Method [ protected method _load ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 834 - 901
- Parameters [8] {
Parameter #0 [ array $file_paths = [] ]
Parameter #1 [ string $class_prefix = 'EE_' ]
Parameter #2 [ string $class_name = '' ]
Parameter #3 [ string $type = 'class' ]
Parameter #4 [ array $arguments = [] ]
Parameter #5 [ bool $from_db = false ]
Parameter #6 [ bool $cache = true ]
Parameter #7 [ bool $load_only = false ]
}
}
/**
* @param string $class_name
* @param string $default have to specify something, but not anything that will conflict
* @return mixed|string
*/
Method [ protected method get_class_abbreviation ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 909 - 912
- Parameters [2] {
Parameter #0 [ string $class_name ]
Parameter #1 [ string $default = 'FANCY_BATMAN_PANTS' ]
}
}
/**
* attempts to find a cached version of the requested class
* by looking in the following places:
* $this->{$class_abbreviation} ie: $this->CART
* $this->{$class_name} ie: $this->Some_Class
* $this->LIB->{$class_name} ie: $this->LIB->Some_Class
* $this->addon->{$class_name} ie: $this->addon->Some_Addon_Class
*
* @param string $class_name
* @param string $class_prefix
* @param array $arguments
* @return mixed
*/
Method [ protected method _get_cached_class ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 928 - 963
- Parameters [3] {
Parameter #0 [ string $class_name ]
Parameter #1 [ string $class_prefix = '' ]
Parameter #2 [ array $arguments = [] ]
}
}
/**
* removes a cached version of the requested class
*
* @param string $class_name
* @param boolean $addon
* @param array $arguments
* @return boolean
*/
Method [ public method clear_cached_class ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 974 - 1000
- Parameters [3] {
Parameter #0 [ string $class_name ]
Parameter #1 [ bool $addon = false ]
Parameter #2 [ array $arguments = [] ]
}
- Return [ bool ]
}
/**
* _set_cached_class
* attempts to cache the instantiated class locally
* in one of the following places, in the following order:
* $this->{class_abbreviation} ie: $this->CART
* $this->{$class_name} ie: $this->Some_Class
* $this->addon->{$$class_name} ie: $this->addon->Some_Addon_Class
* $this->LIB->{$class_name} ie: $this->LIB->Some_Class
*
* @param object $class_obj
* @param string $class_name
* @param string $class_prefix
* @param bool $from_db
* @param array $arguments
* @return void
*/
Method [ protected method _set_cached_class ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1019 - 1048
- Parameters [5] {
Parameter #0 [ $class_obj ]
Parameter #1 [ string $class_name ]
Parameter #2 [ string $class_prefix = '' ]
Parameter #3 [ bool $from_db = false ]
Parameter #4 [ array $arguments = [] ]
}
}
/**
* attempts to find a full valid filepath for the requested class.
* loops thru each of the base paths in the $file_paths array and appends : "{classname} . {file type} . php"
* then returns that path if the target file has been found and is readable
*
* @param string $class_name
* @param string $type
* @param array $file_paths
* @return string | bool
*/
Method [ protected method _resolve_path ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1061 - 1085
- Parameters [3] {
Parameter #0 [ string $class_name ]
Parameter #1 [ string $type = '' ]
Parameter #2 [ array $file_paths = [] ]
}
}
/**
* basically just performs a require_once()
* but with some error handling
*
* @param string $path
* @param string $class_name
* @param string $type
* @param array $file_paths
* @return bool
* @throws EE_Error
* @throws ReflectionException
*/
Method [ protected method _require_file ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1100 - 1150
- Parameters [4] {
Parameter #0 [ string $path ]
Parameter #1 [ string $class_name ]
Parameter #2 [ string $type = '' ]
Parameter #3 [ array $file_paths = [] ]
}
- Return [ bool ]
}
/**
* Some of our legacy classes that extended a parent class would simply use a require() statement
* before their class declaration in order to ensure that the parent class was loaded.
* This is not ideal, but it's nearly impossible to determine the parent class of a non-namespaced class,
* without triggering a fatal error because the parent class has yet to be loaded and therefore doesn't exist.
*
* @param string $class_name
*/
Method [ protected method resolve_legacy_class_parent ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1161 - 1172
- Parameters [1] {
Parameter #0 [ string $class_name = '' ]
}
}
/**
* _create_object
* Attempts to instantiate the requested class via any of the
* commonly used instantiation methods employed throughout EE.
* The priority for instantiation is as follows:
* - abstract classes or any class flagged as "load only" (no instantiation occurs)
* - model objects via their 'new_instance_from_db' method
* - model objects via their 'new_instance' method
* - "singleton" classes" via their 'instance' method
* - standard instantiable classes via their __constructor
* Prior to instantiation, if the classname exists in the dependency_map,
* then the constructor for the requested class will be examined to determine
* if any dependencies exist, and if they can be injected.
* If so, then those classes will be added to the array of arguments passed to the constructor
*
* @param string $class_name
* @param array $arguments
* @param string $type
* @param bool $from_db
* @return null|object|bool
* @throws InvalidArgumentException
* @throws InvalidInterfaceException
* @throws EE_Error
* @throws ReflectionException
* @throws InvalidDataTypeException
*/
Method [ protected method _create_object ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1201 - 1277
- Parameters [4] {
Parameter #0 [ string $class_name ]
Parameter #1 [ array $arguments = [] ]
Parameter #2 [ string $type = '' ]
Parameter #3 [ bool $from_db = false ]
}
}
/**
* @see http://stackoverflow.com/questions/173400/how-to-check-if-php-array-is-associative-or-sequential
* @param array $array
* @return bool
*/
Method [ protected method _array_is_numerically_and_sequentially_indexed ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1285 - 1288
- Parameters [1] {
Parameter #0 [ array $array ]
}
- Return [ bool ]
}
/**
* _resolve_dependencies
* examines the constructor for the requested class to determine
* if any dependencies exist, and if they can be injected.
* If so, then those classes will be added to the array of arguments passed to the constructor
* PLZ NOTE: this is achieved by type hinting the constructor params
* For example:
* if attempting to load a class "Foo" with the following constructor:
* __construct( Bar $bar_class, Fighter $grohl_class )
* then $bar_class and $grohl_class will be added to the $arguments array,
* but only IF they are NOT already present in the incoming arguments array,
* and the correct classes can be loaded
*
* @param ReflectionClass $reflector
* @param string $class_name
* @param array $arguments
* @return array
* @throws InvalidArgumentException
* @throws InvalidDataTypeException
* @throws InvalidInterfaceException
* @throws ReflectionException
*/
Method [ protected method _resolve_dependencies ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1313 - 1392
- Parameters [3] {
Parameter #0 [ ReflectionClass $reflector ]
Parameter #1 [ string $class_name ]
Parameter #2 [ array $arguments = [] ]
}
- Return [ array ]
}
/**
* @param string $class_name
* @param string $param_class
* @param array $arguments
* @param mixed $index
* @return array
* @throws InvalidArgumentException
* @throws InvalidInterfaceException
* @throws InvalidDataTypeException
*/
Method [ protected method _resolve_dependency ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1405 - 1449
- Parameters [4] {
Parameter #0 [ string $class_name ]
Parameter #1 [ string $param_class ]
Parameter #2 [ array $arguments ]
Parameter #3 [ $index ]
}
- Return [ array ]
}
/**
* Gets the addon by its class name
*
* @param string $class_name
* @return EE_Addon
*/
Method [ public method getAddon ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1480 - 1484
- Parameters [1] {
Parameter #0 [ string $class_name ]
}
- Return [ ?EE_Addon ]
}
/**
* removes the addon from the internal cache
*
* @param string $class_name
* @return void
*/
Method [ public method removeAddon ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1493 - 1497
- Parameters [1] {
Parameter #0 [ string $class_name ]
}
}
/**
* Gets the addon by its name/slug (not classname. For that, just
* use the get_addon() method above
*
* @param string $name
* @return EE_Addon
*/
Method [ public method get_addon_by_name ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1507 - 1515
- Parameters [1] {
Parameter #0 [ string $name ]
}
- Return [ ?EE_Addon ]
}
/**
* Gets an array of all the registered addons, where the keys are their names.
* (ie, what each returns for their name() function)
* They're already available on EE_Registry::instance()->addons as properties,
* where each property's name is the addon's classname,
* So if you just want to get the addon by classname,
* OR use the get_addon() method above.
* PLEASE NOTE:
* addons with Fully Qualified Class Names
* have had the namespace separators converted to underscores,
* so a classname like Fully\Qualified\ClassName
* would have been converted to Fully_Qualified_ClassName
*
* @return EE_Addon[] where the KEYS are the addon's name()
*/
Method [ public method get_addons_by_name ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1533 - 1540
- Parameters [0] {
}
- Return [ array ]
}
/**
* Resets the specified model's instance AND makes sure EE_Registry doesn't keep
* a stale copy of it around
*
* @param string $model_name
* @return EEM_Base
* @throws EE_Error
* @throws ReflectionException
*/
Method [ public method reset_model ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1552 - 1577
- Parameters [1] {
Parameter #0 [ string $model_name ]
}
- Return [ ?EEM_Base ]
}
/**
* Gets all the custom post type models defined
*
* @return array keys are model "short names" (Eg "Event") and keys are classnames (eg "EEM_Event")
*/
Method [ public method cpt_models ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1679 - 1688
- Parameters [0] {
}
- Return [ array ]
}
/**
* @param string $class_name
* @return ReflectionClass
* @throws ReflectionException
* @throws InvalidDataTypeException
* @deprecated 4.9.62.p
*/
Method [ public method get_ReflectionClass ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1707 - 1710
- Parameters [1] {
Parameter #0 [ string $class_name ]
}
- Return [ ReflectionClass ]
}
Method [ private method parameterIsPrimitive ] {
@@ /nas/content/live/ams4cme/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php 1712 - 1724
- Parameters [1] {
Parameter #0 [ ?string $param_class ]
}
- Return [ bool ]
}
}
}