Lines Matching refs:subpath
85 protected static function _get_page_data(string $subpath, string $name) : array argument
89 $path = sprintf('%s%s/%s.lightmenu.json',$conf['metadir'],$subpath,$name);
100 protected static function _set_page_data(string $subpath, array &$data) argument
104 $path = sprintf('%s%s.lightmenu.json',$conf['metadir'],'/'.ltrim($subpath,'/'));
145 protected static function _browse(string $subpath = '', string $sort_criteria = '') : array argument
151 $path = $conf['datadir'].$subpath;
159 [$is_page,$id,$data] = self::_get_page_data($subpath,$name);
161 $tree[] = [$id,$data,self::_browse($subpath.'/'.$name,$data['_sort'] ?? $sort_criteria)];
301 protected static function _rescan(string $subpath = '') argument
305 $path = $conf['datadir'].$subpath;
311 if (($subpath === '') && ($name === $conf['sidebar'].'.txt'))
314 [$is_page,$id,$data] = self::_get_page_data($subpath,$name);
316 self::_rescan($subpath.'/'.$name);
323 if ((($id === $conf['start']) && ($subpath !== '')) || ($id === basename($path)))
324 self::_set_page_data($subpath,$data);
326 self::_set_page_data($subpath.'/'.$id,$data);
328 self::_set_page_data($subpath.'/'.$name,$data);