| @@ 817-823 (lines=7) @@ | ||
| 814 | * @param $hotel |
|
| 815 | * @return bool true on success |
|
| 816 | */ |
|
| 817 | public function updateTags(&$hotel) |
|
| 818 | { |
|
| 819 | if ($tag_handler = @xoops_getmodulehandler("tag", "tag", true)) { |
|
| 820 | $tag_handler->updateByItem($hotel->getVar('hotel_tags'), $hotel->getVar('hotel_id'), MARTIN_DIRNAME); |
|
| 821 | } |
|
| 822 | ||
| 823 | return true; |
|
| 824 | } |
|
| 825 | ||
| 826 | /** |
|
| @@ 832-838 (lines=7) @@ | ||
| 829 | * @param $hotel |
|
| 830 | * @return bool true on success |
|
| 831 | */ |
|
| 832 | public function deleteTags(&$hotel) |
|
| 833 | { |
|
| 834 | if ($tag_handler = @xoops_getmodulehandler("tag", "tag", true)) { |
|
| 835 | $tag_handler->updateByItem(array(), $hotel->getVar('hotel_id'), MARTIN_DIRNAME); |
|
| 836 | } |
|
| 837 | ||
| 838 | return true; |
|
| 839 | } |
|
| 840 | ||
| 841 | /** |
|