/**
* Fetch object based on array of properties
*
- * @param array $params (reference ) an assoc array of name/value pairs
- * @param array $defaults (reference ) an assoc array to hold the flattened values
+ * @param array $params
+ * (reference ) an assoc array of name/value pairs.
+ * @param array $defaults
+ * (reference ) an assoc array to hold the flattened values.
*
- * @return CRM_Core_BAO_OptionGroup object
+ * @return CRM_Core_BAO_OptionGroup
* @static
*/
public static function retrieve(&$params, &$defaults) {
/**
* Update the is_active flag in the db
*
- * @param int $id id of the database record
- * @param boolean $is_active value we want to set the is_active field
+ * @param int $id
+ * Id of the database record.
+ * @param bool $is_active
+ * Value we want to set the is_active field.
*
- * @return Object DAO object on sucess, null otherwise
+ * @return Object
+ * DAO object on sucess, null otherwise
* @static
*/
public static function setIsActive($id, $is_active) {
/**
* Add the Option Group
*
- * @param array $params reference array contains the values submitted by the form
- * @param array $ids reference array contains the id
+ * @param array $params
+ * Reference array contains the values submitted by the form.
+ * @param array $ids
+ * Reference array contains the id.
*
* @static
*
* @return object
*/
public static function add(&$params, $ids = array()) {
- if(empty($params['id'])){
+ if (empty($params['id'])) {
$params['id'] = CRM_Utils_Array::value('optionGroup', $ids);
}
/**
* Delete Option Group
*
- * @param int $optionGroupId Id of the Option Group to be deleted.
+ * @param int $optionGroupId
+ * Id of the Option Group to be deleted.
*
* @return void
*
/**
* Get title of the option group
*
- * @param int $optionGroupId Id of the Option Group.
+ * @param int $optionGroupId
+ * Id of the Option Group.
*
- * @return String title
+ * @return String
+ * title
*
* @static
*/
return $optionGroup->name;
}
}
-