@@ 817-824 (lines=8) @@ | ||
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 | /** |
|
827 | * Delete hotel tags links of the article from database |
|
@@ 832-839 (lines=8) @@ | ||
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 | /** |
|
842 | * @get rank hotel count |