Initial node display

This commit is contained in:
Deon George
2011-04-07 15:03:05 +10:00
parent 6d858a982a
commit d053493eeb
11 changed files with 485 additions and 8 deletions

View File

@@ -19,15 +19,19 @@ class Database_TSM_Result extends Database_Result {
{
parent::__construct($result, $sql, $as_object, $params);
$start = FALSE;
foreach ($result as $line) {
if (! trim($line)) {
$this->_internal_row++;
if ($start)
$this->_internal_row++;
continue;
}
list($k,$v) = explode(':',$line,2);
$this->_rows[$this->_internal_row][trim($k)] = trim($v);
$start = TRUE;
}
$this->_total_rows = $this->_internal_row;