/** * Returns all the column names of this table * * @return array */ static function &fields() { if (!self::$_fields) { self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Payment ID'), 'description' => 'Participant Payment Id', 'required' => true), 'participant_id' => array('name' => 'participant_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Participant ID'), 'description' => 'Participant Id (FK)', 'required' => true, 'FKClassName' => 'CRM_Event_DAO_Participant'), 'contribution_id' => array('name' => 'contribution_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contribution'), 'description' => 'FK to contribution table.', 'required' => true, 'FKClassName' => 'CRM_Contribute_DAO_Contribution')); } return self::$_fields; }