|
...
|
...
|
@@ -13,8 +13,12 @@ class ProcessRecords extends Base |
|
|
|
|
|
|
|
public function setRecordAttribute($value){
|
|
|
|
foreach ($value as &$v){
|
|
|
|
$v['image'] = basename($v['image']);
|
|
|
|
$v['file'] = basename($v['file']);
|
|
|
|
foreach ($v['image'] as $kImage => $vImage){
|
|
|
|
$v['image'][$kImage] = basename($vImage['image']);
|
|
|
|
}
|
|
|
|
foreach ($v['file'] as $kFile => $vFile){
|
|
|
|
$v['file'][$kFile] = basename($vFile['file']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->attributes['record'] = Arr::a2s($value);
|
|
|
|
}
|
|
...
|
...
|
@@ -22,8 +26,12 @@ class ProcessRecords extends Base |
|
|
|
public function getRecordAttribute($value){
|
|
|
|
$value = Arr::s2a($value);
|
|
|
|
foreach ($value as &$v){
|
|
|
|
$v['image'] = getImageUrl($v['image']);
|
|
|
|
$v['file'] = getFileUrl($v['file']);
|
|
|
|
foreach ($v['image'] as $kImage => $vImage){
|
|
|
|
$v['image'][$kImage] = getImageUrl($v['image']);
|
|
|
|
}
|
|
|
|
foreach ($v['file'] as $kFile => $vFile){
|
|
|
|
$v['file'][$kFile] = getFileUrl($v['file']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $value;
|
|
|
|
}
|
...
|
...
|
|