SproutCMS

This is the code documentation for the SproutCMS project

function updateCategories()

Updates the category table for this controller (so for articles, the updated table will be articles_cat_join)
so that the records for the specified item match the category ids provided.

Usage

boolean $HasCategoriesAdminController->updateCategories ( mixed $item_id , array $categories );

Arguments

  1. $item_id
  2. array $categories
    $id The id of the item to set the categories for

Return value

  • boolean
    True on success, false on failure