![]() ![]() Theoretically, one extension could be registered against multiple collections, however normal usage would confine extensions to just one "type". A class name (this should be PSR-0 compatible, unless its loaded into scope some other way).The key parts of an extension declaration are: If there isn't a suitable place in your code, you can use he hook method. $extension = extensions_get_extension($collection, $extension_name) Įxtensions must always be declared using extension_register_extension(), however when this happens is up to you. Loading a single Extension // Load a single extension $extensions = extensions_load_extensions($collection_name) This will also run the extension hook loader. Load and return extensions declared inside hook_extensions_declare() as well $extensions = extensions_get_extensions_list($collection_name) Again, this will only return extensions already declared. ![]() Get only the settings for the collection, without creating objects, as an array. $extensions = extensions_get_extensions($collection_name) This will return only extensions already declared. Firstly, in accessing an Extension Collection to use the objects in it, and secondly to declare new extensions (it's not necessary to ever declare a collection, these are created dynamically).Īccessing a collection // Get a full collection containing fully loaded extensions, as an array.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |