¡@

Home 

php Programming Glossary: currnode

Getting a modified preorder tree traversal model (nested set) into a <ul>

http://stackoverflow.com/questions/1310649/getting-a-modified-preorder-tree-traversal-model-nested-set-into-a-ul

'' currDepth 1 1 to get the outer ul while empty tree currNode array_shift tree Level down if currNode 'depth' currDepth Yes.. while empty tree currNode array_shift tree Level down if currNode 'depth' currDepth Yes open ul result . ' ul ' Level up if currNode.. 'depth' currDepth Yes open ul result . ' ul ' Level up if currNode 'depth' currDepth Yes close n open ul result . str_repeat '..

How to create an array from this result set (nested categories stored in databased with traversal model)?

http://stackoverflow.com/questions/3668702/how-to-create-an-array-from-this-result-set-nested-categories-stored-in-databas

'' currDepth 1 1 to get the outer ul while empty tree currNode array_shift tree Level down if currNode 'depth' currDepth Yes.. while empty tree currNode array_shift tree Level down if currNode 'depth' currDepth Yes open ul result . ' ul ' Level up if currNode.. 'depth' currDepth Yes open ul result . ' ul ' Level up if currNode 'depth' currDepth Yes close n open ul result . str_repeat '..