*
* Generated from xml/schema/CRM/Core/Note.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1a545c1e601969ae689d9577a3c14389)
+ * (GenCodeChecksum:0e43e07bfbf7de4e7fa48f4d24a923fd)
*/
/**
*/
public static $_tableName = 'civicrm_note';
+ /**
+ * Icon associated with this entity.
+ *
+ * @var string
+ */
+ public static $_icon = 'fa-sticky-note';
+
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
/**
* When was this note last modified/edited
*
- * @var date
+ * @var timestamp
*/
public $modified_date;
parent::__construct();
}
+ /**
+ * Returns localized title of this entity.
+ */
+ public static function getEntityTitle() {
+ return ts('Notes');
+ }
+
/**
* Returns foreign keys and entity references.
*
'entity' => 'Note',
'bao' => 'CRM_Core_BAO_Note',
'localizable' => 0,
+ 'add' => '1.1',
],
'entity_table' => [
'name' => 'entity_table',
'pseudoconstant' => [
'callback' => 'CRM_Core_BAO_Note::entityTables',
],
+ 'add' => '1.1',
],
'entity_id' => [
'name' => 'entity_id',
'entity' => 'Note',
'bao' => 'CRM_Core_BAO_Note',
'localizable' => 0,
+ 'add' => '1.1',
],
'note' => [
'name' => 'note',
'html' => [
'type' => 'TextArea',
],
+ 'add' => '1.1',
],
'contact_id' => [
'name' => 'contact_id',
'bao' => 'CRM_Core_BAO_Note',
'localizable' => 0,
'FKClassName' => 'CRM_Contact_DAO_Contact',
+ 'add' => '1.1',
],
'modified_date' => [
'name' => 'modified_date',
- 'type' => CRM_Utils_Type::T_DATE,
+ 'type' => CRM_Utils_Type::T_TIMESTAMP,
'title' => ts('Note Modified By'),
'description' => ts('When was this note last modified/edited'),
'where' => 'civicrm_note.modified_date',
+ 'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'table_name' => 'civicrm_note',
'entity' => 'Note',
'bao' => 'CRM_Core_BAO_Note',
'localizable' => 0,
+ 'add' => '1.1',
],
'subject' => [
'name' => 'subject',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.5',
],
'privacy' => [
'name' => 'privacy',
'optionGroupName' => 'note_privacy',
'optionEditPath' => 'civicrm/admin/options/note_privacy',
],
+ 'add' => '3.3',
],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);