Lines Matching defs:id

172  *   $opts['showmsg']   shows message if invalid media id is used
199 $info['id'] = pathID($file,true);
200 if($info['id'] != cleanID($info['id'])){
202 msg(hsc($info['id']).' is not a valid file name for DokuWiki - skipped',-1);
207 $info['perm'] = auth_quickaclcheck(getNS($info['id']).':*');
213 if(!empty($opts['pattern']) && !@preg_match($opts['pattern'], $info['id'])){
228 $info['hash'] = md5(io_readFile(mediaFN($info['id']),false));
239 * $opts['showmsg'] shows message if invalid media id is used
265 $id = pathID($file,true);
266 if($id != cleanID($id)){
268 msg(hsc($id).' is not a valid file name for DokuWiki - skipped',-1);
273 $info['perm'] = auth_quickaclcheck(getNS($id).':*');
279 if(!empty($opts['pattern']) && !@preg_match($opts['pattern'], $id)){
283 $data[] = new \dokuwiki\File\MediaFile($id);
308 $id = pathID($file);
309 if(auth_quickaclcheck($id) < AUTH_READ){
312 $data[]['id'] = $id;
343 $id = pathID($file);
344 if(auth_quickaclcheck($id) < AUTH_READ){
347 $data[]['id'] = $id;
389 $item['id'] = pathID($file);
390 if(empty($opts['skipacl']) && auth_quickaclcheck($item['id']) < AUTH_READ){
398 $item['hash'] = md5(trim(rawWiki($item['id'])));
426 return Sort::strcmp($a['id'],$b['id']);
442 $id = utf8_decodeFN($path);
443 $id = str_replace('/',':',$id);
444 if(!$keeptxt) $id = preg_replace('#\.txt$#','',$id);
445 $id = trim($id, ':');
446 return $id;
492 $item['id'] = pathID($file,($type == 'd' || !empty($opts['keeptxt'])));
493 if($item['id'] != cleanID($item['id'])){
495 msg(hsc($item['id']).' is not a valid file name for DokuWiki - skipped',-1);
499 $item['ns'] = getNS($item['id']);
525 $item['perm'] = auth_quickaclcheck($item['id'].':*');
527 $item['perm'] = auth_quickaclcheck($item['id']); //FIXME check namespace for media files
544 if(empty($opts['showhidden']) && isHiddenPage($item['id'])) return $return;
546 if(!empty($opts['idmatch']) && !preg_match('/'.$opts['idmatch'].'/',$item['id'])) return $return;
565 if(!empty($opts['firsthead'])) $item['title'] = p_get_first_heading($item['id'],METADATA_DONT_RENDER);