Merge pull request #14072 from eileenmcnaughton/dao
[civicrm-core.git] / CRM / Core / DAO / File.php
index 6aacb72d49bab8f5bb166f1f883d9f611bb92e27..fe4ae741f492e26e768325ddb91c210fc54b7f79 100644 (file)
@@ -2,11 +2,11 @@
 
 /**
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
  *
  * Generated from xml/schema/CRM/Core/File.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7fd8d2643aa05e33a38983f719c09111)
+ * (GenCodeChecksum:994c11201c8b27ec0913d1ce505ef864)
  */
 
 /**
@@ -19,14 +19,14 @@ class CRM_Core_DAO_File extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_file';
+  public static $_tableName = 'civicrm_file';
 
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var bool
    */
-  static $_log = TRUE;
+  public static $_log = TRUE;
 
   /**
    * Unique ID
@@ -100,7 +100,7 @@ class CRM_Core_DAO_File extends CRM_Core_DAO {
    */
   public static function getReferenceColumns() {
     if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
+      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
     }
@@ -119,8 +119,9 @@ class CRM_Core_DAO_File extends CRM_Core_DAO {
           'name' => 'id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('File ID'),
-          'description' => 'Unique ID',
+          'description' => ts('Unique ID'),
           'required' => TRUE,
+          'where' => 'civicrm_file.id',
           'table_name' => 'civicrm_file',
           'entity' => 'File',
           'bao' => 'CRM_Core_BAO_File',
@@ -130,7 +131,8 @@ class CRM_Core_DAO_File extends CRM_Core_DAO {
           'name' => 'file_type_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('File Type'),
-          'description' => 'Type of file (e.g. Transcript, Income Tax Return, etc). FK to civicrm_option_value.',
+          'description' => ts('Type of file (e.g. Transcript, Income Tax Return, etc). FK to civicrm_option_value.'),
+          'where' => 'civicrm_file.file_type_id',
           'table_name' => 'civicrm_file',
           'entity' => 'File',
           'bao' => 'CRM_Core_BAO_File',
@@ -140,9 +142,10 @@ class CRM_Core_DAO_File extends CRM_Core_DAO {
           'name' => 'mime_type',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Mime Type'),
-          'description' => 'mime type of the document',
+          'description' => ts('mime type of the document'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_file.mime_type',
           'table_name' => 'civicrm_file',
           'entity' => 'File',
           'bao' => 'CRM_Core_BAO_File',
@@ -152,9 +155,10 @@ class CRM_Core_DAO_File extends CRM_Core_DAO {
           'name' => 'uri',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Path'),
-          'description' => 'uri of the file on disk',
+          'description' => ts('uri of the file on disk'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_file.uri',
           'table_name' => 'civicrm_file',
           'entity' => 'File',
           'bao' => 'CRM_Core_BAO_File',
@@ -164,7 +168,8 @@ class CRM_Core_DAO_File extends CRM_Core_DAO {
           'name' => 'document',
           'type' => CRM_Utils_Type::T_MEDIUMBLOB,
           'title' => ts('File Contents'),
-          'description' => 'contents of the document',
+          'description' => ts('contents of the document'),
+          'where' => 'civicrm_file.document',
           'table_name' => 'civicrm_file',
           'entity' => 'File',
           'bao' => 'CRM_Core_BAO_File',
@@ -174,9 +179,10 @@ class CRM_Core_DAO_File extends CRM_Core_DAO {
           'name' => 'description',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('File Description'),
-          'description' => 'Additional descriptive text regarding this attachment (optional).',
+          'description' => ts('Additional descriptive text regarding this attachment (optional).'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_file.description',
           'table_name' => 'civicrm_file',
           'entity' => 'File',
           'bao' => 'CRM_Core_BAO_File',
@@ -186,7 +192,8 @@ class CRM_Core_DAO_File extends CRM_Core_DAO {
           'name' => 'upload_date',
           'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
           'title' => ts('File Upload Date'),
-          'description' => 'Date and time that this attachment was uploaded or written to server.',
+          'description' => ts('Date and time that this attachment was uploaded or written to server.'),
+          'where' => 'civicrm_file.upload_date',
           'table_name' => 'civicrm_file',
           'entity' => 'File',
           'bao' => 'CRM_Core_BAO_File',
@@ -196,7 +203,8 @@ class CRM_Core_DAO_File extends CRM_Core_DAO {
           'name' => 'created_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Created By Contact ID'),
-          'description' => 'FK to civicrm_contact, who uploaded this file',
+          'description' => ts('FK to civicrm_contact, who uploaded this file'),
+          'where' => 'civicrm_file.created_id',
           'table_name' => 'civicrm_file',
           'entity' => 'File',
           'bao' => 'CRM_Core_BAO_File',