projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #22552 from colemanw/searchKitConditionalCss
[civicrm-core.git]
/
CRM
/
Extension
/
Info.php
diff --git
a/CRM/Extension/Info.php
b/CRM/Extension/Info.php
index 55e379caf7fd7c4fec2b9b4b334e13f1c75014d8..4382427353ddda46c4cbeb5e02ad35156462f198 100644
(file)
--- a/
CRM/Extension/Info.php
+++ b/
CRM/Extension/Info.php
@@
-23,12
+23,28
@@
class CRM_Extension_Info {
const FILENAME = 'info.xml';
/**
const FILENAME = 'info.xml';
/**
- * @var string
+ * @var string
|null
*/
public $key = NULL;
*/
public $key = NULL;
+
+ /**
+ * @var string|null
+ */
public $type = NULL;
public $type = NULL;
+
+ /**
+ * @var string|null
+ */
public $name = NULL;
public $name = NULL;
+
+ /**
+ * @var string|null
+ */
public $label = NULL;
public $label = NULL;
+
+ /**
+ * @var string|null
+ */
public $file = NULL;
/**
public $file = NULL;
/**
@@
-44,6
+60,13
@@
class CRM_Extension_Info {
*/
public $requires = [];
*/
public $requires = [];
+ /**
+ * @var array
+ * List of expected mixins.
+ * Ex: ['civix@2.0.0']
+ */
+ public $mixins = [];
+
/**
* @var array
* List of strings (tag-names).
/**
* @var array
* List of strings (tag-names).
@@
-65,6
+88,13
@@
class CRM_Extension_Info {
*/
public $maintainer = NULL;
*/
public $maintainer = NULL;
+ /**
+ * @var string|null
+ * The name of a class which handles the install/upgrade lifecycle.
+ * @see \CRM_Extension_Upgrader_Interface
+ */
+ public $upgrader = NULL;
+
/**
* Load extension info an XML file.
*
/**
* Load extension info an XML file.
*
@@
-126,11
+156,11
@@
class CRM_Extension_Info {
}
/**
}
/**
- * @param null $key
- * @param null $type
- * @param null $name
- * @param null $label
- * @param null $file
+ * @param
string|
null $key
+ * @param
string|
null $type
+ * @param
string|
null $name
+ * @param
string|
null $label
+ * @param
string|
null $file
*/
public function __construct($key = NULL, $type = NULL, $name = NULL, $label = NULL, $file = NULL) {
$this->key = $key;
*/
public function __construct($key = NULL, $type = NULL, $name = NULL, $label = NULL, $file = NULL) {
$this->key = $key;
@@
-150,6
+180,7
@@
class CRM_Extension_Info {
$this->type = (string) $info->attributes()->type;
$this->file = (string) $info->file;
$this->label = (string) $info->name;
$this->type = (string) $info->attributes()->type;
$this->file = (string) $info->file;
$this->label = (string) $info->name;
+ $this->upgrader = (string) $info->upgrader;
// Convert first level variables to CRM_Core_Extension properties
// and deeper into arrays. An exception for URLS section, since
// Convert first level variables to CRM_Core_Extension properties
// and deeper into arrays. An exception for URLS section, since
@@
-189,6
+220,12
@@
class CRM_Extension_Info {
$this->tags[] = (string) $tag;
}
}
$this->tags[] = (string) $tag;
}
}
+ elseif ($attr === 'mixins') {
+ $this->mixins = [];
+ foreach ($val->mixin as $mixin) {
+ $this->mixins[] = (string) $mixin;
+ }
+ }
elseif ($attr === 'requires') {
$this->requires = $this->filterRequirements($val);
}
elseif ($attr === 'requires') {
$this->requires = $this->filterRequirements($val);
}