protected $keyword;
/**
- * @param string $name name of the component
- * @param string $namespace namespace prefix for component's files
+ * @param string $name
+ * Name of the component.
+ * @param string $namespace
+ * Namespace prefix for component's files.
* @param int $componentID
*/
public function __construct($name, $namespace, $componentID) {
/**
* Determine how many other records refer to a given record
*
- * @param CRM_Core_DAO $dao the item for which we want a reference count
+ * @param CRM_Core_DAO $dao
+ * The item for which we want a reference count.
* @return array each item in the array is an array with keys:
* - name: string, eg "sql:civicrm_email:contact_id"
* - type: string, eg "sql"
*/
private function _instantiate($cl) {
$className = $this->namespace . '_' . $cl;
- require_once (str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php');
+ require_once str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
return new $className();
}
}
-