Class ManageBlock
An element to manage the records of a module.
- ICanBoogie\Object implements ICanBoogie\ToArrayRecursive uses ICanBoogie\ToArrayRecursiveTrait, ICanBoogie\PrototypeTrait
- Brickrouge\Element implements ArrayAccess, IteratorAggregate, Brickrouge\HTMLStringInterface
- Icybee\ManageBlock
Direct known subclasses
Icybee\Modules\Comments\ManageBlock
,
Icybee\Modules\Nodes\ManageBlock
,
Icybee\Modules\Sites\ManageBlock
,
Icybee\Modules\Taxonomy\Terms\ManageBlock
,
Icybee\Modules\Taxonomy\Vocabulary\ManageBlock
,
Icybee\Modules\Users\ManageBlock
Indirect known subclasses
Icybee\Modules\Contents\ManageBlock
,
Icybee\Modules\Files\ManageBlock
,
Icybee\Modules\Forms\ManageBlock
,
Icybee\Modules\Images\GalleryBlock
,
Icybee\Modules\Images\ManageBlock
,
Icybee\Modules\Members\ManageBlock
,
Icybee\Modules\Pages\ManageBlock
Changes-20130622: - All extend_column* methods are removed. - alter_range_query() signature changed, $options is now an instance of Options an not an array. - AlterColumnsEvent has been redesigned,
records
is removed.TODO-20130626:: - [filters][options] -> [filter_options] - throw error when COLUMNS_ORDER use an undefined column.
Located at vendor/icybee/icybee/lib/blocks/manage.php
Methods summary
protected static
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
|
protected
array[string]mixed
|
|
protected
|
|
protected
|
|
protected
array[string]mixed
|
|
protected
array[string]mixed
|
|
protected
array
|
|
protected
array
|
|
protected
array
|
#
update_options(
Updates options with the provided modifiers. |
protected
array
|
#
resolve_order( string|null $order_by, string|integer|null $order_direction )
Resolves the display order of the records according to the default options and the available columns. |
protected
|
|
public
string
|
|
protected
string|null
|
|
protected
string
|
|
protected
|
#
resolve_query(
Resolve ActiveRecord query according to the supplied options. |
protected
|
#
alter_query(
Alters the initial query with the specified filters. |
protected
|
#
alter_query_with_search(
Alters the query according to a search string. |
protected
|
#
alter_query_with_range(
Alters query with range (offset and limit). |
protected
|
|
protected
array
|
|
protected
string
|
|
protected
string
|
|
protected
array[string]mixed
|
|
protected
array[string]mixed
|
#
apply_discreet_filter( array $rendered_columns_cells )
Replaces repeating values of a column with the discreet placeholder. |
protected
array[]array
|
|
protected
array[]Element
|
|
protected
string
|
|
protected
|
|
protected
|
|
protected
string
|
|
protected
Brickrouge\Element\null
|
|
protected
string
|
|
public
boolean
|
|
protected
|
Methods inherited from Brickrouge\Element
__toString()
,
add_class()
,
adopt()
,
alter_attributes()
,
alter_class_names()
,
alter_dataset()
,
auto_element_id()
,
decorate()
,
decorate_with_description()
,
decorate_with_inline_help()
,
decorate_with_label()
,
decorate_with_legend()
,
getIterator()
,
get_attributes()
,
get_class()
,
get_dataset()
,
get_ordered_children()
,
handle_assets()
,
has_class()
,
lazy_get_id()
,
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
,
remove_class()
,
render_attributes()
,
render_child()
,
render_children()
,
render_class()
,
render_dataset()
,
render_inner_html_for_checkbox_group()
,
render_inner_html_for_radio_group()
,
render_inner_html_for_select()
,
render_inner_html_for_textarea()
,
set_class()
,
set_dataset()
,
validate()
Methods inherited from ICanBoogie\Object
from()
,
resolve_facade_properties()
,
resolve_private_properties()
,
to_array()
,
to_json()
Methods inherited from ICanBoogie\ToArrayRecursive
Methods used from ICanBoogie\ToArrayRecursiveTrait
Methods used from ICanBoogie\PrototypeTrait
__call()
,
__get()
,
__set()
,
__sleep()
,
__wakeup()
,
get_prototype()
,
has_method()
,
has_property()
,
last_chance_get()
,
last_chance_set()
Magic methods summary
Constants summary
string |
DISCREET_PLACEHOLDER
|
'<span class="lighter">―</span>' |
|
string |
T_BLOCK
|
'#manager-block' |
|
string |
T_COLUMNS_ORDER
|
'#manager-columns-order' |
|
string |
T_ORDER_BY
|
'#manager-order-by' |
|
string |
ORDER_ASC
|
'asc' |
|
string |
ORDER_DESC
|
'desc' |
Constants inherited from Brickrouge\Element
CHILDREN
,
DEFAULT_VALUE
,
DESCRIPTION
,
GROUP
,
GROUPS
,
INLINE_HELP
,
INNER_HTML
,
LABEL
,
LABEL_MISSING
,
LABEL_POSITION
,
LEGEND
,
OPTIONS
,
OPTIONS_DISABLED
,
REQUIRED
,
STATE
,
TYPE_CHECKBOX
,
TYPE_CHECKBOX_GROUP
,
TYPE_RADIO
,
TYPE_RADIO_GROUP
,
VALIDATOR
,
VALIDATOR_OPTIONS
,
WEIGHT
,
WIDGET_CONSTRUCTOR
Properties summary
public
|
$module |
#
Currently used module. |
protected
|
$model |
#
Currently used model. |
protected
array[string]Column
|
$columns |
#
The columns of the element. |
protected
array[]ActiveRecord
|
$records |
#
The records to display. |
protected
integer
|
$count |
#
The total number of records matching the filters. |
protected
array[string]mixed
|
$jobs |
#
Jobs that can be applied to the records. |
protected
mixed
|
$browse | |
protected
|
$t |
#
Proxis translator with the following scope: "manager.<module_flat_id>" |
protected
|
$options |
#
Display options. |
Properties inherited from Brickrouge\Element
$auto_element_id
,
$children
,
$class_names
,
$inner_html
,
$tag_name
,
$tags
,
$type
Magic properties
public read-only
|
$model |
|
|
public read-only
string
|
$primary_key |
|
#
The primary key of the records. |
public read-only
|
$options |
|
#
The display options. |
public read-only
boolean
|
$is_filtering |
|
#
|
public read-only
|
$t |
|
#
The translator used by the element. |