Ejemplo n.º 1
0
 public function add()
 {
     $res = BixMigTable::add(array('CODE' => $this->code, 'STATUS' => $this->status, 'CHANGE_DATE' => new Type\DateTime($this->change_date, 'd.m.Y H:i:s'), 'ADD_DATE' => new Type\DateTime($this->add_date, 'd.m.Y H:i:s')));
     if (!$res->isSuccess()) {
         // TODO - dunno what to do
         //foreach ($res->getErrors() as $error) {}
     }
 }
Ejemplo n.º 2
0
 public function getMigrationById($id)
 {
     $result = array();
     if (0 < (int) $id) {
         $result = BixMigTable::getById($id)->Fetch();
     }
     return $result;
 }