@@ 653-657 (lines=5) @@ | ||
650 | if (isset($this->tables[$table])) { |
|
651 | $tableDef = &$this->tables[$table]; |
|
652 | $where = ''; |
|
653 | if (is_scalar($criteria)) { |
|
654 | $where = 'WHERE '.$criteria; |
|
655 | } elseif (is_object($criteria)) { |
|
656 | $where = $criteria->renderWhere(); |
|
657 | } |
|
658 | $this->queue[]="DELETE FROM `{$tableDef['name']}` {$where}"; |
|
659 | } else { // no table established |
|
660 | $this->lastError = _DB_XMF_TABLE_IS_NOT_DEFINED; |
|
@@ 715-719 (lines=5) @@ | ||
712 | if (isset($this->tables[$table])) { |
|
713 | $tableDef = &$this->tables[$table]; |
|
714 | $where = ''; |
|
715 | if (is_scalar($criteria)) { |
|
716 | $where = 'WHERE '.$criteria; |
|
717 | } elseif (is_object($criteria)) { |
|
718 | $where = $criteria->renderWhere(); |
|
719 | } |
|
720 | $colSql = ''; |
|
721 | foreach ($tableDef['columns'] as $col) { |
|
722 | $comma=empty($colSql)?'':', '; |