/** * 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('Group Contact ID'), 'description' => 'primary key', 'required' => true), 'group_id' => array('name' => 'group_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Group ID'), 'description' => 'FK to civicrm_group', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Group', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('table' => 'civicrm_group', 'keyColumn' => 'id', 'labelColumn' => 'title')), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contact ID'), 'description' => 'FK to civicrm_contact', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'status' => array('name' => 'status', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Group Contact Status'), 'description' => 'status of contact relative to membership in group', 'maxlength' => 8, 'size' => CRM_Utils_Type::EIGHT, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('callback' => 'CRM_Core_SelectValues::groupContactStatus')), 'location_id' => array('name' => 'location_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Group Contact Location'), 'description' => 'Optional location to associate with this membership', 'FKClassName' => 'CRM_Core_DAO_LocBlock'), 'email_id' => array('name' => 'email_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Group Contact Email'), 'description' => 'Optional email to associate with this membership', 'FKClassName' => 'CRM_Core_DAO_Email')); } return self::$_fields; }
/** * returns all the column names of this table * * @access public * @return array */ static function &fields() { if (!self::$_fields) { self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'group_id' => array('name' => 'group_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Group'), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'status' => array('name' => 'status', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Status'), 'enumValues' => 'Added, Removed, Pending'), 'location_id' => array('name' => 'location_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Core_DAO_LocBlock'), 'email_id' => array('name' => 'email_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Core_DAO_Email')); } return self::$_fields; }
/** * returns all the column names of this table * * @access public * @return array */ static function &fields() { if (!self::$_fields) { self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Group Contact ID'), 'required' => true), 'group_id' => array('name' => 'group_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Group ID'), 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Group', 'pseudoconstant' => array('table' => 'civicrm_group', 'keyColumn' => 'id', 'labelColumn' => 'title')), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contact ID'), 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'status' => array('name' => 'status', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Group Contact Status'), 'enumValues' => 'Added, Removed, Pending'), 'location_id' => array('name' => 'location_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Group Contact Location'), 'FKClassName' => 'CRM_Core_DAO_LocBlock'), 'email_id' => array('name' => 'email_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Group Contact Email'), 'FKClassName' => 'CRM_Core_DAO_Email')); } return self::$_fields; }