PHP Class RTMediaUserInteraction, rtMedia

Author: saurabh
Afficher le fichier Open project: rtCamp/rtMedia Class Usage Examples

Méthodes publiques

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__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 ( )

Method Details

__construct() public méthode

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

before_render() public méthode

public before_render ( )

button_filter() public méthode

public button_filter ( $buttons )

init() public méthode

public init ( )

interactor_privacy() public méthode

public interactor_privacy ( )

is_clickable() public méthode

public is_clickable ( )

is_visible() public méthode

public is_visible ( )

preprocess() public méthode

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

process() public méthode

Updates count of the action
public process ( ) : integer
Résultat integer New count

register() public méthode

public register ( array $actions ) : array
$actions array The default array of actions
Résultat array $actions Filtered actions array

render() public méthode

public render ( )

set_interactor() public méthode

public set_interactor ( )

set_label() public méthode

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

set_media() public méthode

public set_media ( )

set_plural() public méthode

public set_plural ( )

Property Details

$action public_oe property

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

$action_query public_oe property

The action query populated by the default query
public $action_query

$actions public_oe property

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

$increase public_oe property

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

$interactor public_oe property

public $interactor

$media public_oe property

public $media

$model public_oe property

The db model
public $model

$owner public_oe property

public $owner

$privacy public_oe property

public $privacy