示例#1
0
文件: File.php 项目: agroknow/mermix
 /**
  * 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, 'title' => ts('File ID'), 'description' => 'Unique ID', 'required' => true), 'file_type_id' => array('name' => 'file_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('File Type'), 'description' => 'Type of file (e.g. Transcript, Income Tax Return, etc). FK to civicrm_option_value.'), 'mime_type' => array('name' => 'mime_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Mime Type'), 'description' => 'mime type of the document', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'uri' => array('name' => 'uri', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Path'), 'description' => 'uri of the file on disk', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'document' => array('name' => 'document', 'type' => CRM_Utils_Type::T_MEDIUMBLOB, 'title' => ts('File Contents'), 'description' => 'contents of the document'), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('File Description'), 'description' => 'Additional descriptive text regarding this attachment (optional).', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'upload_date' => array('name' => 'upload_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('File Upload Date'), 'description' => 'Date and time that this attachment was uploaded or written to server.'));
     }
     return self::$_fields;
 }
示例#2
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'file_type_id' => array('name' => 'file_type_id', 'type' => CRM_Utils_Type::T_INT), 'mime_type' => array('name' => 'mime_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Mime Type'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'uri' => array('name' => 'uri', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Uri'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'document' => array('name' => 'document', 'type' => CRM_Utils_Type::T_MEDIUMBLOB, 'title' => ts('Document')), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'upload_date' => array('name' => 'upload_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Upload Date')));
     }
     return self::$_fields;
 }