_rows[$this->_internal_row++] = (array)$r; // Is this an DSMADMC result? } elseif (is_array($result)) foreach ($result as $line) { if (! trim($line)) { if ($start) $this->_internal_row++; continue; } list($k,$v) = explode(':',$line,2); $this->_rows[$this->_internal_row][trim($k)] = trim($v); $start = TRUE; } else throw new Kohana_Exception('Unknown result :result',array(':result'=>$result)); $this->_total_rows = $this->_internal_row; $this->_internal_row = 0; } } ?>