Code Duplication    Length = 9-10 lines in 5 locations

include/form.hotel.city.php 1 location

@@ 24-32 (lines=9) @@
21
     * form_hotel_city constructor.
22
     * @param $HotelCityObj
23
     */
24
    public function __construct(&$HotelCityObj)
25
    {
26
        $this->Obj = &$HotelCityObj;
27
        parent::__construct(_AM_MARTIN_HOTEL_CITY, "op", xoops_getenv('PHP_SELF') . "?action=save");
28
        $this->setExtra('enctype="multipart/form-data"');
29
30
        $this->createElements();
31
        $this->createButtons();
32
    }
33
34
    /**
35
     * created elements

include/form.hotel.promotion.php 1 location

@@ 25-34 (lines=10) @@
22
     * @param $HotelPromotionObj
23
     * @param $HotelList
24
     */
25
    public function __construct(&$HotelPromotionObj, &$HotelList)
26
    {
27
        $this->Obj       = &$HotelPromotionObj;
28
        $this->HotelList = &$HotelList;
29
        parent::__construct(_AM_MARTIN_HOTEL_CITY_LIST, "op", xoops_getenv('PHP_SELF') . "?action=save");
30
        $this->setExtra('enctype="multipart/form-data"');
31
32
        $this->createElements();
33
        $this->createButtons();
34
    }
35
36
    /**
37
     * created elements

include/form.hotel.service.php 1 location

@@ 25-34 (lines=10) @@
22
     * @param $HotelServiceObj
23
     * @param $TypeList
24
     */
25
    public function __construct(&$HotelServiceObj, &$TypeList)
26
    {
27
        $this->Obj      = &$HotelServiceObj;
28
        $this->TypeList = &$TypeList;
29
        parent::__construct(_AM_MARTIN_HOTEL_SERVICE, "op", xoops_getenv('PHP_SELF') . "?action=save");
30
        $this->setExtra('enctype="multipart/form-data"');
31
32
        $this->createElements();
33
        $this->createButtons();
34
    }
35
36
    /**
37
     * created elements

include/form.hotel.service.type.php 1 location

@@ 24-32 (lines=9) @@
21
     * form_hotel_service_type constructor.
22
     * @param $HotelServiceTypeObj
23
     */
24
    public function __construct(&$HotelServiceTypeObj)
25
    {
26
        $this->Obj = &$HotelServiceTypeObj;
27
        parent::__construct(_AM_MARTIN_SERVICE_CATEGORY, "op", xoops_getenv('PHP_SELF') . "?action=typesave");
28
        $this->setExtra('enctype="multipart/form-data"');
29
30
        $this->createElements();
31
        $this->createButtons();
32
    }
33
34
    /**
35
     * created elements

include/form.room.type.php 1 location

@@ 24-32 (lines=9) @@
21
     * form_room_type constructor.
22
     * @param $RoomType
23
     */
24
    public function __construct(&$RoomType)
25
    {
26
        $this->Obj = &$RoomType;
27
        parent::__construct(_AM_MARTIN_HOTEL_ROOM_CATEGORY, "op", xoops_getenv('PHP_SELF') . "?action=typesave&typeid=" . $RoomType['room_type_id']);
28
        $this->setExtra('enctype="multipart/form-data"');
29
30
        $this->createElements();
31
        $this->createButtons();
32
    }
33
34
    /**
35
     * created elements