'taoItems', 'label' => 'Item core extension', 'description' => 'TAO Items extension', 'license' => 'GPL-2.0', 'author' => 'Open Assessment Technologies, CRP Henri Tudor', 'models' => [ 'http://www.tao.lu/Ontologies/TAOItem.rdf', ], 'install' => [ 'rdf' => [ __DIR__ . '/models/ontology/taoitem.rdf', __DIR__ . '/models/ontology/taoItemRunner.rdf', __DIR__ . '/models/ontology/indexation.rdf', __DIR__ . '/models/ontology/category.rdf', ], 'php' => [ CreateItemDirectory::class, RegisterCategoryService::class, RegisterNpmPaths::class, RegisterItemPreviewerRegistryService::class, RegisterAssetTreeBuilder::class, SetRolesPermissions::class, ], ], 'update' => taoItems_scripts_update_Updater::class, 'managementRole' => TaoItemsRoles::ITEM_MANAGER, 'acl' => [ [ AccessRule::GRANT, TaoItemsRoles::ITEM_MANAGER, ['ext' => 'taoItems'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_AUTHOR_ABSTRACT, 'taoItems_actions_ItemContent', ], [ AccessRule::GRANT, TaoRoles::DELIVERY, ['ext' => 'taoItems', 'mod' => 'ItemRunner'], ], [ AccessRule::GRANT, TaoRoles::REST_PUBLISHER, ['ext' => 'taoItems', 'mod' => 'RestItems'], ], [ AccessRule::GRANT, TaoRoles::REST_PUBLISHER, ['ext' => 'taoItems', 'mod' => 'RestFormItem'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_CLASS_NAVIGATOR, ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'editClassLabel'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_CLASS_NAVIGATOR, ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'getOntologyData'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_CLASS_NAVIGATOR, ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'index'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_CLASS_CREATOR, ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'addSubClass'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_CLASS_SCHEMA_MANAGER, ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'editItemClass'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_CLASS_SCHEMA_MANAGER, ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'addClassProperty'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_CLASS_SCHEMA_MANAGER, ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'removeClassProperty'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_CLASS_SCHEMA_MANAGER, ['ext' => 'taoItems', 'mod' => 'Category', 'act' => 'getExposedsByClass'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_CLASS_SCHEMA_MANAGER, ['ext' => 'taoItems', 'mod' => 'Category', 'act' => 'setExposed'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_CLASS_SCHEMA_MANAGER, Lists::class . '@getListElements', ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_VIEWER, ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'editItem'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_REPLICATOR, ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'cloneInstance'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_REPLICATOR, ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'copyInstance'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_PREVIEWER, ['ext' => 'taoItems', 'mod' => 'ItemPreview', 'act' => 'index'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_PREVIEWER, ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'files'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_PREVIEWER, ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'download'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_CONTENT_CREATOR, ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'authoring'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_CONTENT_CREATOR, ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'delete'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_CONTENT_CREATOR, ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'fileExists'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_CONTENT_CREATOR, ['ext' => 'taoItems', 'mod' => 'ItemContent', 'act' => 'upload'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_IMPORTER, ['ext' => 'taoItems', 'mod' => 'ItemImport', 'act' => 'index'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_DELETER, ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'deleteItem'], ], [ AccessRule::GRANT, TaoItemsRoles::ITEM_DELETER, ['ext' => 'taoItems', 'mod' => 'Items', 'act' => 'moveInstance'], ], ], 'optimizableClasses' => [ 'http://www.tao.lu/Ontologies/TAOItem.rdf#Item', 'http://www.tao.lu/Ontologies/TAOItem.rdf#ItemModels', 'http://www.tao.lu/Ontologies/TAOItem.rdf#ModelStatus', ], 'constants' => [ # actions directory 'DIR_ACTIONS' => $extpath . 'actions' . DIRECTORY_SEPARATOR, # views directory 'DIR_VIEWS' => $extpath . 'views' . DIRECTORY_SEPARATOR, # default module name 'DEFAULT_MODULE_NAME' => 'Items', #default action name 'DEFAULT_ACTION_NAME' => 'index', #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 . 'taoItems/', ], ];