connectorAction.php 601 B

12345678910111213141516171819202122232425
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. require_once '../../global.inc.php';
  4. use Chamilo\CoreBundle\Component\Editor\Connector;
  5. use Chamilo\CoreBundle\Component\Editor\Finder;
  6. error_reporting(-1);
  7. /** @var Connector $connector */
  8. $connector = new Connector();
  9. $driverList = array(
  10. 'PersonalDriver',
  11. 'CourseDriver',
  12. //'CourseUserDriver',
  13. //'HomeDriver'
  14. );
  15. $connector->setDriverList($driverList);
  16. $operations = $connector->getOperations();
  17. // Run elFinder
  18. $finder = new Finder($operations);
  19. $elFinderConnector = new \elFinderConnector($finder);
  20. $elFinderConnector->run();