SproutCMS

This is the code documentation for the SproutCMS project

function insertInto()

Inserts a record into a category.

Usage

bool Category::insertInto ( string $table , int $record_id , int $category_id );

Arguments

  1. string $table
    The 'main' table (e.g. 'articles')
  2. int $record_id
    The id in the main table.
  3. int $category_id
    The id in the category table.

Return value

  • bool
    True if adding the record to the category succeeded