Bookmark
in package
Bookmark class for the CMSMS admin console.
Tags
Table of Contents
Properties
- $bookmark_id : int
- $title : string
- $url : string
- $user_id : int
Methods
- __construct() : mixed
- Generic constructor. Runs the SetInitialValues fuction.
- Delete() : bool
- Delete the record for this Bookmark from the database.
- Save() : bool
- Saves the bookmark to the database.
- SetInitialValues() : mixed
- Sets object to some sane initial values
Properties
$bookmark_id
public
int
$bookmark_id
The bookmark id
$title
public
string
$title
The bookmark title
$url
public
string
$url
The bookmark URL
$user_id
public
int
$user_id
Admin user (owner) ID
Methods
__construct()
Generic constructor. Runs the SetInitialValues fuction.
public
__construct() : mixed
Delete()
Delete the record for this Bookmark from the database.
public
Delete() : bool
All values in the object are reset to their initial values.
Return values
boolSave()
Saves the bookmark to the database.
public
Save() : bool
If no id is set, then a new record is created. Otherwise, the record is updated to all values in the Bookmark object.
Return values
boolSetInitialValues()
Sets object to some sane initial values
public
SetInitialValues() : mixed