\org_openpsa_qbpager_direct

Pages QB resultsets (uses midgard QB directly)

Note, that the request data, for ease of use, already contains the L10n Databases of the Component and MidCOM itself located in this class. They are stored as 'l10n' and 'l10n_midcom'. Also available as 'config' is the current component configuration.

Summary

Methods
Properties
Constants
__construct()
get_current_page()
show_previousnext()
get_pages()
show_pages()
show_pages_as_list()
execute()
execute_unchecked()
count_pages()
add_constraint()
add_order()
begin_group()
end_group()
include_deleted()
count()
count_unchecked()
__get()
__isset()
set_active_leaf()
add_stylesheet()
get_workflow()
$results_per_page
$display_pages
$string_next
$string_previous
$_component
$_i18n
$_l10n
$_l10n_midcom
$_config
No constants found
_prepare_qbs()
_sanity_check()
_qb_limits()
$_midcom_qb
$_midcom_qb_count
$_pager_id
$_prefix
N/A
_check_page_vars()
_get_query_string()
show()
$_offset
$count
$_count_mode
$_current_page
$_services
N/A

Properties

$results_per_page

$results_per_page : 

Type

$display_pages

$display_pages : 

Type

$string_next

$string_next : 

Type

$string_previous

$string_previous : 

Type

$_component

$_component : string

The name of the component, e.g. net.nehmer.static. Should be used whenever the component's name is required instead of hardcoding it.

Type

string

$_i18n

$_i18n : \midcom_services_i18n

A handle to the i18n service.

Type

\midcom_services_i18n

$_l10n

$_l10n : \midcom_services_i18n_l10n

The components' L10n string database.

Type

\midcom_services_i18n_l10n

$_l10n_midcom

$_l10n_midcom : \midcom_services_i18n_l10n

The global MidCOM string database.

Type

\midcom_services_i18n_l10n

$_config

$_config : \midcom_helper_configuration

The current configuration.

Type

\midcom_helper_configuration

$_midcom_qb

$_midcom_qb : 

Type

$_midcom_qb_count

$_midcom_qb_count : 

Type

$_pager_id

$_pager_id : 

Type

$_prefix

$_prefix : 

Type

$_offset

$_offset : 

Type

$count

$count : 

Type

$_count_mode

$_count_mode : 

Type

$_current_page

$_current_page : 

Type

$_services

$_services : array

Array that holds the already instantiated services

Type

array

Methods

__construct()

__construct() 

Initialize all member variables, remember to set $_component before calling this constructor from your derived classes.

get_current_page()

get_current_page() 

Get the current page number

show_previousnext()

show_previousnext(  $acl_checks = false) 

Displays previous/next selector

Parameters

$acl_checks

get_pages()

get_pages(  $acl_checks = false) 

Parameters

$acl_checks

show_pages()

show_pages(  $acl_checks = false) 

Displays page selector

Parameters

$acl_checks

show_pages_as_list()

show_pages_as_list(  $acl_checks = false) 

Displays page selector as list

Parameters

$acl_checks

execute()

execute() 

execute_unchecked()

execute_unchecked() 

Wraps to execute since this is what midcom QB does, too

count_pages()

count_pages(  $acl_checks = false) 

Returns number of total pages for query

By default returns a number of pages without any ACL checks, checked count is available but is much slower.

Parameters

$acl_checks

add_constraint()

add_constraint(  $param,   $op,   $val) 

Parameters

$param
$op
$val

add_order()

add_order(  $param,   $sort = 'ASC') 

Parameters

$param
$sort

begin_group()

begin_group(  $type) 

Parameters

$type

end_group()

end_group() 

include_deleted()

include_deleted() 

count()

count() 

count_unchecked()

count_unchecked() 

Wraps to count since this is what midcom QB does, too

__get()

__get(  $field) 

Parameters

$field

__isset()

__isset(  $field) 

Parameters

$field

set_active_leaf()

set_active_leaf(  $leaf_id) 

Parameters

$leaf_id

add_stylesheet()

add_stylesheet(string  $url, string  $media = false) 

Convenience shortcut for adding CSS files

Parameters

string $url

The stylesheet URL

string $media

The media type(s) for the stylesheet, if any

get_workflow()

get_workflow(string  $identifier, array  $options = array()) : \midcom\workflow\dialog

Parameters

string $identifier
array $options

Returns

\midcom\workflow\dialog

_prepare_qbs()

_prepare_qbs(  $classname) 

Parameters

$classname

_sanity_check()

_sanity_check() 

Makes sure we have some absolutely required things properly set

_qb_limits()

_qb_limits(  $qb) 

sets LIMIT and OFFSET for requested page

Parameters

$qb

_check_page_vars()

_check_page_vars() 

Check $_REQUEST for variables and sets internal status accordingly

_get_query_string()

_get_query_string(  $page_var,   $page_number) 

Fetch all $_GET variables

Parameters

$page_var
$page_number

show()

show(  $name,   $data) 

Parameters

$name
$data