Lines Matching refs:id
98 public function rawPage($id,$rev=''){ argument
99 if(auth_quickaclcheck($id) < AUTH_READ){
102 $text = rawWiki($id,$rev);
104 $data = array($id);
124 public function getAttachment($id){ argument
125 $id = cleanID($id);
126 if (auth_quickaclcheck(getNS($id).':*') < AUTH_READ)
129 $file = mediaFN($id);
138 public function getAttachmentInfo($id){ argument
139 $id = cleanID($id);
145 $file = mediaFN($id);
146 if ((auth_quickaclcheck(getNS($id).':*') >= AUTH_READ) && file_exists($file)){
154 public function htmlPage($id,$rev=''){ argument
155 if(auth_quickaclcheck($id) < AUTH_READ){
158 return p_wiki_xhtml($id,$rev,false);
161 public function htmlPagePart($id,$rev='',$maxHeader=3,$maxItems=3){ argument
162 if(auth_quickaclcheck($id) < AUTH_READ){
167 return p_wiki_xhtml_summary_ext($id,$title,$rev,true,$cfg);
249 foreach($data as $id)
251 $ns = getNS($id);
253 $name = shorten(noNS($id), ' ('.$ns.')',30);
255 $name = $id;
257 $result[] = $id;
263 foreach($data as $id => $cnt)
265 $result[] = $id;
271 public function listBackLinks($id){ argument
273 return ft_backlinks($id);
276 public function pageInfo($id,$rev=''){ argument
277 if(auth_quickaclcheck($id) < AUTH_READ){
280 $file = wikiFN($id,$rev);
286 $info = getRevisionInfo($id, $time, 1024);
289 'name' => $id,
298 public function putPage($id, $text, $params) { argument
303 $id = cleanID($id);
308 if(empty($id))
311 if(!page_exists($id) && trim($TEXT) == '' ) {
315 if(auth_quickaclcheck($id) < AUTH_EDIT)
318 if(checklock($id))
324 if(!page_exists($id) && empty($sum)) {
328 if(page_exists($id) && empty($TEXT) && empty($sum)) {
332 lock($id);
334 saveWikiText($id,$TEXT,$sum,$minor);
336 unlock($id);
339 if(!@file_exists(metaFN($id, '.indexed'))) {
359 idx_addPage($id);
361 io_saveFile(metaFN($id,'.indexed'),INDEXER_VERSION);
368 public function putAttachment($id, $file, $params) { argument
372 $auth = auth_quickaclcheck(getNS($id).':*');
374 if(!isset($id)) {
378 $ftmp = $conf['tmpdir'] . '/' . $id;
386 list($iext, $imime,$dl) = mimetype($id);
387 $id = cleanID($id);
388 $fn = mediaFN($id);
416 $data[2] = $id;
432 public function deleteAttachment($id){ argument
433 $auth = auth_quickaclcheck(getNS($id).':*');
442 $mediareferences = ft_mediause($id,$conf['refshow']);
446 $file = mediaFN($id);
449 addMediaLogEntry(time(), $id, DOKU_CHANGE_TYPE_DELETE);
450 io_sweepNS($id,'mediadir');
484 public function aclCheck($id) { argument
485 return auth_quickaclcheck($id);
488 public function listLinks($id) { argument
489 if(auth_quickaclcheck($id) < AUTH_READ){
495 $ins = p_cached_instructions(wikiFN(cleanID($id)));
591 public function pageVersions($id, $first,$num=null) { argument
596 if(empty($id))
605 $revisions = getRevisions($id, $first, $num+1);
609 $revisions = getRevisions($id, $first, $num+1);
625 $file = wikiFN($id,$rev);
631 $info = getRevisionInfo($id, $time, 1024);
655 foreach($set['lock'] as $id){
656 if(checklock($id)){
657 $lockfail[] = $id;
659 lock($id);
660 $locked[] = $id;
664 foreach($set['unlock'] as $id){
665 if(unlock($id)){
666 $unlocked[] = $id;
668 $unlockfail[] = $id;