Merge pull request #23825 from colemanw/profileExport
[civicrm-core.git] / CRM / Core / DAO / Dashboard.php
index 127a74dd9cc97a8a0da9b3db9226d2eeffe6c98d..d1cb04ef75c5d1c65b0b445823497b4c9775fbf4 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Dashboard.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0404bd5bf3e04c20da16ec1950db8ac0)
+ * (GenCodeChecksum:35f8b4725d70d269c6c23ed8f7e2b47d)
  */
 
 /**
@@ -31,84 +31,108 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO {
   public static $_log = FALSE;
 
   /**
-   * @var int
+   * @var int|string|null
+   *   (SQL type: int unsigned)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $id;
 
   /**
    * Domain for dashboard
    *
-   * @var int
+   * @var int|string
+   *   (SQL type: int unsigned)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $domain_id;
 
   /**
    * Internal name of dashlet.
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(64))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $name;
 
   /**
    * dashlet title
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(255))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $label;
 
   /**
    * url in case of external dashlet
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(255))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $url;
 
   /**
    * Permission for the dashlet
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(255))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $permission;
 
   /**
    * Permission Operator
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(3))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $permission_operator;
 
   /**
    * fullscreen url for dashlet
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(255))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $fullscreen_url;
 
   /**
    * Is this dashlet active?
    *
-   * @var bool
+   * @var bool|string
+   *   (SQL type: tinyint)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $is_active;
 
   /**
    * Is this dashlet reserved?
    *
-   * @var bool
+   * @var bool|string
+   *   (SQL type: tinyint)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $is_reserved;
 
   /**
    * Number of minutes to cache dashlet content in browser localStorage.
    *
-   * @var int
+   * @var int|string
+   *   (SQL type: int unsigned)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $cache_minutes;
 
   /**
    * Element name of angular directive to invoke (lowercase hyphenated format)
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(255))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $directive;
 
@@ -260,6 +284,9 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO {
           'entity' => 'Dashboard',
           'bao' => 'CRM_Core_BAO_Dashboard',
           'localizable' => 0,
+          'pseudoconstant' => [
+            'callback' => 'CRM_Core_SelectValues::andOr',
+          ],
           'add' => '3.1',
         ],
         'fullscreen_url' => [
@@ -281,6 +308,7 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Dashlet Active?'),
           'description' => ts('Is this dashlet active?'),
+          'required' => TRUE,
           'where' => 'civicrm_dashboard.is_active',
           'default' => '0',
           'table_name' => 'civicrm_dashboard',
@@ -294,6 +322,7 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Dashlet Reserved?'),
           'description' => ts('Is this dashlet reserved?'),
+          'required' => TRUE,
           'where' => 'civicrm_dashboard.is_reserved',
           'default' => '0',
           'table_name' => 'civicrm_dashboard',