Output all article's categories


I have a shop where many articles are suitable for more than one category (purpose). Example:

Article 1 => Category 1, Category 4, Category 5

How can I output all defined categories for Article 1 on it’s details page?
I am using attributes now but I have to update categories and attributes at the moment.

EDIT: Found what I was looking for: http://forum.oxid-esales.com/showthread.php?t=10406

For 4.9 version getCategoryIds() should work, i have not checked other versions.
But you can pick your shop version here http://docu.oxid-esales.com/CE/sourcecodedocumentation/ and see if this function is available for your shop version