Set
Return to documentation ↩
public $images
public $set_ids
public $set_count = 0
public $sets
protected $sql
public __construct($set_ids=null)
Initiate Set object
array $set_ids Search sets (set IDs, set titles)
public __destruct()
Terminates object, closes the database connection
return void
public hook($orbit=null)
Perform Orbit hook
Orbit $orbit
return void
public updateFields($fields)
Update sets
array $fields Associate array of columns and fields
return void
public delete($permanent=false)
Deletes sets
bool Delete permanently (and therefore cannot be recovered)
return void
public recover()
Recover sets (and comments also deleted at same time)
return bool
public updateViews()
Increase set_views field by 1
return void
public formatTime($format=null)
Format time
string $format Same format as date();
return void
public rebuild()
Rebuild sets
return void
public getSeries($start=null, $asc=true)
Get word and numerical sequencing of sets
int $start First number on page
bool $asc Sequence order (false if DESC)
return void
public addSequence($label, $frequency, $start_first=false)
Add string notation to particular sequence, good for CSS columns
string $label String notation
int $frequency
bool $start_first True if first set should be selected and begin sequence
return void
public getImages($limit=0, $column=null, $sort='ASC')
Get sets' images
int $limit Images per set
string $column Table column
string $sort Sort order (ASC or DESC)
return Image