| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @param array $defaults
* (reference ) an assoc array to hold the flattened values.
*
- * @return CRM_Core_BAO_OptionGroup object
- * @static
+ * @return CRM_Core_BAO_OptionGroup
*/
public static function retrieve(&$params, &$defaults) {
$optionGroup = new CRM_Core_DAO_OptionGroup();
* @param bool $is_active
* Value we want to set the is_active field.
*
- * @return Object DAO object on sucess, null otherwise
- * @static
+ * @return Object
+ * DAO object on sucess, null otherwise
*/
public static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Core_DAO_OptionGroup', $id, 'is_active', $is_active);
* @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);
}
*
* @param int $optionGroupId
* Id of the Option Group to be deleted.
- *
- * @return void
- *
- * @static
*/
public static function del($optionGroupId) {
// need to delete all option value field before deleting group
* @param int $optionGroupId
* Id of the Option Group.
*
- * @return String title
- *
- * @static
+ * @return string
+ * title
*/
public static function getTitle($optionGroupId) {
$optionGroup = new CRM_Core_DAO_OptionGroup();
$optionGroup->find(TRUE);
return $optionGroup->name;
}
+
}