From 84455052b4f2aa90f12e83a60acd896301512357 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 19 Jun 2021 00:36:30 +0200 Subject: Rename CRUD methods of Attribute class --- core/namespace/Attribute.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/namespace') 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')]); } -- cgit v1.2.3