Regenerate DAO files
[civicrm-core.git] / CRM / Core / DAO / WordReplacement.php
index e07d75920cc4436a076f58600fea709862788ae9..637bcceb5b375cf94c3621df985d73138ffbc863 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/WordReplacement.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:df2cde8fb1f65a25db724d35387a1342)
+ * (GenCodeChecksum:1f2d0542e46494b542dce1c0132a1643)
  */
 
 /**
@@ -19,19 +19,19 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_word_replacement';
+  public static $_tableName = 'civicrm_word_replacement';
 
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var bool
    */
-  static $_log = FALSE;
+  public static $_log = FALSE;
 
   /**
    * Word replacement ID
    *
-   * @var int unsigned
+   * @var int
    */
   public $id;
 
@@ -52,7 +52,7 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO {
   /**
    * Is this entry active?
    *
-   * @var boolean
+   * @var bool
    */
   public $is_active;
 
@@ -64,7 +64,7 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO {
   /**
    * FK to Domain ID. This is for Domain specific word replacement
    *
-   * @var int unsigned
+   * @var int
    */
   public $domain_id;
 
@@ -84,7 +84,7 @@ class CRM_Core_DAO_WordReplacement 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(), 'domain_id', 'civicrm_domain', 'id');
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
     }
@@ -105,6 +105,7 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO {
           'title' => ts('Word Replacement ID'),
           'description' => ts('Word replacement ID'),
           'required' => TRUE,
+          'where' => 'civicrm_word_replacement.id',
           'table_name' => 'civicrm_word_replacement',
           'entity' => 'WordReplacement',
           'bao' => 'CRM_Core_BAO_WordReplacement',
@@ -117,6 +118,7 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO {
           'description' => ts('Word which need to be replaced'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_word_replacement.find_word',
           'table_name' => 'civicrm_word_replacement',
           'entity' => 'WordReplacement',
           'bao' => 'CRM_Core_BAO_WordReplacement',
@@ -129,6 +131,7 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO {
           'description' => ts('Word which will replace the word in find'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_word_replacement.replace_word',
           'table_name' => 'civicrm_word_replacement',
           'entity' => 'WordReplacement',
           'bao' => 'CRM_Core_BAO_WordReplacement',
@@ -139,6 +142,7 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Word Replacement is Active'),
           'description' => ts('Is this entry active?'),
+          'where' => 'civicrm_word_replacement.is_active',
           'default' => '1',
           'table_name' => 'civicrm_word_replacement',
           'entity' => 'WordReplacement',
@@ -151,6 +155,7 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO {
           'title' => ts('Word Replacement Match Type'),
           'maxlength' => 16,
           'size' => CRM_Utils_Type::TWELVE,
+          'where' => 'civicrm_word_replacement.match_type',
           'default' => 'wildcardMatch',
           'table_name' => 'civicrm_word_replacement',
           'entity' => 'WordReplacement',
@@ -161,13 +166,14 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO {
           ],
           'pseudoconstant' => [
             'callback' => 'CRM_Core_SelectValues::getWordReplacementMatchType',
-          ]
+          ],
         ],
         'domain_id' => [
           'name' => 'domain_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Word Replacement Domain ID'),
           'description' => ts('FK to Domain ID. This is for Domain specific word replacement'),
+          'where' => 'civicrm_word_replacement.domain_id',
           'table_name' => 'civicrm_word_replacement',
           'entity' => 'WordReplacement',
           'bao' => 'CRM_Core_BAO_WordReplacement',
@@ -177,7 +183,7 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO {
             'table' => 'civicrm_domain',
             'keyColumn' => 'id',
             'labelColumn' => 'name',
-          ]
+          ],
         ],
       ];
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);