SproutCMS

This is the code documentation for the SproutCMS project

function tableMain2joiner()

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

Usage

string Category::tableMain2joiner ( 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
    Joiner table name, e.g. 'articles_cat_join'