'taoRevision', 'label' => 'Data Revision Control', 'description' => 'Allows saving the intermediate state of objects and restoring them', 'license' => 'GPL-2.0', 'author' => 'Open Assessment Technologies SA', 'managementRole' => 'http://www.tao.lu/Ontologies/generis.rdf#taoRevisionManager', 'acl' => [ ['grant', 'http://www.tao.lu/Ontologies/generis.rdf#taoRevisionManager', ['ext' => 'taoRevision']], ['grant', 'http://www.tao.lu/Ontologies/TAOItem.rdf#ItemAuthor', ['controller' => History::class]], ['grant', 'http://www.tao.lu/Ontologies/TAOItem.rdf#TestAuthor', ['controller' => History::class]], [ AccessRule::GRANT, TaoRevisionRoles::REVISION_HISTORY_VIEWER, [ 'ext' => 'taoRevision', 'mod' => 'History', 'act' => 'index' ], ], [ AccessRule::GRANT, TaoRevisionRoles::REVISION_CREATOR, [ 'ext' => 'taoRevision', 'mod' => 'History', 'act' => 'commitResource' ], ], [ AccessRule::GRANT, TaoRevisionRoles::REVISION_MANAGER, [ 'ext' => 'taoRevision', 'mod' => 'History', 'act' => 'restoreRevision' ], ], ], 'install' => [ 'rdf' => [ __DIR__ . '/model/ontology/tao-revision.rdf', ], 'php' => [ SetupRevisions::class, ], ], 'update' => Updater::class, 'routes' => [ '/taoRevision' => 'oat\\taoRevision\\controller', ], 'constants' => [ # views directory 'DIR_VIEWS' => __DIR__ . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR, #BASE URL (usually the domain root) 'BASE_URL' => ROOT_URL . 'taoRevision/', ], 'extra' => [ 'structures' => __DIR__ . DIRECTORY_SEPARATOR . 'controller' . DIRECTORY_SEPARATOR . 'structures.xml', ], ];