static function getMap()
{
return array(
'ID' => array(
'data_type' => 'string',
'primary' => true,
'validation' => array(__CLASS__, 'validateId'),
'title' => Loc::getMessage('FILE_UPLOAD_ENTITY_ID_FIELD'),
),
'TIMESTAMP_X' => array(
'data_type' => 'datetime',
'required' => true,
'title' => Loc::getMessage('FILE_UPLOAD_ENTITY_TIMESTAMP_X_FIELD'),
),
'FILE_PATH' => array(
'data_type' => 'string',
'required' => true,
'validation' => array(__CLASS__, 'validateFilePath'),
'title' => Loc::getMessage('FILE_UPLOAD_ENTITY_FILE_PATH_FIELD'),
),
'FILE_SIZE' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('FILE_UPLOAD_ENTITY_FILE_SIZE_FIELD'),
),
'TMP_FILE' => array(
'data_type' => 'string',
'validation' => array(__CLASS__, 'validateTmpFile'),
'title' => Loc::getMessage('FILE_UPLOAD_ENTITY_TMP_FILE_FIELD'),
),
'BUCKET_ID' => array(
'data_type' => 'integer',
'required' => true,
'title' => Loc::getMessage('FILE_UPLOAD_ENTITY_BUCKET_ID_FIELD'),
),
'PART_SIZE' => array(
'data_type' => 'integer',
'required' => true,
'title' => Loc::getMessage('FILE_UPLOAD_ENTITY_PART_SIZE_FIELD'),
),
'PART_NO' => array(
'data_type' => 'integer',
'required' => true,
'title' => Loc::getMessage('FILE_UPLOAD_ENTITY_PART_NO_FIELD'),
),
'PART_FAIL_COUNTER' => array(
'data_type' => 'integer',
'required' => true,
'title' => Loc::getMessage('FILE_UPLOAD_ENTITY_PART_FAIL_COUNTER_FIELD'),
),
'NEXT_STEP' => array(
'data_type' => 'text',
'title' => Loc::getMessage('FILE_UPLOAD_ENTITY_NEXT_STEP_FIELD'),
),
'BUCKET' => array(
'data_type' => 'BitrixCloudsFileBucket',
'reference' => array('=this.BUCKET_ID' => 'ref.ID'),
),
);
}