Comment
Return to documentation ↩
public $comments
public $comment_ids
public $comment_count = 0
public $image_ids = array()
public $post_ids = array()
protected $sql
public __construct($comment_ids=null)
Initiate Comment class
string $comment_ids Limit results to select comment IDs
public __destruct()
Terminates object, closes the database connection
return void
public hook($orbit=null)
Perform Orbit hook
Orbit $orbit
return void
public delete($permanent=false)
Deletes comments
bool Delete permanently (and therefore cannot be recovered)
return void
public recover()
Recover comments (and comments also deleted at same time)
return bool
public updateFields($fields)
Update comment fields
string $fields Associative array of columns and fields
return PDOStatement
public formatTime($format=null)
Format time
string $format Format as in date();
return void
public getSeries($start=null, $asc=true)
Get word and numerical sequencing of comments
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 comment should be selected and begin sequence
return void