Lines Matching refs:page_id
36 * @param string $page_id Absolute id of the wiki page.
45 public function get($page_id, $path = '', $addLog = false) { argument
49 $src = $json_o->parse_src($page_id);
51 $response['status'] = sprintf($this->getLang('wrong_pageId'), $page_id);
53 else if (!page_exists($page_id)) {
54 $response['status'] = sprintf($this->getLang('file_not_found'), $page_id);
57 else if(auth_quickaclcheck($page_id) < AUTH_READ) {
58 $response['status'] = sprintf($this->getLang('permision_denied_read'), $page_id);
95 * @param string $page_id Absolute id of the wiki page.
102 public function set($page_id, $json_id, $data, $overwrite = false) { argument
105 if(!page_exists($page_id)) {
106 $err = sprintf($this->getLang('file_not_found'), $page_id);
109 else if(auth_quickaclcheck($page_id) < AUTH_EDIT) {
110 $err = sprintf($this->getLang('permision_denied_write'), $page_id);
130 if(checklock($page_id)) {
131 $err = sprintf($this->getLang('file_locked'), $page_id);
134 lock($page_id);
141 $file = rawWiki($page_id);
143 $err = sprintf($this->getLang('file_not_found'), $page_id);
185 …saveWikiText($page_id, $file_updated, sprintf($this->getLang('json_updated_remote'), $json_id), tr…
191 unlock($page_id);
203 * @param string $page_id Absolute id of the wiki page.
210 public function append($page_id, $json_id, $data) { argument
213 if(!page_exists($page_id) && $json_id) {
214 $err = sprintf($this->getLang('file_not_found'), $page_id);
217 else if(auth_quickaclcheck($page_id) < AUTH_EDIT) {
218 $err = sprintf($this->getLang('permision_denied_write'), $page_id);
241 if(checklock($page_id)) {
242 $err = sprintf($this->getLang('file_locked'), $page_id);
245 lock($page_id);
252 $file = rawWiki($page_id);
255 $err = sprintf($this->getLang('file_not_found'), $page_id);
318 $err = sprintf($this->getLang('not_array_file'), $page_id);
325 …saveWikiText($page_id, $file_updated, sprintf($this->getLang('json_added_remote'), $json_id), true…
331 unlock($page_id);