
 Milind More - 2012-01-17 09:31:36
As we are taking $idField in function 
public function __construct($host, $userName, $password, $dbName, $tableName, $idField, $titleField, $parentIdField,$prefix)
.....
...
..
. 
and passing and default primary key 'id'
         $this->queryArray[$row['id']] = array(
            'id' => $row[$idField], 
            'title' => $row[$titleField], 
            'parent_id' => $row[$parentIdField]
          );
        }
    }
so it should be like
         $this->queryArray[$row[$idField]] = array(
            'id' => $row[$idField], 
            'title' => $row[$titleField], 
            'parent_id' => $row[$parentIdField]
          );
        }
    }
Rest Work Fine for Me thanks for your efforts please give example so other dump pepole can understand this code