diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-01-12 15:52:55 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-01-12 19:51:41 +0100 |
commit | 36d878ac00f4df0a4ff54e2ea8355b323f0a87f3 (patch) | |
tree | 7f0cc2f2337764618ab43f6cd59e49f4c1ac9c89 /app/class/dbitem.php | |
parent | 393709dcf84776c760146722560816172167fe98 (diff) | |
download | wcms-36d878ac00f4df0a4ff54e2ea8355b323f0a87f3.tar.gz wcms-36d878ac00f4df0a4ff54e2ea8355b323f0a87f3.zip |
add timeline class and event class
Diffstat (limited to 'app/class/dbitem.php')
-rw-r--r-- | app/class/dbitem.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/class/dbitem.php b/app/class/dbitem.php new file mode 100644 index 0000000..ff41d6f --- /dev/null +++ b/app/class/dbitem.php @@ -0,0 +1,19 @@ +<?php + +class Dbitem +{ + public function hydrate(array $datas) + { + foreach ($datas as $key => $value) { + $method = 'set' . $key; + + if (method_exists($this, $method)) { + $this->$method($value); + } + } + + } +} + + +?>
\ No newline at end of file |