Merge pull request #22483 from eileenmcnaughton/token1
[civicrm-core.git] / CRM / Member / DAO / MembershipType.php
index 5bd91e8e80abd871e22ccc01b542dca4d4886ef2..40e9b671d316e9c3da5f3d19b2a5be218d8688d9 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Member/MembershipType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:89dc1a77c01ca0255a2dad8637f5e835)
+ * (GenCodeChecksum:ebffd1b4dde86196cd988e43adcd6ad8)
  */
 
 /**
@@ -41,14 +41,18 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO {
   /**
    * 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;
 
@@ -56,34 +60,44 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO {
    * 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;
 
@@ -91,13 +105,17 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO {
    * 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;
 
@@ -105,77 +123,101 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO {
    * 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 int
+   * @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;
 
@@ -365,6 +407,7 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO {
           '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',