Page 1 of 1

Get folder structure

PostPosted:Fri Aug 03, 2012 6:34 am
by shaardu
Hi,

I tried getting folder structure to be written in a txt file but it is not that accurate or proper. Can anyone tel me which is the easiest way to get entire folder structure at runtime? I couldnt find folderarray[] class in5.1.10....what is the solution? thanks

Re: Get folder structure

PostPosted:Sat Aug 04, 2012 8:19 pm
by jllort
For what I understand you want some type of report ( in txt file ) to show all folder hicheracy, is that ?

Re: Get folder structure

PostPosted:Mon Aug 06, 2012 4:51 am
by shaardu
exactly!!! please help me

Re: Get folder structure

PostPosted:Tue Aug 07, 2012 7:18 am
by jllort
You need some java skill for doing it. The more simply way will be create some script http://wiki.openkm.com/index.php/Scripting

And here are some classes you should use http://doxygen.openkm.com/5.1.x/d9/d6d/ ... _1api.html really you should be interested on http://doxygen.openkm.com/5.1.x/d0/dd8/ ... older.html and with method getchilds http://doxygen.openkm.com/5.1.x/d0/dd8/ ... a0bf6ecd02

The logic will be Get okm:root childs OKMFolder.getInstance().getChilds(token, "/okm:root") and for each child execute the method recursively

Re: Get folder structure

PostPosted:Wed Aug 08, 2012 4:00 pm
by shaardu
Thanks for this but I found another way! I finished last week...thanks a lot..

Re: Get folder structure

PostPosted:Mon Aug 27, 2012 5:21 am
by pavila
Please, share the "other way" because some forum user would benefit it.

Re: Get folder structure

PostPosted:Thu Apr 10, 2014 2:18 pm
by diegom
Can any one share on how to get folder structure in php ?

Re: Get folder structure

PostPosted:Fri Apr 11, 2014 10:24 am
by jllort
take a look
http://wiki.openkm.com/index.php/PHP_cl ... OpenKM_6.2
and ( I think this has some method already implemented for it, or can give you some ideas )
http://code.google.com/p/openkm-php-cla ... .class.php