SproutCMS

This is the code documentation for the SproutCMS project

function get()

Return all columns for a single row of a table (similar to Pdb::get)
The row is specified using its slug.

Usage

array Slug::get ( string $table , string $slug , array $conditions );

Arguments

  1. string $table
    The table name, not prefixed
  2. string $slug
    The slug of the record to fetch
  3. array $conditions
    Extra WHERE clause if required, in the format prescribed by Pdb::buildClause

Exceptions thrown

  • RowMissingException
    If the record wasn't found
  • QueryException
    if the query failed

Return value

  • array
    The record data