SproutCMS

This is the code documentation for the SproutCMS project

function create()

Create a slug, and ensure it's unique

Usage

string Slug::create ( string $table , string $name );

Arguments

  1. string $table
    The table the item is on
  2. string $name
    The name of the item

Return value

  • string
    The generated slug, should always be unique