-
Notifications
You must be signed in to change notification settings - Fork 35
icms_ipf_registry_Handler
Raimondas Rimkevičius edited this page Mar 9, 2020
·
1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!
Registry of icms_ipf_Object
Class responsible of caching objects to make them easily reusable without querying the database
- Class name: icms_ipf_registry_Handler
- Namespace:
private \unknown_type $_registryArray
- Visibility: private
object icms_ipf_registry_Handler::getInstance()
Access the only instance of this class
- Visibility: public
- This method is static.
bool icms_ipf_registry_Handler::addObjectsFromHandler(\icms_ipf_Handler handler, \icms_db_criteria_Compo criteria)
Adding objects to the registry
- Visibility: public
- handler icms_ipf_Handler - <p>of the objects to add</p>
- criteria icms_db_criteria_Compo - <p>to pass to the getObjects method of the handler (with id_as_key)</p>
bool icms_ipf_registry_Handler::addListFromHandler(\icms_ipf_Handler handler, \icms_db_criteria_Compo criteria)
Adding objects as list to the registry
- Visibility: public
- handler icms_ipf_Handler - <p>of the objects to add</p>
- criteria icms_db_criteria_Compo - <p>to pass to the getObjects method of the handler (with id_as_key)</p>
bool icms_ipf_registry_Handler::addObjectsFromItemName(string item, string modulename, \icms_db_criteria_Compo criteria)
Adding objects to the registry from an item name This method will fetch the handler of the item / module and call the addObjectsFromHandler
- Visibility: public
- item string - <p>name of the item</p>
- modulename string - <p>name of the module</p>
- criteria icms_db_criteria_Compo - <p>to pass to the getObjects method of the handler (with id_as_key)</p>
bool icms_ipf_registry_Handler::addListFromItemName(string item, string modulename, \icms_db_criteria_Compo criteria)
Adding objects as a list to the registry from an item name This method will fetch the handler of the item / module and call the addListFromHandler
- Visibility: public
- item string - <p>name of the item</p>
- modulename string - <p>name of the module</p>
- criteria icms_db_criteria_Compo - <p>to pass to the getObjects method of the handler (with id_as_key)</p>
\the icms_ipf_registry_Handler::getObjects(string itemname, string modulename)
Fetching objects from the registry
- Visibility: public
- itemname string
- modulename string
\the icms_ipf_registry_Handler::getList(string itemname, string modulename)
Fetching objects from the registry, as a list : objectid => identifier
- Visibility: public
- itemname string
- modulename string
\the icms_ipf_registry_Handler::getSingleObject(string itemname, string key, mixed modulename)
Retreive a single object
- Visibility: public
- itemname string
- key string
- modulename mixed