'taoMediaManager', 'label' => 'extension-tao-mediamanager', 'description' => 'TAO media manager extension', 'license' => 'GPL-2.0', 'author' => 'Open Assessment Technologies SA', 'models' => [ 'http://www.tao.lu/Ontologies/TAOMedia.rdf' ], 'managementRole' => TaoAssetRoles::MEDIA_MANAGER, 'acl' => [ [ AccessRule::GRANT, TaoAssetRoles::MEDIA_MANAGER, ['ext' => 'taoMediaManager'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_AUTHOR, ['ext' => 'taoMediaManager'], ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_CLASS_NAVIGATOR, ['ext' => 'taoMediaManager', 'mod' => 'MediaManager', 'act' => 'editClassLabel'], ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_CLASS_NAVIGATOR, ['ext' => 'taoMediaManager', 'mod' => 'MediaManager', 'act' => 'index'], ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_CLASS_NAVIGATOR, ['ext' => 'taoMediaManager', 'mod' => 'MediaManager', 'act' => 'getOntologyData'] ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_CLASS_NAVIGATOR, ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'files'], ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_VIEWER, ['ext' => 'taoMediaManager', 'mod' => 'MediaManager', 'act' => 'editInstance'] ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_VIEWER, ['ext' => 'taoMediaManager', 'mod' => 'SharedStimulus', 'act' => 'get'] ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_PREVIEWER, ['ext' => 'taoMediaManager', 'mod' => 'MediaManager', 'act' => 'getFile'] ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_PREVIEWER, ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'files'] ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_PREVIEWER, ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'download'] ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_EXPORTER, ['ext' => 'taoMediaManager', 'mod' => 'MediaExport', 'act' => 'index'] ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_EXPORTER, ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'download'], ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_CONTENT_CREATOR, ['ext' => 'taoMediaManager', 'mod' => 'MediaManager', 'act' => 'authoring'] ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_CONTENT_CREATOR, ['ext' => 'taoMediaManager', 'mod' => 'MediaImport', 'act' => 'editMedia'] ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_CONTENT_CREATOR, ['ext' => 'taoMediaManager', 'mod' => 'SharedStimulus', 'act' => 'patch'], ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_RESOURCE_CREATOR, ['ext' => 'taoMediaManager', 'mod' => 'SharedStimulus', 'act' => 'create'], ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_RESOURCE_CREATOR, ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'fileExists'], ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_RESOURCE_CREATOR, ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'upload'], ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_IMPORTER, ['ext' => 'taoMediaManager', 'mod' => 'MediaImport', 'act' => 'index'], ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_DELETER, ['ext' => 'taoMediaManager', 'mod' => 'MediaManager', 'act' => 'deleteResource'], ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_DELETER, ['ext' => 'taoMediaManager', 'mod' => 'MediaManager', 'act' => 'moveInstance'], ], [ AccessRule::GRANT, TaoAssetRoles::ASSET_DELETER, ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'delete'], ], ], 'install' => [ 'rdf' => [ __DIR__ . '/model/ontology/taomedia.rdf', ], 'php' => [ SetMediaManager::class, SetRolesPermissions::class, SetupMiddlewares::class, ] ], 'update' => 'oat\\taoMediaManager\\scripts\\update\\Updater', 'uninstall' => [ 'php' => [ __DIR__ . '/scripts/uninstall/unsetMediaManager.php', ] ], 'classLoaderPackages' => [ __DIR__ . '/helpers/' ], 'routes' => [ '/taoMediaManager' => 'oat\\taoMediaManager\\controller' ], 'constants' => [ # actions directory "DIR_ACTIONS" => $extpath . "controller" . DIRECTORY_SEPARATOR, # models directory "DIR_MODELS" => $extpath . "models" . DIRECTORY_SEPARATOR, # views directory "DIR_VIEWS" => $extpath . "views" . DIRECTORY_SEPARATOR, # helpers directory "DIR_HELPERS" => $extpath . "helpers" . DIRECTORY_SEPARATOR, # default module name 'DEFAULT_MODULE_NAME' => 'MediaManager', #default action name 'DEFAULT_ACTION_NAME' => 'editMediaClass', #BASE PATH: the root path in the file system (usually the document root) 'BASE_PATH' => $extpath, #BASE URL (usually the domain root) 'BASE_URL' => ROOT_URL . '/taoMediaManager', #TAO extension Paths 'TAOVIEW_PATH' => $taopath . 'views' . DIRECTORY_SEPARATOR, 'TAO_TPL_PATH' => $taopath . 'views' . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR, ], 'extra' => [ 'structures' => __DIR__ . DIRECTORY_SEPARATOR . 'controller' . DIRECTORY_SEPARATOR . 'structures.xml', ] ];