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 |
|