PHP Class RTMediaModel, rtMedia

Author: joshua
Inheritance: extends RTDBModel
Exibir arquivo Open project: rtCamp/rtMedia Class Usage Examples

Public Methods

Method Description
__call ( string $name, array $arguments ) : array
__construct ( )
get ( array $columns, mixed $offset = false, mixed $per_page = false, string $order_by = 'media_id desc', $count_flag = false ) : array
get_counts ( mixed $user_id = false, mixed $where_query = false ) : string
get_group_albums ( integer $group_id, mixed $offset, mixed $per_page, string $order_by = 'media_id desc' ) : array
get_media ( array $columns, mixed $offset = false, mixed $per_page = false, string $order_by = 'media_id desc', $count_flag = false ) : array
get_other_album_count ( integer $profile_id, string $context = 'profile' ) : integer
get_user_albums ( integer $author_id, mixed $offset, mixed $per_page, string $order_by = 'media_id desc' ) : array
populate_results_fallback ( string $name, array $arguments ) : array

Method Details

__call() public method

public __call ( string $name, array $arguments ) : array
$name string
$arguments array
return array

__construct() public method

public __construct ( )

get() public method

public get ( array $columns, mixed $offset = false, mixed $per_page = false, string $order_by = 'media_id desc', $count_flag = false ) : array
$columns array
$offset mixed
$per_page mixed
$order_by string
return array

get_counts() public method

public get_counts ( mixed $user_id = false, mixed $where_query = false ) : string
$user_id mixed
$where_query mixed
return string $result

get_group_albums() public method

public get_group_albums ( integer $group_id, mixed $offset, mixed $per_page, string $order_by = 'media_id desc' ) : array
$group_id integer
$offset mixed
$per_page mixed
$order_by string
return array $results

get_media() public method

public get_media ( array $columns, mixed $offset = false, mixed $per_page = false, string $order_by = 'media_id desc', $count_flag = false ) : array
$columns array
$offset mixed
$per_page mixed
$order_by string
return array

get_other_album_count() public method

public get_other_album_count ( integer $profile_id, string $context = 'profile' ) : integer
$profile_id integer
$context string
return integer

get_user_albums() public method

public get_user_albums ( integer $author_id, mixed $offset, mixed $per_page, string $order_by = 'media_id desc' ) : array
$author_id integer
$offset mixed
$per_page mixed
$order_by string
return array $results

populate_results_fallback() public method

public populate_results_fallback ( string $name, array $arguments ) : array
$name string
$arguments array
return array