SproutCMS

This is the code documentation for the SproutCMS project

function tableCat2main()

Converts a category table (e.g. 'articles_cat_list') into a main table (e.g. 'articles')
Assumes standard naming conventions.

Usage

string Category::tableCat2main ( string $table );

Arguments

  1. string $table
    Category table name, e.g. 'articles_cat_list'

Exceptions thrown

  • InvalidArgumentException
    If the table name is not a valid identifier

Return value

  • string
    Main table name, e.g. 'articles'