1<?php 2 3/** 4 * DokuWiki WebDAV Plugin - Pages File Type 5 * 6 * @link https://dokuwiki.org/plugin:webdav 7 * @author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com> 8 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 9 */ 10 11namespace dokuwiki\plugin\webdav\core\DAV\Collection\Pages; 12 13use dokuwiki\plugin\webdav\core\DAV\AbstractFile; 14use dokuwiki\plugin\webdav\core\Utils; 15 16class File extends AbstractFile 17{ 18 public function delete() 19 { 20 Utils::log('debug', "Delete page"); 21 Utils::saveWikiText($this->info['id'], null, 'delete'); 22 } 23 24 public function put($data) 25 { 26 Utils::log('debug', "Edit page"); 27 Utils::saveWikiText($this->info['id'], Utils::streamReader($data), 'edit'); 28 } 29} 30