Lines Matching +full:delete +full:- +full:user -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)

15 use dokuwiki\Remote\Response\User;
35 'core.getAPIVersion' => (new ApiCall([$this, 'getAPIVersion'], 'info'))->setPublic(),
38 'core.getWikiTitle' => (new ApiCall([$this, 'getWikiTitle'], 'info'))->setPublic(),
41 'core.login' => (new ApiCall([$this, 'login'], 'user'))->setPublic(),
42 'core.logoff' => new ApiCall([$this, 'logoff'], 'user'),
43 'core.whoAmI' => (new ApiCall([$this, 'whoAmI'], 'user')),
44 'core.aclCheck' => new ApiCall([$this, 'aclCheck'], 'user'),
106 * Returns a Unix timestamp (seconds since 1970-01-01 00:00:00 UTC).
120 // region user
125 * This will use the given credentials and attempt to login the user. This will set the
130 * @param string $user The user name
134 public function login($user, $pass)
145 if ($auth->canDo('external')) {
146 $ok = $auth->trustExternal($user, $pass, false);
150 'user' => $user,
165 * Attempt to log out the current user, deleting the appropriate cookies
184 * Info about the currently authenticated user
186 * @return User
190 return new User();
196 * This call allows to check the permissions for a given page/media and user/group combination.
197 * If no user/group is given, the current user is used.
203 * @param string $user username
208 public function aclCheck($page, $user = '', $groups = [])
213 $page = $this->checkPage($page, 0, false, AUTH_NONE);
215 if ($user === '') {
219 $userinfo = $auth->getUserData($user);
226 return auth_aclcheck($page, $user, $groups);
255 return $this->getAllPages($hash);
293 $pages = idx_get_indexer()->getPages();
303 if ($hash) $page->calculateHash();
363 * @author Michael Hamann <michael@content-space.de>
374 $recent['user'],
390 * A non-existing page (or revision) will return an empty string usually. For the current revision
403 $page = $this->checkPage($page, $rev, false);
432 $page = $this->checkPage($page, $rev);
454 $page = $this->checkPage($page, $rev);
457 if ($author) $result->retrieveAuthor();
458 if ($hash) $result->calculateHash();
481 $page = $this->checkPage($page, 0, false);
484 $pagelog->setChunkSize(1024);
486 $revisions = $pagelog->getRevisions($first - 1, $conf['recent']);
490 if (!page_exists($page, $rev)) continue; // skip non-existing revisions
491 $info = $pagelog->getRevisionInfo($rev);
496 $info['user'],
527 $page = $this->checkPage($page);
532 // instantiate new Renderer - needed for interwiki links
534 $Renderer->interwiki = getInterwiki();
547 $url = $Renderer->_resolveInterWiki($in[1][2], $in[1][3]);
561 * Only links from pages readable by the current user are returned. The page itself
571 $page = $this->checkPage($page, 0, false);
580 * successfully locked. If a page could not be locked, eg. because a different user is
616 * successfully unlocked. If a page could not be unlocked, eg. because a different user is
647 * Just like in the wiki, saving an empty text will delete the page.
649 * You need write permissions for the given page and the page may not be locked by another user.
665 $page = $this->checkPage($page, 0, false, AUTH_EDIT);
708 * If the page does not exist, it will be created. If a page template for the non-existant
725 $currentpage = $this->getPage($page);
729 return $this->savePage($page, $currentpage . $text, $summary, $isminor);
793 * @author Michael Hamann <michael@content-space.de>
805 $recent['user'],
873 if ($hash) $info->calculateHash();
874 if ($author) $info->retrieveAuthor();
932 '-' => '+', // RFC4648 base64url
962 * You need to have delete permissions for the file.
980 throw new AccessDeniedException('You are not allowed to delete this media file', 212);
984 throw new RemoteException('The media file requested to delete does not exist', 221);
986 throw new RemoteException('Failed to delete media file', 233);
998 * - clean the given page id
999 * - disallow an empty page id
1000 * - check if the page exists (unless disabled)
1001 * - check if the user has the required access level (pass AUTH_NONE to skip)