SproutCMS

This is the code documentation for the SproutCMS project

function columnMain2joiner()

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

Usage

string Category::columnMain2joiner ( 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 column name, e.g. 'article_id'