getCategory method: FeedFactory class

Syntax

getCategory(category_ID, ActiveOnly)

Description

Use this method to retrieve all of the category information for a category ID. The information is returned as an array of string with four elements.

Parameters

Parameter Description

category_ID

Specifies the category ID as a string.

ActiveOnly

Indicates as a Boolean value whether to retrieve the description only if the category is active.

Returns

An array of string with four elements:

  • Category ID

  • Short description

  • Long description

  • Status

Example

import PTFP_FEED:FeedFactory;

Local PTFP_FEED:FeedFactory &thisFeedFactory = create PTFP_FEED:FeedFactory();
Local array of string &catagories = &thisFeedFactory.getCategory⇒
("category_ID", True);