*
* Generated from xml/schema/CRM/Member/MembershipType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:32c41f6fbf066a56e2beb49cfb976977)
+ * (GenCodeChecksum:ebffd1b4dde86196cd988e43adcd6ad8)
*/
/**
/**
* Membership ID
*
- * @var int
+ * @var int|string|null
+ * (SQL type: int unsigned)
+ * Note that values will be retrieved from the database as a string.
*/
public $id;
/**
* Which Domain is this match entry for
*
- * @var int
+ * @var int|string
+ * (SQL type: int unsigned)
+ * Note that values will be retrieved from the database as a string.
*/
public $domain_id;
* Name of Membership Type
*
* @var string
+ * (SQL type: varchar(128))
+ * Note that values will be retrieved from the database as a string.
*/
public $name;
/**
* Description of Membership Type
*
- * @var string
+ * @var string|null
+ * (SQL type: varchar(255))
+ * Note that values will be retrieved from the database as a string.
*/
public $description;
/**
* Owner organization for this membership type. FK to Contact ID
*
- * @var int
+ * @var int|string
+ * (SQL type: int unsigned)
+ * Note that values will be retrieved from the database as a string.
*/
public $member_of_contact_id;
/**
* If membership is paid by a contribution - what financial type should be used. FK to civicrm_financial_type.id
*
- * @var int
+ * @var int|string
+ * (SQL type: int unsigned)
+ * Note that values will be retrieved from the database as a string.
*/
public $financial_type_id;
/**
* Minimum fee for this membership (0 for free/complimentary memberships).
*
- * @var float
+ * @var float|string|null
+ * (SQL type: decimal(18,9))
+ * Note that values will be retrieved from the database as a string.
*/
public $minimum_fee;
* Unit in which membership period is expressed.
*
* @var string
+ * (SQL type: varchar(8))
+ * Note that values will be retrieved from the database as a string.
*/
public $duration_unit;
/**
* Number of duration units in membership period (e.g. 1 year, 12 months).
*
- * @var int
+ * @var int|string|null
+ * (SQL type: int)
+ * Note that values will be retrieved from the database as a string.
*/
public $duration_interval;
* Rolling membership period starts on signup date. Fixed membership periods start on fixed_period_start_day.
*
* @var string
+ * (SQL type: varchar(8))
+ * Note that values will be retrieved from the database as a string.
*/
public $period_type;
/**
* For fixed period memberships, month and day (mmdd) on which subscription/membership will start. Period start is back-dated unless after rollover day.
*
- * @var int
+ * @var int|string|null
+ * (SQL type: int)
+ * Note that values will be retrieved from the database as a string.
*/
public $fixed_period_start_day;
/**
* For fixed period memberships, signups after this day (mmdd) rollover to next period.
*
- * @var int
+ * @var int|string|null
+ * (SQL type: int)
+ * Note that values will be retrieved from the database as a string.
*/
public $fixed_period_rollover_day;
/**
* FK to Relationship Type ID
*
- * @var string
+ * @var string|null
+ * (SQL type: varchar(64))
+ * Note that values will be retrieved from the database as a string.
*/
public $relationship_type_id;
/**
- * @var string
+ * @var string|null
+ * (SQL type: varchar(128))
+ * Note that values will be retrieved from the database as a string.
*/
public $relationship_direction;
/**
* Maximum number of related memberships.
*
- * @var int
+ * @var int|string|null
+ * (SQL type: int)
+ * Note that values will be retrieved from the database as a string.
*/
public $max_related;
/**
- * @var string
+ * @var string|null
+ * (SQL type: varchar(64))
+ * Note that values will be retrieved from the database as a string.
*/
public $visibility;
/**
- * @var int
+ * @var int|string|null
+ * (SQL type: int)
+ * Note that values will be retrieved from the database as a string.
*/
public $weight;
/**
* Receipt Text for membership signup
*
- * @var string
+ * @var string|null
+ * (SQL type: varchar(255))
+ * Note that values will be retrieved from the database as a string.
*/
public $receipt_text_signup;
/**
* Receipt Text for membership renewal
*
- * @var string
+ * @var string|null
+ * (SQL type: varchar(255))
+ * Note that values will be retrieved from the database as a string.
*/
public $receipt_text_renewal;
/**
* 0 = No auto-renew option; 1 = Give option, but not required; 2 = Auto-renew required;
*
- * @var bool
+ * @var int|string|null
+ * (SQL type: tinyint)
+ * Note that values will be retrieved from the database as a string.
*/
public $auto_renew;
/**
* Is this membership_type enabled
*
- * @var bool
+ * @var bool|string|null
+ * (SQL type: tinyint)
+ * Note that values will be retrieved from the database as a string.
*/
public $is_active;
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Membership Type Duration Unit'),
'description' => ts('Unit in which membership period is expressed.'),
+ 'required' => TRUE,
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
'where' => 'civicrm_membership_type.duration_unit',
],
'auto_renew' => [
'name' => 'auto_renew',
- 'type' => CRM_Utils_Type::T_BOOLEAN,
+ 'type' => CRM_Utils_Type::T_INT,
'title' => ts('Auto Renew'),
'description' => ts('0 = No auto-renew option; 1 = Give option, but not required; 2 = Auto-renew required;'),
'where' => 'civicrm_membership_type.auto_renew',