aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/Attribute.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-19 00:36:30 +0200
committerThomas Lange <code@nerdmind.de>2021-06-19 00:36:30 +0200
commit84455052b4f2aa90f12e83a60acd896301512357 (patch)
treeddad05c0fe864eef1f7b331c65ce833f0aba2fd6 /core/namespace/Attribute.php
parentdbf523c2771aecd8294cc48e0301876f5d2a7a94 (diff)
downloadblog-84455052b4f2aa90f12e83a60acd896301512357.tar.gz
blog-84455052b4f2aa90f12e83a60acd896301512357.tar.xz
blog-84455052b4f2aa90f12e83a60acd896301512357.zip
Rename CRUD methods of Attribute class
Diffstat (limited to 'core/namespace/Attribute.php')
-rw-r--r--core/namespace/Attribute.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/namespace/Attribute.php b/core/namespace/Attribute.php
index ba782ac..c874a57 100644
--- a/core/namespace/Attribute.php
+++ b/core/namespace/Attribute.php
@@ -38,7 +38,7 @@ abstract class Attribute {
#===============================================================================
# Insert database item
#===============================================================================
- public function databaseINSERT(\Database $Database): bool {
+ public function insert(\Database $Database): bool {
$part[0] = '';
$part[1] = '';
@@ -59,7 +59,7 @@ abstract class Attribute {
#===============================================================================
# Update database item
#===============================================================================
- public function databaseUPDATE(\Database $Database): bool {
+ public function update(\Database $Database): bool {
$part = '';
$attributes = $this->getFilteredAttributes();
@@ -77,7 +77,7 @@ abstract class Attribute {
#===============================================================================
# Delete database item
#===============================================================================
- public function databaseDELETE(\Database $Database): bool {
+ public function delete(\Database $Database): bool {
$Statement = $Database->prepare('DELETE FROM '.static::TABLE.' WHERE id = ?');
return $Statement->execute([$this->get('id')]);
}