| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
/**
* @param array $params
*
- * @return $this|null
+ * @return this|null
*/
public static function add(&$params) {
if (empty($params)) {
return NULL;
}
- $dao = new CRM_Event_DAO_ParticipantStatusType;
+ $dao = new CRM_Event_DAO_ParticipantStatusType();
$dao->copyValues($params);
return $dao->save();
}
/**
* @param array $params
*
- * @return $this|null
+ * @return this|null
*/
public static function &create(&$params) {
$transaction = new CRM_Core_Transaction();
*/
public static function deleteParticipantStatusType($id) {
// return early if there are participants with this status
- $participant = new CRM_Event_DAO_Participant;
+ $participant = new CRM_Event_DAO_Participant();
$participant->status_id = $id;
if ($participant->find()) {
return FALSE;
CRM_Utils_Weight::delWeight('CRM_Event_DAO_ParticipantStatusType', $id);
- $dao = new CRM_Event_DAO_ParticipantStatusType;
+ $dao = new CRM_Event_DAO_ParticipantStatusType();
$dao->id = $id;
$dao->find(TRUE);
$dao->delete();
public static function retrieve(&$params, &$defaults) {
$result = NULL;
- $dao = new CRM_Event_DAO_ParticipantStatusType;
+ $dao = new CRM_Event_DAO_ParticipantStatusType();
$dao->copyValues($params);
if ($dao->find(TRUE)) {
CRM_Core_DAO::storeValues($dao, $defaults);
return array('is_error' => 0, 'messages' => $returnMessages);
}
+
}