/**
* Load extension info an XML file
*
- * @param string $string XML content
+ * @param $file
+ *
+ * @throws CRM_Extension_Exception_ParseException
+ * @internal param string $string XML content
* @return CRM_Extension_Info
- * @throws CRM_Extension_Exception
*/
public static function loadFromFile($file) {
list ($xml, $error) = CRM_Utils_XML::parseFile($file);
* Load extension info a string
*
* @param string $string XML content
+ *
+ * @throws CRM_Extension_Exception_ParseException
* @return CRM_Extension_Info
*/
public static function loadFromString($string) {
return $instance;
}
+ /**
+ * @param null $key
+ * @param null $type
+ * @param null $name
+ * @param null $label
+ * @param null $file
+ */
function __construct($key = NULL, $type = NULL, $name = NULL, $label = NULL, $file = NULL) {
$this->key = $key;
$this->type = $type;