\CategoryGrid
Synopsis
class CategoryGrid
extends BaseGrid
{
- // members
- protected $unassigned_items_index;
- protected array $assigned_items_index = ;
- protected integer $unassigned_items_count = 0;
- protected array $grid_items_by_category = ;
- protected $grid_items_by_category_counts;
- protected $grid_items_by_category_index;
- protected integer $last_active_cell_index = 0;
- protected integer $index = 1;
- protected array $category_index = ;
- protected boolean $remove_empty_blocks = true;
- // Inherited members from BaseGrid
- protected boolean $append_suitable_group_if_needed;
- protected $create_block_callback;
- protected $create_cell_callback;
- // Inherited members from BaseGridGroup
- protected string $name;
- protected array $groups;
- protected array $unfinished_groups;
- protected array $unfinished_groups_original_index;
- protected integer $last_touched_group_index;
- protected boolean $append_suitable_group_if_needed;
- protected $group_cursor;
- protected $first_group_cursor;
- protected BaseGridGroup $parent_group;
- protected array $accepted_categories;
- public array $ignored_categories;
- // methods
- public void getBlocks()
- public void fillGaps()
- public void getFillGridItem()
- public void addGridItem()
- public void getUnassignedItemsCount()
- public void assignGridItems()
- protected void getNextGridItem()
- public void removeGaps()
- protected void assignGridItemsToCells()
- protected void assignGridItemToCell()
- // Inherited methods from BaseGrid
- public void __construct()
- public void addBlock()
- public $this createBlockCallback()
- public $this createCellCallback()
- public void loadLayout()
- protected void createGridBlockFromLayout()
- protected void createGridCellFromLayout()
- // Inherited methods from BaseGridGroup
- public void addGroup()
- public void removeGroupsFromIndex()
- public void setParentGroup()
- public void propagateAcceptedCategories()
- public void addGridItem()
- public void ignoreCategory()
- public void isIgnoredCategory()
- protected void addGridItemToUnfinishedGroup()
- protected void canRemoveUnfinishedGroup()
- protected void addGridItemToNextUnfinishedGroup()
- protected void appendSuitableGroup()
- protected void canAcceptGridItem()
- public void isFull()
- public void isEmpty()
- public void __clone()
- public void fillGaps()
- public void getFillGridItem()
- public void removeGaps()
- protected void getGridItem()
- protected void advanceSubtreeCursor()
- public void advanceCursor()
- public void getCursor()
- protected void getGridItemCursorKey()
- protected void resetGroupCursor()
- protected void resetCursor()
- public void rewind()
- public void current()
- public void key()
- public void next()
- public void valid()
- public string getName()
- public BaseGridGroup setName()
Hierarchy
Extends
Members
protected
- $accepted_categories
- $append_suitable_group_if_needed
- $append_suitable_group_if_needed
- $assigned_items_index
- $category_index
- $create_block_callback
- $create_cell_callback
- $first_group_cursor
- $grid_items_by_category
- $grid_items_by_category_counts
- $grid_items_by_category_index
- $group_cursor
- $groups
- $index
- $last_active_cell_index
- $last_touched_group_index
- $name
- $parent_group — BaseGridGroup
- $remove_empty_blocks
- $unassigned_items_count
- $unassigned_items_index
- $unfinished_groups
- $unfinished_groups_original_index
public
- $ignored_categories
Methods
protected
public
- addGridItem()
- assignGridItems()
- fillGaps()
- getBlocks()
- getFillGridItem()
- getUnassignedItemsCount()
- removeGaps()
Inherited from BaseGrid
protected
public
Inherited from BaseGridGroup
protected
- addGridItemToNextUnfinishedGroup()
- addGridItemToUnfinishedGroup()
- advanceSubtreeCursor()
- appendSuitableGroup()
- canAcceptGridItem()
- canRemoveUnfinishedGroup()
- getGridItem()
- getGridItemCursorKey()
- resetCursor()
- resetGroupCursor()