| @@ 1894-1903 (lines=10) @@ | ||
| 1891 | * @return int the number of rows deleted |
|
| 1892 | * @throws EE_Error |
|
| 1893 | */ |
|
| 1894 | public function delete_permanently_by_ID($id, $allow_blocking = true) |
|
| 1895 | { |
|
| 1896 | return $this->delete_permanently( |
|
| 1897 | array( |
|
| 1898 | array($this->get_primary_key_field()->get_name() => $id), |
|
| 1899 | 'limit' => 1, |
|
| 1900 | ), |
|
| 1901 | $allow_blocking |
|
| 1902 | ); |
|
| 1903 | } |
|
| 1904 | ||
| 1905 | ||
| 1906 | ||
| @@ 1916-1925 (lines=10) @@ | ||
| 1913 | * @return int the number of rows deleted |
|
| 1914 | * @throws EE_Error |
|
| 1915 | */ |
|
| 1916 | public function delete_by_ID($id, $allow_blocking = true) |
|
| 1917 | { |
|
| 1918 | return $this->delete( |
|
| 1919 | array( |
|
| 1920 | array($this->get_primary_key_field()->get_name() => $id), |
|
| 1921 | 'limit' => 1, |
|
| 1922 | ), |
|
| 1923 | $allow_blocking |
|
| 1924 | ); |
|
| 1925 | } |
|
| 1926 | ||
| 1927 | ||
| 1928 | ||