Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
X Lib
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
XLibs
X Lib
Commits
052332a0
Commit
052332a0
authored
Sep 14, 2016
by
Alex Ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ функция: Удаление записей
parent
e2c24452
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
PDO.php
Database/Driver/PDO.php
+12
-0
No files found.
Database/Driver/PDO.php
View file @
052332a0
...
@@ -217,6 +217,18 @@ class PDO {
...
@@ -217,6 +217,18 @@ class PDO {
return
$statement
->
execute
();
return
$statement
->
execute
();
}
}
/**
* @param $table
* @param $where
*/
public
function
delete
(
$table
,
$where
)
{
$whete_obj
=
new
PDOWhereConstructor
(
$where
);
$SQL
=
"DELETE FROM `
{
$table
}
`
{
$whete_obj
->
get_sql
()
}
"
;
$statement
=
$this
->
prepare
(
$SQL
);
$whete_obj
->
bind
(
$statement
);
return
$statement
->
execute
();
}
/**
/**
* @param $table
* @param $table
* @param array $where
* @param array $where
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment