+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
-| Copyright CiviCRM LLC (c) 2004-2016 |
+| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*/
/**
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
*
* Generated from xml/schema/CRM/Core/Note.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:685b6d9d10917535fe9fdf3f63f4a559)
+ * (GenCodeChecksum:ec8b51e4a3440e6fb1979540b5f563cb)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Core_DAO_Note constructor.
+ */
class CRM_Core_DAO_Note extends CRM_Core_DAO {
/**
- * static instance to hold the table name
+ * Static instance to hold the table name.
*
* @var string
*/
static $_tableName = 'civicrm_note';
/**
- * static value to see if we should log any modifications to
- * this table in the civicrm_log table
+ * Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var boolean
*/
*/
public $privacy;
/**
- * class constructor
- *
- * @return civicrm_note
+ * Class constructor.
*/
function __construct() {
$this->__table = 'civicrm_note';
parent::__construct();
}
/**
- * Returns foreign keys and entity references
+ * Returns foreign keys and entity references.
*
* @return array
* [CRM_Core_Reference_Interface]
'title' => ts('Note ID') ,
'description' => 'Note ID',
'required' => true,
+ 'table_name' => 'civicrm_note',
+ 'entity' => 'Note',
+ 'bao' => 'CRM_Core_BAO_Note',
+ 'localizable' => 0,
) ,
'entity_table' => array(
'name' => 'entity_table',
'required' => true,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'table_name' => 'civicrm_note',
+ 'entity' => 'Note',
+ 'bao' => 'CRM_Core_BAO_Note',
+ 'localizable' => 0,
'pseudoconstant' => array(
'callback' => 'CRM_Core_BAO_Note::entityTables',
)
'title' => ts('Note Entity ID') ,
'description' => 'Foreign key to the referenced item.',
'required' => true,
+ 'table_name' => 'civicrm_note',
+ 'entity' => 'Note',
+ 'bao' => 'CRM_Core_BAO_Note',
+ 'localizable' => 0,
) ,
'note' => array(
'name' => 'note',
'headerPattern' => '/Note|Comment/i',
'dataPattern' => '//',
'export' => true,
+ 'table_name' => 'civicrm_note',
+ 'entity' => 'Note',
+ 'bao' => 'CRM_Core_BAO_Note',
+ 'localizable' => 0,
'html' => array(
'type' => 'TextArea',
) ,
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Note Created By') ,
'description' => 'FK to Contact ID creator',
+ 'table_name' => 'civicrm_note',
+ 'entity' => 'Note',
+ 'bao' => 'CRM_Core_BAO_Note',
+ 'localizable' => 0,
'FKClassName' => 'CRM_Contact_DAO_Contact',
) ,
'modified_date' => array(
'type' => CRM_Utils_Type::T_DATE,
'title' => ts('Note Modified By') ,
'description' => 'When was this note last modified/edited',
+ 'table_name' => 'civicrm_note',
+ 'entity' => 'Note',
+ 'bao' => 'CRM_Core_BAO_Note',
+ 'localizable' => 0,
) ,
'subject' => array(
'name' => 'subject',
'description' => 'subject of note description',
'maxlength' => 255,
'size' => 60,
+ 'table_name' => 'civicrm_note',
+ 'entity' => 'Note',
+ 'bao' => 'CRM_Core_BAO_Note',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'description' => 'Foreign Key to Note Privacy Level (which is an option value pair and hence an implicit FK)',
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'table_name' => 'civicrm_note',
+ 'entity' => 'Note',
+ 'bao' => 'CRM_Core_BAO_Note',
+ 'localizable' => 0,
'pseudoconstant' => array(
'optionGroupName' => 'note_privacy',
'optionEditPath' => 'civicrm/admin/options/note_privacy',