Пример #1
0
 /**
  * Get movement
  *
  * @param CMbObject $object Object
  *
  * @return void
  */
 function getMovement(CMbObject $object)
 {
     if ($object instanceof CSejour) {
         $this->sejour_id = $object->_id;
     }
     if ($object instanceof CAffectation) {
         $sejour = $object->loadRefSejour();
         $this->sejour_id = $sejour->_id;
         $this->affectation_id = $object->_id;
     }
     $this->movement_type = $object->getMovementType();
     $this->loadMatchingObject();
 }