SproutCMS

This is the code documentation for the SproutCMS project

function tableMain2cat()

Converts a main table name into a category table name.
Assumes standard naming conventions.

Usage

string Category::tableMain2cat ( string $table );

Arguments

  1. string $table
    Main table name, e.g. 'articles'

Exceptions thrown

  • InvalidArgumentException
    If the table name is not a valid identifier

Return value

  • string
    Category table name, e.g. 'articles_cat_list'