<?php
namespace Modules\Documents\FileExplorer;
// TODO: move to Admin/Documents

class Controller extends \ModulesAbstract\FileExplorer\Controller
{

	/**
	 * The directory where this module will work in
	 * @var string
	 */
	protected $rootDirectory = "../files/uploadedImages/";


	/**
	 * (non-PHPdoc)
	 * @see \ModulesAbstract\FileExplorer\Controller::initialize()
	 */
	protected function initialize()
	{
		parent::initialize();

		$this->actionsCfg['addDirectory'] =        ['checkOption' => 'Modules/Documents/FileExplorer-addRenameDelete',];
		$this->actionsCfg['renameDirectory'] =     ['checkOption' => 'Modules/Documents/FileExplorer-addRenameDelete',];
		$this->actionsCfg['addFile'] =             ['checkOption' => 'Modules/Documents/FileExplorer-addRenameDelete',];
		$this->actionsCfg['renameFile'] =          ['checkOption' => 'Modules/Documents/FileExplorer-addRenameDelete',];
		$this->actionsCfg['delete'] =              ['checkOption' => 'Modules/Documents/FileExplorer-addRenameDelete',];
		$this->actionsCfg['download'] =            ['checkOption' => 'Modules/Documents/FileExplorer-download',];
		$this->actionsCfg['previewFile'] =         [];
	}

}
