\ShortList
A model to store the short list of items and a unique URL.
Synopsis
class ShortList
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_many = ;
- private static array $indexes = ;
- // methods
- public void onBeforeWrite()
- public void Link()
- public static void isBrowser()
Hierarchy
Extends
- DataObject
Members
private
-
$db
Fields. -
$has_many
Attaches to many items. -
$indexes
Where the URL is unique.
Methods
public
- Link() — All URLs are prefixed with URLSegment from config.
- isBrowser() — A basic browser detection.
- onBeforeWrite() — Ensure we populate these fields before a save.