Вход Регистрация
Файл: concrete5.7.5.6/concrete/controllers/dialog/file/thumbnails.php
Строк: 40
<?php
namespace ConcreteControllerDialogFile;
use 
ConcreteControllerBackendUserInterfaceFile as BackendInterfaceFileController;
use 
ConcreteCoreFileEditResponse as FileEditResponse;
use 
ConcreteCoreFileTypeType;
use 
Exception;
class 
Thumbnails extends BackendInterfaceFileController {

    protected 
$viewPath = '/dialogs/file/thumbnails';

    protected function 
canAccess() {
        
$type = $this->file->getTypeObject();
        return 
$this->permissions->canEditFileContents() && $type->getGenericType() == Type::T_IMAGE;
    }

    public function 
view() {
        
$types = ConcreteCoreFileImageThumbnailTypeType::getVersionList();
        
$this->set('types', $types);
        
$version = $this->file->getVersion($this->request->request->get('fvID'));
        
$this->set('version', $version);
    }

}
Онлайн: 2
Реклама