web_interface/astpp/system/database/drivers/cubrid/cubrid_driver.php 1 location
|
@@ 725-744 (lines=20) @@
|
722 |
|
* @param string the limit clause |
723 |
|
* @return string |
724 |
|
*/ |
725 |
|
function _delete($table, $where = array(), $like = array(), $limit = FALSE) |
726 |
|
{ |
727 |
|
$conditions = ''; |
728 |
|
|
729 |
|
if (count($where) > 0 OR count($like) > 0) |
730 |
|
{ |
731 |
|
$conditions = "\nWHERE "; |
732 |
|
$conditions .= implode("\n", $this->ar_where); |
733 |
|
|
734 |
|
if (count($where) > 0 && count($like) > 0) |
735 |
|
{ |
736 |
|
$conditions .= " AND "; |
737 |
|
} |
738 |
|
$conditions .= implode("\n", $like); |
739 |
|
} |
740 |
|
|
741 |
|
$limit = ( ! $limit) ? '' : ' LIMIT '.$limit; |
742 |
|
|
743 |
|
return "DELETE FROM ".$table.$conditions.$limit; |
744 |
|
} |
745 |
|
|
746 |
|
// -------------------------------------------------------------------- |
747 |
|
|
web_interface/astpp/system/database/drivers/mssql/mssql_driver.php 1 location
|
@@ 608-627 (lines=20) @@
|
605 |
|
* @param string the limit clause |
606 |
|
* @return string |
607 |
|
*/ |
608 |
|
function _delete($table, $where = array(), $like = array(), $limit = FALSE) |
609 |
|
{ |
610 |
|
$conditions = ''; |
611 |
|
|
612 |
|
if (count($where) > 0 OR count($like) > 0) |
613 |
|
{ |
614 |
|
$conditions = "\nWHERE "; |
615 |
|
$conditions .= implode("\n", $this->ar_where); |
616 |
|
|
617 |
|
if (count($where) > 0 && count($like) > 0) |
618 |
|
{ |
619 |
|
$conditions .= " AND "; |
620 |
|
} |
621 |
|
$conditions .= implode("\n", $like); |
622 |
|
} |
623 |
|
|
624 |
|
$limit = ( ! $limit) ? '' : ' LIMIT '.$limit; |
625 |
|
|
626 |
|
return "DELETE FROM ".$table.$conditions.$limit; |
627 |
|
} |
628 |
|
|
629 |
|
// -------------------------------------------------------------------- |
630 |
|
|
web_interface/astpp/system/database/drivers/mysql/mysql_driver.php 1 location
|
@@ 714-733 (lines=20) @@
|
711 |
|
* @param string the limit clause |
712 |
|
* @return string |
713 |
|
*/ |
714 |
|
function _delete($table, $where = array(), $like = array(), $limit = FALSE) |
715 |
|
{ |
716 |
|
$conditions = ''; |
717 |
|
|
718 |
|
if (count($where) > 0 OR count($like) > 0) |
719 |
|
{ |
720 |
|
$conditions = "\nWHERE "; |
721 |
|
$conditions .= implode("\n", $this->ar_where); |
722 |
|
|
723 |
|
if (count($where) > 0 && count($like) > 0) |
724 |
|
{ |
725 |
|
$conditions .= " AND "; |
726 |
|
} |
727 |
|
$conditions .= implode("\n", $like); |
728 |
|
} |
729 |
|
|
730 |
|
$limit = ( ! $limit) ? '' : ' LIMIT '.$limit; |
731 |
|
|
732 |
|
return "DELETE FROM ".$table.$conditions.$limit; |
733 |
|
} |
734 |
|
|
735 |
|
// -------------------------------------------------------------------- |
736 |
|
|
web_interface/astpp/system/database/drivers/mysqli/mysqli_driver.php 1 location
|
@@ 708-727 (lines=20) @@
|
705 |
|
* @param string the limit clause |
706 |
|
* @return string |
707 |
|
*/ |
708 |
|
function _delete($table, $where = array(), $like = array(), $limit = FALSE) |
709 |
|
{ |
710 |
|
$conditions = ''; |
711 |
|
|
712 |
|
if (count($where) > 0 OR count($like) > 0) |
713 |
|
{ |
714 |
|
$conditions = "\nWHERE "; |
715 |
|
$conditions .= implode("\n", $this->ar_where); |
716 |
|
|
717 |
|
if (count($where) > 0 && count($like) > 0) |
718 |
|
{ |
719 |
|
$conditions .= " AND "; |
720 |
|
} |
721 |
|
$conditions .= implode("\n", $like); |
722 |
|
} |
723 |
|
|
724 |
|
$limit = ( ! $limit) ? '' : ' LIMIT '.$limit; |
725 |
|
|
726 |
|
return "DELETE FROM ".$table.$conditions.$limit; |
727 |
|
} |
728 |
|
|
729 |
|
// -------------------------------------------------------------------- |
730 |
|
|
web_interface/astpp/system/database/drivers/oci8/oci8_driver.php 1 location
|
@@ 739-758 (lines=20) @@
|
736 |
|
* @param string the limit clause |
737 |
|
* @return string |
738 |
|
*/ |
739 |
|
protected function _delete($table, $where = array(), $like = array(), $limit = FALSE) |
740 |
|
{ |
741 |
|
$conditions = ''; |
742 |
|
|
743 |
|
if (count($where) > 0 OR count($like) > 0) |
744 |
|
{ |
745 |
|
$conditions = "\nWHERE "; |
746 |
|
$conditions .= implode("\n", $this->ar_where); |
747 |
|
|
748 |
|
if (count($where) > 0 && count($like) > 0) |
749 |
|
{ |
750 |
|
$conditions .= " AND "; |
751 |
|
} |
752 |
|
$conditions .= implode("\n", $like); |
753 |
|
} |
754 |
|
|
755 |
|
$limit = ( ! $limit) ? '' : ' LIMIT '.$limit; |
756 |
|
|
757 |
|
return "DELETE FROM ".$table.$conditions.$limit; |
758 |
|
} |
759 |
|
|
760 |
|
// -------------------------------------------------------------------- |
761 |
|
|
web_interface/astpp/system/database/drivers/odbc/odbc_driver.php 1 location
|
@@ 578-597 (lines=20) @@
|
575 |
|
* @param string the limit clause |
576 |
|
* @return string |
577 |
|
*/ |
578 |
|
function _delete($table, $where = array(), $like = array(), $limit = FALSE) |
579 |
|
{ |
580 |
|
$conditions = ''; |
581 |
|
|
582 |
|
if (count($where) > 0 OR count($like) > 0) |
583 |
|
{ |
584 |
|
$conditions = "\nWHERE "; |
585 |
|
$conditions .= implode("\n", $this->ar_where); |
586 |
|
|
587 |
|
if (count($where) > 0 && count($like) > 0) |
588 |
|
{ |
589 |
|
$conditions .= " AND "; |
590 |
|
} |
591 |
|
$conditions .= implode("\n", $like); |
592 |
|
} |
593 |
|
|
594 |
|
$limit = ( ! $limit) ? '' : ' LIMIT '.$limit; |
595 |
|
|
596 |
|
return "DELETE FROM ".$table.$conditions.$limit; |
597 |
|
} |
598 |
|
|
599 |
|
// -------------------------------------------------------------------- |
600 |
|
|
web_interface/astpp/system/database/drivers/pdo/pdo_driver.php 1 location
|
@@ 718-737 (lines=20) @@
|
715 |
|
* @param string the limit clause |
716 |
|
* @return string |
717 |
|
*/ |
718 |
|
function _delete($table, $where = array(), $like = array(), $limit = FALSE) |
719 |
|
{ |
720 |
|
$conditions = ''; |
721 |
|
|
722 |
|
if (count($where) > 0 OR count($like) > 0) |
723 |
|
{ |
724 |
|
$conditions = "\nWHERE "; |
725 |
|
$conditions .= implode("\n", $this->ar_where); |
726 |
|
|
727 |
|
if (count($where) > 0 && count($like) > 0) |
728 |
|
{ |
729 |
|
$conditions .= " AND "; |
730 |
|
} |
731 |
|
$conditions .= implode("\n", $like); |
732 |
|
} |
733 |
|
|
734 |
|
$limit = ( ! $limit) ? '' : ' LIMIT '.$limit; |
735 |
|
|
736 |
|
return "DELETE FROM ".$table.$conditions.$limit; |
737 |
|
} |
738 |
|
|
739 |
|
// -------------------------------------------------------------------- |
740 |
|
|
web_interface/astpp/system/database/drivers/postgre/postgre_driver.php 1 location
|
@@ 640-659 (lines=20) @@
|
637 |
|
* @param string the limit clause |
638 |
|
* @return string |
639 |
|
*/ |
640 |
|
function _delete($table, $where = array(), $like = array(), $limit = FALSE) |
641 |
|
{ |
642 |
|
$conditions = ''; |
643 |
|
|
644 |
|
if (count($where) > 0 OR count($like) > 0) |
645 |
|
{ |
646 |
|
$conditions = "\nWHERE "; |
647 |
|
$conditions .= implode("\n", $this->ar_where); |
648 |
|
|
649 |
|
if (count($where) > 0 && count($like) > 0) |
650 |
|
{ |
651 |
|
$conditions .= " AND "; |
652 |
|
} |
653 |
|
$conditions .= implode("\n", $like); |
654 |
|
} |
655 |
|
|
656 |
|
$limit = ( ! $limit) ? '' : ' LIMIT '.$limit; |
657 |
|
|
658 |
|
return "DELETE FROM ".$table.$conditions.$limit; |
659 |
|
} |
660 |
|
|
661 |
|
// -------------------------------------------------------------------- |
662 |
|
/** |
web_interface/astpp/system/database/drivers/sqlite/sqlite_driver.php 1 location
|
@@ 592-611 (lines=20) @@
|
589 |
|
* @param string the limit clause |
590 |
|
* @return string |
591 |
|
*/ |
592 |
|
function _delete($table, $where = array(), $like = array(), $limit = FALSE) |
593 |
|
{ |
594 |
|
$conditions = ''; |
595 |
|
|
596 |
|
if (count($where) > 0 OR count($like) > 0) |
597 |
|
{ |
598 |
|
$conditions = "\nWHERE "; |
599 |
|
$conditions .= implode("\n", $this->ar_where); |
600 |
|
|
601 |
|
if (count($where) > 0 && count($like) > 0) |
602 |
|
{ |
603 |
|
$conditions .= " AND "; |
604 |
|
} |
605 |
|
$conditions .= implode("\n", $like); |
606 |
|
} |
607 |
|
|
608 |
|
$limit = ( ! $limit) ? '' : ' LIMIT '.$limit; |
609 |
|
|
610 |
|
return "DELETE FROM ".$table.$conditions.$limit; |
611 |
|
} |
612 |
|
|
613 |
|
// -------------------------------------------------------------------- |
614 |
|
|