X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2FPrintLabel.php;h=1f20a3825e1f1ac3cef2df1c9d54bae6c178f254;hb=4a3c7961f8c578506bdc6b8c0909b1ea435a9739;hp=43587a346a3c8b4df78409c54bec6ccbfdd28929;hpb=3bbe587eca52e262562cd1b06484eefa30480a08;p=civicrm-core.git diff --git a/CRM/Core/DAO/PrintLabel.php b/CRM/Core/DAO/PrintLabel.php index 43587a346a..1f20a3825e 100644 --- a/CRM/Core/DAO/PrintLabel.php +++ b/CRM/Core/DAO/PrintLabel.php @@ -19,14 +19,14 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { * * @var string */ - static $_tableName = 'civicrm_print_label'; + public static $_tableName = 'civicrm_print_label'; /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * * @var bool */ - static $_log = FALSE; + public static $_log = FALSE; /** * @var int unsigned @@ -119,7 +119,7 @@ class CRM_Core_DAO_PrintLabel 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']); } @@ -139,6 +139,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Print Label ID'), 'required' => TRUE, + 'where' => 'civicrm_print_label.id', 'table_name' => 'civicrm_print_label', 'entity' => 'PrintLabel', 'bao' => 'CRM_Core_DAO_PrintLabel', @@ -151,6 +152,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { 'description' => ts('User title for for this label layout'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, + 'where' => 'civicrm_print_label.title', 'table_name' => 'civicrm_print_label', 'entity' => 'PrintLabel', 'bao' => 'CRM_Core_DAO_PrintLabel', @@ -163,6 +165,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { 'description' => ts('variable name/programmatic handle for this field.'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, + 'where' => 'civicrm_print_label.name', 'table_name' => 'civicrm_print_label', 'entity' => 'PrintLabel', 'bao' => 'CRM_Core_DAO_PrintLabel', @@ -173,6 +176,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Description'), 'description' => ts('Description of this label layout'), + 'where' => 'civicrm_print_label.description', 'table_name' => 'civicrm_print_label', 'entity' => 'PrintLabel', 'bao' => 'CRM_Core_DAO_PrintLabel', @@ -185,6 +189,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { 'description' => ts('This refers to name column of civicrm_option_value row in name_badge option group'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, + 'where' => 'civicrm_print_label.label_format_name', 'table_name' => 'civicrm_print_label', 'entity' => 'PrintLabel', 'bao' => 'CRM_Core_DAO_PrintLabel', @@ -202,6 +207,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Label Type'), 'description' => ts('Implicit FK to civicrm_option_value row in NEW label_type option group'), + 'where' => 'civicrm_print_label.label_type_id', 'table_name' => 'civicrm_print_label', 'entity' => 'PrintLabel', 'bao' => 'CRM_Core_DAO_PrintLabel', @@ -219,6 +225,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('Data'), 'description' => ts('contains json encode configurations options'), + 'where' => 'civicrm_print_label.data', 'table_name' => 'civicrm_print_label', 'entity' => 'PrintLabel', 'bao' => 'CRM_Core_DAO_PrintLabel', @@ -230,6 +237,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Label is Default?'), 'description' => ts('Is this default?'), + 'where' => 'civicrm_print_label.is_default', 'default' => '1', 'table_name' => 'civicrm_print_label', 'entity' => 'PrintLabel', @@ -241,6 +249,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Label Is Active?'), 'description' => ts('Is this option active?'), + 'where' => 'civicrm_print_label.is_active', 'default' => '1', 'table_name' => 'civicrm_print_label', 'entity' => 'PrintLabel', @@ -252,6 +261,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Label Reserved?'), 'description' => ts('Is this reserved label?'), + 'where' => 'civicrm_print_label.is_reserved', 'default' => '1', 'table_name' => 'civicrm_print_label', 'entity' => 'PrintLabel', @@ -263,6 +273,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Label Created By'), 'description' => ts('FK to civicrm_contact, who created this label layout'), + 'where' => 'civicrm_print_label.created_id', 'table_name' => 'civicrm_print_label', 'entity' => 'PrintLabel', 'bao' => 'CRM_Core_DAO_PrintLabel',