PHP 클래스 Phosphorum\Models\Posts

상속: extends Phalcon\Mvc\Model
파일 보기 프로젝트 열기: phalcon/forum 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
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

메소드 상세

afterCreate() 공개 메소드

public afterCreate ( )

afterDelete() 공개 메소드

public afterDelete ( )

afterSave() 공개 메소드

public afterSave ( )

beforeCreate() 공개 메소드

Create a posts-views logging the ipaddress where the post was created This avoids that the same session counts as post view
public beforeCreate ( )

beforeValidationOnCreate() 공개 메소드

canHaveBounty() 공개 메소드

Checks if the post can have a bounty
public canHaveBounty ( ) : boolean
리턴 boolean

clearCache() 공개 메소드

Clears the cache related to this post
public clearCache ( )

getBounty() 공개 메소드

Calculates a bounty for the post
public getBounty ( ) : array | boolean
리턴 array | boolean

getDifference() 공개 메소드

public getDifference ( )

getHumanCreatedAt() 공개 메소드

public getHumanCreatedAt ( ) : boolean | string
리턴 boolean | string

getHumanEditedAt() 공개 메소드

public getHumanEditedAt ( ) : boolean | string
리턴 boolean | string

getHumanModifiedAt() 공개 메소드

public getHumanModifiedAt ( ) : boolean | string
리턴 boolean | string

getHumanNumberViews() 공개 메소드

public getHumanNumberViews ( ) : string
리턴 string

getRecentUsers() 공개 메소드

public getRecentUsers ( ) : array
리턴 array

getUTCModifiedAt() 공개 메소드

Returns a W3C date to be used in the sitemap.
public getUTCModifiedAt ( ) : string
리턴 string

hasAcceptedAnswer() 공개 메소드

Checks if the Post has accepted answer
public hasAcceptedAnswer ( ) : boolean
리턴 boolean

hasPoll() 공개 메소드

Checks if the Post has a Poll
public hasPoll ( ) : boolean
리턴 boolean

hasReplies() 공개 메소드

Checks if the Post has replies
public hasReplies ( ) : boolean
리턴 boolean

initialize() 공개 메소드

public initialize ( )

isParticipatedInPoll() 공개 메소드

Checks if User is participated in a Poll
public isParticipatedInPoll ( integer $userId ) : boolean
$userId integer User ID
리턴 boolean

isStartVoting() 공개 메소드

Checks if the voting for the poll was started
public isStartVoting ( ) : boolean
리턴 boolean

isSubscribed() 공개 메소드

Checks whether a specific user is subscribed to the post
public isSubscribed ( integer $userId ) : boolean
$userId integer
리턴 boolean

프로퍼티 상세

$accepted_answer 공개적으로 프로퍼티

public $accepted_answer

$categories_id 공개적으로 프로퍼티

public $categories_id

$content 공개적으로 프로퍼티

public $content

$created_at 공개적으로 프로퍼티

public $created_at

$deleted 공개적으로 프로퍼티

public $deleted

$edited_at 공개적으로 프로퍼티

public $edited_at

$id 공개적으로 프로퍼티

public $id

$locked 공개적으로 프로퍼티

public $locked

$modified_at 공개적으로 프로퍼티

public $modified_at

$number_replies 공개적으로 프로퍼티

public $number_replies

$number_views 공개적으로 프로퍼티

public $number_views

$slug 공개적으로 프로퍼티

public $slug

$status 공개적으로 프로퍼티

public $status

$sticked 공개적으로 프로퍼티

public $sticked

$title 공개적으로 프로퍼티

public $title

$users_id 공개적으로 프로퍼티

public $users_id

$votes_down 공개적으로 프로퍼티

public $votes_down

$votes_up 공개적으로 프로퍼티

public $votes_up