X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2FWordReplacement.php;h=dfde25755f6969db42a6df96cb8e3c227c3eab69;hb=4a3c7961f8c578506bdc6b8c0909b1ea435a9739;hp=de23dbb0bcf0dfdfcedcd9ed0d01a41fecb8af25;hpb=8b58a98f17b65d4e5c67f973b66ebb1b4df3615a;p=civicrm-core.git diff --git a/CRM/Core/DAO/WordReplacement.php b/CRM/Core/DAO/WordReplacement.php index de23dbb0bc..dfde25755f 100644 --- a/CRM/Core/DAO/WordReplacement.php +++ b/CRM/Core/DAO/WordReplacement.php @@ -2,11 +2,11 @@ /** * @package CRM - * @copyright CiviCRM LLC (c) 2004-2018 + * @copyright CiviCRM LLC (c) 2004-2019 * * Generated from xml/schema/CRM/Core/WordReplacement.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:550a500d2c0a05672ebf9e2a47d54d69) + * (GenCodeChecksum:df2cde8fb1f65a25db724d35387a1342) */ /** @@ -19,14 +19,14 @@ 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 @@ -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']); } @@ -103,8 +103,9 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO { 'name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Word Replacement ID'), - 'description' => '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', @@ -114,9 +115,10 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO { 'name' => 'find_word', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Replaced Word'), - 'description' => 'Word which need to be replaced', + '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', @@ -126,9 +128,10 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO { 'name' => 'replace_word', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Replacement Word'), - 'description' => 'Word which will replace the word in find', + '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', @@ -138,7 +141,8 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO { 'name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Word Replacement is Active'), - 'description' => 'Is this entry 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', @@ -167,7 +172,8 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO { 'name' => 'domain_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Word Replacement Domain ID'), - 'description' => 'FK to Domain ID. This is for Domain specific word replacement', + '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',