/** * Returns all the column names of this table * * @return array */ static function &fields() { if (!self::$_fields) { self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'description' => 'Unique Settings ID', 'required' => true), 'msg_tpl_id' => array('name' => 'msg_tpl_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('message template ID'), 'description' => 'FK to civicrm_msg_template.', 'required' => true, 'FKClassName' => 'CRM_Core_DAO_MessageTemplate', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('table' => 'civicrm_msg_template', 'keyColumn' => 'id', 'labelColumn' => 'msg_title')), 'hash_key' => array('name' => 'hash_key', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('hash_key'), 'maxlength' => 32, 'size' => CRM_Utils_Type::MEDIUM), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('name'), 'description' => 'name', 'maxlength' => 32, 'size' => CRM_Utils_Type::MEDIUM), 'html' => array('name' => 'html', 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('HTML'), 'description' => 'HTML', 'html' => array('type' => 'RichTextEditor')), 'metadata' => array('name' => 'metadata', 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('metadata'), 'description' => 'metadata', 'html' => array('type' => 'RichTextEditor')), 'template' => array('name' => 'template', 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('template'), 'description' => 'template', 'html' => array('type' => 'RichTextEditor'))); } return self::$_fields; }