메소드 |
설명 |
|
__construct ( ) |
Class constructor. Defines the related database table name. |
|
delete ( $where = [], $options = [] ) |
Delete a draft. |
|
deleteID ( integer $draftID, array $options = [] ) : boolean |
Deletes a specified draft. |
|
draftQuery ( ) |
Build base SQL query used by get methods. |
|
get ( $OrderFields = '', $OrderDirection = 'asc', $Limit = false, $PageNumber = false ) |
|
|
getByUser ( integer $UserID, integer $Offset = '0', integer $Limit = '', integer $DiscussionID = '' ) : object |
Get drafts matching a given criteria. |
|
getCount ( $Wheres = '' ) |
|
|
getCountByUser ( integer $UserID ) : integer |
Gets number of drafts a user has. |
|
getID ( integer $draftID, string | false $dataSetType = false, array $options = [] ) : object |
Gets data for a single draft. |
|
save ( array $formPostValues, array $settings = [] ) : integer |
Insert or update a draft from form values. |
|
updateUser ( integer $UserID ) |
Updates a user's draft count. |
|