aboutsummaryrefslogtreecommitdiff
path: root/app/class/dbitem.php
blob: ff41d6fed5060af061b40f83b8b040b7bf67bb5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
            }
        }

    }
}


?>