/** * Deletes a file. Fails if the file is still referenced from any page in the wiki. * ファイルを削除する * @param string $page ページ名 * @param string $filename ファイル名 */ public function deleteAttachment($page, $filename) { if (!$wiki->isValied() || !$wiki->isEditable()) { return false; } $attach = Factory::Attach($page, $filename); return $attach->delete(); }