PHP 클래스 RTMediaUserInteraction, rtMedia

저자: saurabh
파일 보기 프로젝트 열기: rtCamp/rtMedia 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$action The singular action word (like, unlike, view, download, etc)
$action_query The action query populated by the default query
$actions The plural of the action (likes, unlikes, etc)
$increase Whether the action increases the count or decreases the count
$interactor
$media
$model The db model
$owner
$privacy

공개 메소드들

메소드 설명
__construct ( array $args = [] ) Initialise the user interaction
before_render ( )
button_filter ( $buttons )
init ( )
interactor_privacy ( )
is_clickable ( )
is_visible ( )
preprocess ( ) Checks if an id is set Creates pre and post process hooks for the action Calls the process
process ( ) : integer Updates count of the action
register ( array $actions ) : array
render ( )
set_interactor ( )
set_label ( ) Checks if there's a label, if not creates from the action name
set_media ( )
set_plural ( )

메소드 상세

__construct() 공개 메소드

Initialise the user interaction
public __construct ( array $args = [] )
$args array

before_render() 공개 메소드

public before_render ( )

button_filter() 공개 메소드

public button_filter ( $buttons )

init() 공개 메소드

public init ( )

interactor_privacy() 공개 메소드

public interactor_privacy ( )

is_clickable() 공개 메소드

public is_clickable ( )

is_visible() 공개 메소드

public is_visible ( )

preprocess() 공개 메소드

Checks if an id is set Creates pre and post process hooks for the action Calls the process
public preprocess ( )

process() 공개 메소드

Updates count of the action
public process ( ) : integer
리턴 integer New count

register() 공개 메소드

public register ( array $actions ) : array
$actions array The default array of actions
리턴 array $actions Filtered actions array

render() 공개 메소드

public render ( )

set_interactor() 공개 메소드

public set_interactor ( )

set_label() 공개 메소드

Checks if there's a label, if not creates from the action name
public set_label ( )

set_media() 공개 메소드

public set_media ( )

set_plural() 공개 메소드

public set_plural ( )

프로퍼티 상세

$action 공개적으로 프로퍼티

The singular action word (like, unlike, view, download, etc)
public $action

$action_query 공개적으로 프로퍼티

The action query populated by the default query
public $action_query

$actions 공개적으로 프로퍼티

The plural of the action (likes, unlikes, etc)
public $actions

$increase 공개적으로 프로퍼티

Whether the action increases the count or decreases the count
public $increase

$interactor 공개적으로 프로퍼티

public $interactor

$media 공개적으로 프로퍼티

public $media

$model 공개적으로 프로퍼티

The db model
public $model

$owner 공개적으로 프로퍼티

public $owner

$privacy 공개적으로 프로퍼티

public $privacy