[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
Part of the Joomla Framework DI Package
Copyright: | Copyright (C) 2013 - 2018 Open Source Matters, Inc. All rights reserved. |
License: | GNU General Public License version 2 or later; see LICENSE |
File Size: | 218 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
__construct(Container $container, $value, int $mode = 0) X-Ref |
Create a resource representation param: Container $container The container param: mixed $value The resource or its factory closure param: integer $mode Resource mode, defaults to Resource::NO_SHARE | Resource::NO_PROTECT |
isShared() X-Ref |
Check whether the resource is shared return: boolean |
isProtected() X-Ref |
Check whether the resource is protected return: boolean |
getInstance() X-Ref |
Get an instance of the resource If a factory was provided, the resource is created and - if it is a shared resource - cached internally. If the resource was provided directly, that resource is returned. return: mixed |
getFactory() X-Ref |
Get the factory return: callable |
reset() X-Ref |
Reset the resource The instance cache is cleared, so that the next call to get() returns a new instance. This has an effect on shared, non-protected resources only. return: boolean True if the resource was reset, false otherwise |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |