ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
VCPaginationRendererMock Class Reference
+ Inheritance diagram for VCPaginationRendererMock:
+ Collaboration diagram for VCPaginationRendererMock:

Public Member Functions

 mock_buildRanges (int $total_count, int $page_limit)
 
 mock_findCurrentPage (array $ranges, int $offset)
 
 mocK_sliceRangesToVisibleEntries (array $ranges, int $current, int $number_of_visible_entries)
 
- Public Member Functions inherited from ILIAS\UI\Implementation\Component\Input\ViewControl\Renderer
 render (Component\Component $component, RendererInterface $default_renderer)
 
- Public Member Functions inherited from ILIAS\UI\Implementation\Render\AbstractComponentRenderer
 __construct (Factory $ui_factory, TemplateFactory $tpl_factory, ilLanguage $lng, JavaScriptBinding $js_binding, \ILIAS\Refinery\Factory $refinery, ImagePathResolver $image_path_resolver, DataFactory $data_factory)
 
 registerResources (ResourceRegistry $registry)
 Announce resources this renderer requires. More...
 
 txt (string $id)
 Get a text from the language file. More...
 
 toJS ($key)
 Add language var to client side (il.Language) More...
 
 getLangKey ()
 Get current language key. More...
 
 getImagePathResolver ()
 
- Public Member Functions inherited from ILIAS\UI\Implementation\Render\ComponentRenderer
 render (Component $component, Renderer $default_renderer)
 Render the component if possible and delegate additional rendering to the default_renderer. More...
 

Additional Inherited Members

- Data Fields inherited from ILIAS\UI\Implementation\Component\Input\ViewControl\Renderer
const DEFAULT_DROPDOWN_LABEL = 'label_fieldselection'
 
const DEFAULT_BUTTON_LABEL = 'label_fieldselection_refresh'
 
const DEFAULT_SORTATION_DROPDOWN_LABEL = 'label_sortation'
 
const DEFAULT_DROPDOWN_LABEL_OFFSET = 'label_pagination_offset'
 
const DEFAULT_DROPDOWN_LABEL_LIMIT = 'label_pagination_limit'
 
- Protected Member Functions inherited from ILIAS\UI\Implementation\Component\Input\ViewControl\Renderer
 getComponentInterfaceName ()
 
 renderFieldSelection (FieldSelection $component, RendererInterface $default_renderer)
 
 renderSortation (Sortation $component, RendererInterface $default_renderer)
 
 buildRanges (int $total_count, int $page_limit)
 
 findCurrentPage (array $ranges, int $offset)
 
 sliceRangesToVisibleEntries (array $ranges, int $current, int $number_of_visible_entries)
 
 renderPagination (Pagination $component, RendererInterface $default_renderer)
 
- Protected Member Functions inherited from ILIAS\UI\Implementation\Render\AbstractComponentRenderer
 getUIFactory ()
 Get a UI factory. More...
 
 getDataFactory ()
 
 getRefinery ()
 
 getJavascriptBinding ()
 
 getTemplate (string $name, bool $purge_unfilled_vars, bool $purge_unused_blocks)
 Get template of component this renderer is made for. More...
 
 getTemplatePath (string $name)
 Get the path to the template of this component. More...
 
 bindJavaScript (JavaScriptBindable $component)
 Bind the component to JavaScript. More...
 
 createId ()
 Get a fresh unique id. More...
 
 checkComponent (Component $component)
 Check if a given component fits this renderer and throw if that is not the case. More...
 
 getComponentInterfaceName ()
 Get the name of the component-interface this renderer is supposed to render. More...
 
 convertSpecialCharacters (string $value)
 

Detailed Description

Definition at line 33 of file ViewControlPaginationTest.php.

Member Function Documentation

◆ mock_buildRanges()

VCPaginationRendererMock::mock_buildRanges ( int  $total_count,
int  $page_limit 
)

Definition at line 35 of file ViewControlPaginationTest.php.

References ILIAS\UI\Implementation\Component\Input\ViewControl\Renderer\buildRanges().

36  {
37  return $this->buildRanges($total_count, $page_limit);
38  }
+ Here is the call graph for this function:

◆ mock_findCurrentPage()

VCPaginationRendererMock::mock_findCurrentPage ( array  $ranges,
int  $offset 
)

Definition at line 39 of file ViewControlPaginationTest.php.

References ILIAS\UI\Implementation\Component\Input\ViewControl\Renderer\findCurrentPage().

40  {
41  return $this->findCurrentPage($ranges, $offset);
42  }
+ Here is the call graph for this function:

◆ mocK_sliceRangesToVisibleEntries()

VCPaginationRendererMock::mocK_sliceRangesToVisibleEntries ( array  $ranges,
int  $current,
int  $number_of_visible_entries 
)

Definition at line 43 of file ViewControlPaginationTest.php.

References ILIAS\UI\Implementation\Component\Input\ViewControl\Renderer\sliceRangesToVisibleEntries().

44  {
45  return $this->sliceRangesToVisibleEntries($ranges, $current, $number_of_visible_entries);
46  }
sliceRangesToVisibleEntries(array $ranges, int $current, int $number_of_visible_entries)
Definition: Renderer.php:228
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: