示例#1
0
 function getValue()
 {
     $upload_manager = new SJB_UploadPictureManager();
     $upload_manager->setFileGroup("pictures");
     $fileInfo = SJB_UploadFileManager::getUploadedFileInfo($this->property_info['value']);
     $thumbFileInfo = SJB_UploadFileManager::getUploadedFileInfo($this->property_info['value'] . "_thumb");
     return array('file_url' => $upload_manager->getUploadedFileLink($this->property_info['value'], $fileInfo), 'file_name' => empty($fileInfo['file_name']) ? null : $fileInfo['file_name'], 'thumb_file_url' => $upload_manager->getUploadedFileLink($this->property_info['value'] . "_thumb", $thumbFileInfo), 'thumb_file_name' => empty($thumbFileInfo['file_name']) ? null : $thumbFileInfo['file_name']);
 }
示例#2
0
 function getValue()
 {
     $upload_manager = new SJB_UploadPictureManager();
     $upload_manager->setFileGroup("pictures");
     return array('file_url' => $upload_manager->getUploadedFileLink($this->property_info['value']), 'file_name' => $upload_manager->getUploadedFileName($this->property_info['value']));
 }