Beispiel #1
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'entity_table' => array('name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Table'), 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Data')), 'modified_id' => array('name' => 'modified_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'modified_date' => array('name' => 'modified_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Modified Date')));
     }
     return self::$_fields;
 }
Beispiel #2
0
 /**
  * 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' => 'Log ID', 'required' => true), 'entity_table' => array('name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Table'), 'description' => 'Name of table where item being referenced is stored.', 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'description' => 'Foreign key to the referenced item.', 'required' => true), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Data'), 'description' => 'Updates does to this object if any.'), 'modified_id' => array('name' => 'modified_id', 'type' => CRM_Utils_Type::T_INT, 'description' => 'FK to Contact ID of person under whose credentials this data modification was made.', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'modified_date' => array('name' => 'modified_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Modified Date'), 'description' => 'When was the referenced entity created or modified or deleted.'));
     }
     return self::$_fields;
 }