SproutCMS

This is the code documentation for the SproutCMS project

function update()

Updates tags for a given record

Usage

bool Tags::update ( string $table , int $record_id , array $new_tags [, bool $remove ] );

Arguments

  1. string $table
    The table name of the record which is being updated
  2. int $record_id
    The record to update
  3. array $new_tags
    Array of tag names of the new tags
  4. bool $remove = TRUE
    Should removals be processed? Set to FALSE to only add tags. Default true.

Exceptions thrown

  • QueryException

Return value

  • bool
    True on success, false on failure