public function getID($categoryID, $datasetType = DATASET_TYPE_OBJECT, $options = [])
{
$category = $this->SQL->getWhere('Category', array('CategoryID' => $categoryID))->firstRow($datasetType);
if (val('AllowedDiscussionTypes', $category) && is_string(val('AllowedDiscussionTypes', $category))) {
setValue('AllowedDiscussionTypes', $category, dbdecode(val('AllowedDiscussionTypes', $category)));
}
return $category;
}