iaField::getTreeNodes PHP Method

getTreeNodes() public method

public getTreeNodes ( $condition = '' )
    public function getTreeNodes($condition = '')
    {
        $rows = $this->iaDb->all(iaDb::ALL_COLUMNS_SELECTION, $condition, null, null, 'fields_tree_nodes');
        if ($rows) {
            foreach ($rows as &$node) {
                $node['title'] = iaLanguage::get('field_' . $node['item'] . '_' . $node['field'] . '_' . $node['node_id']);
            }
        }
        return $rows;
    }