Property | Type | Description | |
---|---|---|---|
$accepted_answer | |||
$categories_id | |||
$content | |||
$created_at | |||
$deleted | |||
$edited_at | |||
$id | |||
$locked | |||
$modified_at | |||
$number_replies | |||
$number_views | |||
$slug | |||
$status | |||
$sticked | |||
$title | |||
$users_id | |||
$votes_down | |||
$votes_up |
Method | Description | |
---|---|---|
afterCreate ( ) | ||
afterDelete ( ) | ||
afterSave ( ) | ||
beforeCreate ( ) | Create a posts-views logging the ipaddress where the post was created This avoids that the same session counts as post view | |
beforeValidationOnCreate ( ) | ||
canHaveBounty ( ) : boolean | Checks if the post can have a bounty | |
clearCache ( ) | Clears the cache related to this post | |
getBounty ( ) : array | boolean | Calculates a bounty for the post | |
getDifference ( ) | ||
getHumanCreatedAt ( ) : boolean | string | ||
getHumanEditedAt ( ) : boolean | string | ||
getHumanModifiedAt ( ) : boolean | string | ||
getHumanNumberViews ( ) : string | ||
getRecentUsers ( ) : array | ||
getUTCModifiedAt ( ) : string | Returns a W3C date to be used in the sitemap. | |
hasAcceptedAnswer ( ) : boolean | Checks if the Post has accepted answer | |
hasPoll ( ) : boolean | Checks if the Post has a Poll | |
hasReplies ( ) : boolean | Checks if the Post has replies | |
initialize ( ) | ||
isParticipatedInPoll ( integer $userId ) : boolean | Checks if User is participated in a Poll | |
isStartVoting ( ) : boolean | Checks if the voting for the poll was started | |
isSubscribed ( integer $userId ) : boolean | Checks whether a specific user is subscribed to the post |
public beforeCreate ( ) |
public canHaveBounty ( ) : boolean | ||
return | boolean |
public getHumanCreatedAt ( ) : boolean | string | ||
return | boolean | string |
public getHumanEditedAt ( ) : boolean | string | ||
return | boolean | string |
public getHumanModifiedAt ( ) : boolean | string | ||
return | boolean | string |
public getUTCModifiedAt ( ) : string | ||
return | string |
public hasAcceptedAnswer ( ) : boolean | ||
return | boolean |
public hasReplies ( ) : boolean | ||
return | boolean |
public isParticipatedInPoll ( integer $userId ) : boolean | ||
$userId | integer | User ID |
return | boolean |
public isStartVoting ( ) : boolean | ||
return | boolean |
public isSubscribed ( integer $userId ) : boolean | ||
$userId | integer | |
return | boolean |