Метод | Описание | |
---|---|---|
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 | ||
Результат | boolean |
public getHumanCreatedAt ( ) : boolean | string | ||
Результат | boolean | string |
public getHumanEditedAt ( ) : boolean | string | ||
Результат | boolean | string |
public getHumanModifiedAt ( ) : boolean | string | ||
Результат | boolean | string |
public getUTCModifiedAt ( ) : string | ||
Результат | string |
public hasAcceptedAnswer ( ) : boolean | ||
Результат | boolean |
public hasReplies ( ) : boolean | ||
Результат | boolean |
public isParticipatedInPoll ( integer $userId ) : boolean | ||
$userId | integer | User ID |
Результат | boolean |
public isStartVoting ( ) : boolean | ||
Результат | boolean |
public isSubscribed ( integer $userId ) : boolean | ||
$userId | integer | |
Результат | boolean |