3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
14 * @copyright CiviCRM LLC https://civicrm.org/licensing
18 * An extension container is a locally-accessible source tree which can be
19 * scanned for extensions.
21 interface CRM_Extension_Container_Interface
{
24 * Determine if any unmet requirements prevent use of this container.
26 public function checkRequirements();
29 * Get a list of extensions available in this container.
31 public function getKeys();
34 * Determine the main .php file for an extension
37 * Fully-qualified extension name.
39 public function getPath($key);
42 * Determine the base URL for resources provided by the extension.
45 * Fully-qualified extension name.
47 * @throws \CRM_Extension_Exception_MissingException
49 public function getResUrl($key);
52 * Scan the container for available extensions.
54 public function refresh();