private function runLoadFormAction() { $this->dbData = EPL\NWDatabase::Instance(); if ($this->dbData->getStatus()) { $this->dbData->selectTable('products'); if ($this->dbData->getQryStatus()) { $this->dbData->column(array('ProductId', 'ProductName')); $this->aoProdList = $this->dbData->getRecordSet(); return true; } } $this->sError = $this->dbData->getError(); return false; }
private function runDefaultAction() { $this->dbData = EPL\NWDatabase::Instance(); if ($this->dbData->getStatus()) { $this->dbData->selectTable('products'); if ($this->dbData->getQryStatus()) { // while ($oRecord = $this->dbData->getRecord()) { // $this->aoData[] = $oRecord; // } $this->dbData->column(array('ProductName', 'QuantityPerUnit', 'UnitPrice')); $this->aoData = $this->dbData->getRecordSet(); return true; } } $this->sError = $this->dbData->getError(); return false; }