/** * Constructs a new rename action decorator * @param string $action The URL to the rename action * @return null */ public function __construct($action) { parent::__construct($action, self::TRANSLATION_RENAME); }
/** * Constructs a new edit action decorator * @param string $action The URL to the edit action * @param zibo\filebrowser\model\FileBrowser $fileBrowser The file browser * @param array $extensions Array with extensions which are allowed to be edited * @return null */ public function __construct($action, FileBrowser $fileBrowser, array $extensions = array('txt' => 'txt')) { parent::__construct($action, self::TRANSLATION_EDIT); $this->fileBrowser = $fileBrowser; $this->extensions = $extensions; }