PHP Класс RTMediaQuery, rtMedia

Автор: saurabh
Показать файл Открыть проект

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

Свойство Тип Описание
$action_query The current action object (edit/delete/custom)
$actions The actions recognised for the object
$current_media
$format
$in_the_media_loop
$media
$media_count
$media_query The query arguments for the current instance (variable)
$original_query
$query The query arguments for the current instance
$shortcode_global

Открытые методы

Метод Описание
__construct ( array | boolean $args = false ) Initialise the query
album_or_media ( ) }
get_data ( ) : type
get_media_by_media_id ( type $id ) : null helper method to find the array entry for the given media id
get_media_id ( type $media ) : type helper method to fetch media id of each media from the map
get_user ( )
have_media ( ) : boolean Checks at any point of time any media is left to be processed in the db pool
init ( ) Initialise the default args for the query
is_album ( )
is_album_gallery ( )
is_gallery ( )
is_group_album ( )
is_playlist ( )
is_playlist_gallery ( )
is_single ( )
is_single_edit ( )
next_media ( ) : type helper method for rt_album to move ahead in the db pool
order_by ( )
permalink ( )
populate_album ( )
populate_comments ( )
populate_data ( ) : boolean populate the data object for the page/album
populate_media ( )
populate_post_data ( type $media ) populate the post data for the fetched media from rtMedia context
privacy_filter ( $where, $table_name )
query ( type $query ) : type get media query for the request
register_set_gallery_template_filter ( $template, $attr )
rewind_media ( ) Rewinds the db pool of media album and resets it to begining
rtmedia ( ) : type moves ahead in the loop of media within the album
set_action_query ( )
set_actions ( ) additional actions to be added via action hook
set_json_format ( ) json request
set_media_type ( )
set_privacy ( )

Описание методов

__construct() публичный Метод

Initialise the query
public __construct ( array | boolean $args = false )
$args array | boolean The query arguments

album_or_media() публичный Метод

}
public album_or_media ( )

get_data() публичный Метод

public get_data ( ) : type
Результат type

get_media_by_media_id() публичный Метод

helper method to find the array entry for the given media id
public get_media_by_media_id ( type $id ) : null
$id type
Результат null

get_media_id() публичный Метод

helper method to fetch media id of each media from the map
public get_media_id ( type $media ) : type
$media type
Результат type

get_user() публичный Метод

public get_user ( )

have_media() публичный Метод

Checks at any point of time any media is left to be processed in the db pool
public have_media ( ) : boolean
Результат boolean

init() публичный Метод

Initialise the default args for the query
public init ( )

is_album() публичный Метод

public is_album ( )

is_group_album() публичный Метод

public is_group_album ( )

is_playlist() публичный Метод

public is_playlist ( )

is_single() публичный Метод

public is_single ( )

is_single_edit() публичный Метод

public is_single_edit ( )

next_media() публичный Метод

helper method for rt_album to move ahead in the db pool
public next_media ( ) : type
Результат type

order_by() публичный Метод

public order_by ( )

populate_album() публичный Метод

public populate_album ( )

populate_comments() публичный Метод

public populate_comments ( )

populate_data() публичный Метод

populate the data object for the page/album
public populate_data ( ) : boolean
Результат boolean

populate_media() публичный Метод

public populate_media ( )

populate_post_data() публичный Метод

populate the post data for the fetched media from rtMedia context
public populate_post_data ( type $media )
$media type

privacy_filter() публичный Метод

public privacy_filter ( $where, $table_name )

query() публичный Метод

get media query for the request
public query ( type $query ) : type
$query type
Результат type

rewind_media() публичный Метод

Rewinds the db pool of media album and resets it to begining
public rewind_media ( )

rtmedia() публичный Метод

moves ahead in the loop of media within the album
public rtmedia ( ) : type
Результат type

set_action_query() публичный Метод

public set_action_query ( )

set_actions() публичный Метод

additional actions to be added via action hook
public set_actions ( )

set_json_format() публичный Метод

json request
public set_json_format ( )

set_media_type() публичный Метод

public set_media_type ( )

set_privacy() публичный Метод

public set_privacy ( )

Описание свойств

$action_query публичное свойство

The current action object (edit/delete/custom)
public $action_query

$actions публичное свойство

The actions recognised for the object
public $actions

$current_media публичное свойство

public $current_media

$format публичное свойство

public $format

$in_the_media_loop публичное свойство

public $in_the_media_loop

$media публичное свойство

public $media

$media_count публичное свойство

public $media_count

$media_query публичное свойство

The query arguments for the current instance (variable)
public $media_query

$original_query публичное свойство

public $original_query

$query публичное свойство

The query arguments for the current instance
public $query

$shortcode_global публичное свойство

public $shortcode_global