/** * Constructs a new form view * @param string $template Path to the template for this view * @param zibo\library\html\form\Form $form Form to display * @param string $path Path of the current directory or file * @return null */ public function __construct($template, Form $form, $path) { parent::__construct($template); $this->set('form', $form); $this->set('path', $path); }
/** * Constructs a new browser view * @param zibo\filebrowser\table\BrowserTable $browserTable Table with the contents of the current directory * @param string $createDirectoryAction URL to the action to create a new directory * @param string $createFileAction URL to the action to create a new file * @return null */ public function __construct(BrowserTable $browserTable) { parent::__construct(self::TEMPLATE); $this->set('browser', $browserTable); $this->addJavascript(self::SCRIPT_TABLE); }