$this->civicrmUrl = rtrim($config->resourceBase, '/');
}
if ($civicrmPath) {
- $this->civicrmPath = rtrim($civicrmPath,'/');
+ $this->civicrmPath = rtrim($civicrmPath, '/');
} else {
global $civicrm_root;
- $this->civicrmPath = rtrim($civicrm_root,'/');
+ $this->civicrmPath = rtrim($civicrm_root, '/');
}
}
* Given the class, provides extension's key.
*
*
- * @param string $clazz extension class name
+ * @param string $clazz
+ * Extension class name.
*
* @return string name of extension key
*/
* Given the string, returns true or false if it's an extension key.
*
*
- * @param string $key a string which might be an extension key
+ * @param string $key
+ * A string which might be an extension key.
*
* @return boolean true if given string is an extension name
*/
* Given the string, returns true or false if it's an extension class name.
*
*
- * @param string $clazz a string which might be an extension class name
+ * @param string $clazz
+ * A string which might be an extension class name.
*
* @return boolean true if given string is an extension class name
*/
}
/**
- * @param string $key extension fully-qualified-name
+ * @param string $key
+ * Extension fully-qualified-name.
* @param bool $fresh
*
* @throws CRM_Extension_Exception
* Given the key, provides extension's class name.
*
*
- * @param string $key extension key
+ * @param string $key
+ * Extension key.
*
* @return string name of extension's main class
*/
* extension's main class.
*
*
- * @param string $key extension key
+ * @param string $key
+ * Extension key.
*
* @return string path to file containing extension's main class
*/
* Given the key, provides the path to file containing
* extension's main class.
*
- * @param string $key extension key
+ * @param string $key
+ * Extension key.
* @return string local path of the extension source tree
*/
public function keyToBasePath($key) {
* extension's main class.
*
*
- * @param string $key extension key
+ * @param string $key
+ * Extension key.
*
* @return string url for resources in this extension
*/
/**
* Fetch the list of active extensions of type 'module'
*
- * @param $fresh bool whether to forcibly reload extensions list from canonical store
+ * @param $fresh
+ * Bool whether to forcibly reload extensions list from canonical store.
* @return array - array(array('prefix' => $, 'file' => $))
*/
public function getActiveModuleFiles($fresh = FALSE) {
* Given the class, provides the template path.
*
*
- * @param string $clazz extension class name
+ * @param string $clazz
+ * Extension class name.
*
* @return string path to extension's templates directory
*/
* @todo consider multiple templates, support for one template for now
*
*
- * @param string $clazz extension class name
+ * @param string $clazz
+ * Extension class name.
*
* @return string extension's template name
*/