diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-28 18:19:15 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-28 18:19:15 -0400 |
commit | 936376ffe74c583d3cb819e98f53a85137fdf8bc (patch) | |
tree | d4a0fe65d34d21d898bf36818e8c1f4ba1846ffa /app/Model/Base.php | |
parent | e6235afb2d17baf31b6f6d67a0a51ac51243b909 (diff) |
Remove model base class
Diffstat (limited to 'app/Model/Base.php')
-rw-r--r-- | app/Model/Base.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/app/Model/Base.php b/app/Model/Base.php deleted file mode 100644 index a27560c8..00000000 --- a/app/Model/Base.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php - -namespace Kanboard\Model; - -use PicoDb\Database; - -/** - * Base model class - * - * @package model - * @author Frederic Guillot - */ -abstract class Base extends \Kanboard\Core\Base -{ - /** - * Save a record in the database - * - * @access public - * @param string $table Table name - * @param array $values Form values - * @return boolean|integer - */ - public function persist($table, array $values) - { - return $this->db->transaction(function (Database $db) use ($table, $values) { - - if (! $db->table($table)->save($values)) { - return false; - } - - return (int) $db->getLastId(); - }); - } -} |