per chiarire riporto la funzione completa:
function getAllNodes($keepAsArray = false, $aliasFields = true, $addSQL = array())
{
$this->_debugMessage('getAllNodes()');
$sql = sprintf('SELECT %s %s FROM %s %s %s ORDER BY %s.%s, %s.%s ASC',
$this->_getSelectFields($aliasFields),
$this->_addSQL($addSQL, 'cols'),
$this->node_table,
$this->_addSQL($addSQL, 'join'),
$this->_addSQL($addSQL, 'append'),
$this->node_table,
$this->flparams['level'],
$this->node_table,
$this->secondarySort);
if (!$this->_caching) {
$nodeSet = $this->_processResultSet($sql, $keepAsArray, $aliasFields);
} else {
$nodeSet = $this->cache->call('DB_NestedSet->_processResultSet', $sql, $keepAsArray, $aliasFields);
}
// EVENT (nodeLoad)
foreach (array_keys($nodeSet) as $key) {
$this->triggerEvent('nodeLoad', $nodeSet[$key]);
}
return $nodeSet;
}
// }}}
// {{{ getRootNodes()
č il treemenu della pear, nessuno l'ha mai usato?mi interesserebbe ordinare i nodi in modo da ritrovarmi i figli sotto i padri e non i figli in fondo.
grazie.

Rispondi quotando