Skip to content

Commit

Permalink
[REF] Add in frontend fields for title and description of group Schem…
Browse files Browse the repository at this point in the history
…a only change
  • Loading branch information
seamuslee001 committed Sep 25, 2020
1 parent 56261ae commit 0ab907c
Show file tree
Hide file tree
Showing 6 changed files with 818 additions and 7 deletions.
56 changes: 53 additions & 3 deletions CRM/Contact/DAO/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Contact/Group.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:9d3fc8fbc20e3b8068d5989828341c66)
* (GenCodeChecksum:92396d7c907c95d6377219c3e3e804e5)
*/

/**
Expand Down Expand Up @@ -175,6 +175,20 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO {
*/
public $modified_id;

/**
* Alternate Public title for this Group.
*
* @var string
*/
public $frontend_title;

/**
* Optional verbose public description of the group.
*
* @var text
*/
public $frontend_description;

/**
* Class constructor.
*/
Expand Down Expand Up @@ -250,8 +264,8 @@ public static function &fields() {
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Group Title'),
'description' => ts('Name of Group.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
'where' => 'civicrm_group.title',
'table_name' => 'civicrm_group',
'entity' => 'Group',
Expand Down Expand Up @@ -501,6 +515,42 @@ public static function &fields() {
'FKClassName' => 'CRM_Contact_DAO_Contact',
'add' => '4.5',
],
'frontend_title' => [
'name' => 'frontend_title',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Public Group Title'),
'description' => ts('Alternate Public title for this Group.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
'where' => 'civicrm_group.frontend_title',
'default' => 'NULL',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'localizable' => 1,
'html' => [
'type' => 'Text',
],
'add' => '5.31',
],
'frontend_description' => [
'name' => 'frontend_description',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Public Group Description'),
'description' => ts('Optional verbose public description of the group.'),
'rows' => 2,
'cols' => 60,
'where' => 'civicrm_group.frontend_description',
'default' => 'NULL',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'localizable' => 1,
'html' => [
'type' => 'TextArea',
],
'add' => '5.31',
],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
}
Expand Down
12 changes: 11 additions & 1 deletion CRM/Core/I18n/SchemaStructure.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ public static function &columns() {
'description' => "text COMMENT 'Optional description.'",
],
'civicrm_group' => [
'title' => "varchar(64) COMMENT 'Name of Group.'",
'title' => "varchar(255) COMMENT 'Name of Group.'",
'frontend_title' => "varchar(255) DEFAULT NULL COMMENT 'Alternate Public title for this Group.'",
'frontend_description' => "text DEFAULT NULL COMMENT 'Optional verbose public description of the group.'",
],
'civicrm_contribution_page' => [
'title' => "varchar(255) COMMENT 'Contribution Page title. For top of page display'",
Expand Down Expand Up @@ -413,6 +415,14 @@ public static function &widgets() {
'title' => [
'type' => "Text",
],
'frontend_title' => [
'type' => "Text",
],
'frontend_description' => [
'type' => "TextArea",
'rows' => "2",
'cols' => "60",
],
],
'civicrm_contribution_page' => [
'title' => [
Expand Down
Loading

0 comments on commit 0ab907c

Please sign in to comment.