Generate and validate slugs - i.e. unique, SEO-friendly URL segments. See e.g. https://en.wikipedia.org/wiki/Semantic_URL#Slug
This is the code documentation for the SproutCMS project
Search documentation |
class SlugGenerate and validate slugs - i.e. unique, SEO-friendly URL segments. See e.g. https://en.wikipedia.org/wiki/Semantic_URL#Slug
Functions
public createstring Slug::create ( string $table , string $name ); Create a slug, and ensure it's unique public getarray Slug::get ( string $table , string $slug , array $conditions ); Return all columns for a single row of a table (similar to Pdb::get) The row is specified using its slug. public uniquevoid Slug::unique ( string $value , string $table , array $conditions ); Verify that a slug is unique for a given table public validvoid Slug::valid ( string $value ); Verify that a slug contains only valid characters |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|