PHP Класс RTMediaUserInteraction, rtMedia

Автор: saurabh
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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