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 #22557 from colemanw/searckKitLinkConditions
[civicrm-core.git]
/
CRM
/
Extension
/
Info.php
diff --git
a/CRM/Extension/Info.php
b/CRM/Extension/Info.php
index 8b8ee51143794cc307561b1101f4036bf823c3c7..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).
@@
-133,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;
@@
-197,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);
}