private function populate(array $row)
 {
     $x = new Feeding();
     $x->setId($row['id']);
     $x->setBreastLeft($row['breast_left']);
     $x->setBreastRight($row['breast_right']);
     $x->setMilking($row['milking']);
     $x->setPee($row['pee']);
     $x->setPoo($row['poo']);
     $x->setDateTime(new DateTime($row['date_time']));
     $x->setStatus($row['status']);
     if (!empty($row['bottle'])) {
         $bottle = new Bottle(Bottle::TYPE_MILK, 0);
         $bottle->decode($row['bottle']);
         $x->setBottle($bottle);
     }
     return $x;
 }
示例#2
0
 function PressurizedBottle($id)
 {
     Bottle::Bottle($id);
 }
示例#3
0
 public function __construct()
 {
     parent::__construct(90);
 }