SproutCMS

This is the code documentation for the SproutCMS project

function lookup()

Looks up a category.
Returns the id, or NULL if not found.

Usage

unknown Category::lookup ( string $table , string $name [, bool $case_sensitive ] );

Arguments

  1. string $table
    The 'main' table (e.g. 'articles')
  2. string $name
    The name of the category to find
  3. bool $case_sensitive = FALSE
    True for a case sensitive match. Default false