ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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)
 
 registerResources (ResourceRegistry $registry)
 Announce resources this renderer requires. More...
 
- Public Member Functions inherited from ILIAS\UI\Implementation\Render\AbstractComponentRenderer
 __construct (private FactoryInternal $ui_factory, private TemplateFactory $tpl_factory, private Language $lng, private JavaScriptBinding $js_binding, private ImagePathResolver $image_path_resolver, private DataFactory $data_factory, private HelpTextRetriever $help_text_retriever, private UploadLimitResolver $upload_limit_resolver,)
 
 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 ()
 
 getHelpText (Help\Purpose $purpose, Help\Topic ... $topics)
 
 getComponentCanonicalNameAttribute (Component $component)
 
- 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...
 
- Public Member Functions inherited from ILIAS\UI\HelpTextRetriever
 getHelpText (Help\Purpose $purpose, Help\Topic ... $topics)
 Try to find according help texts for the purpose an topics. 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'
 
const DEFAULT_MODE_LABEL = 'label_modeviewcontrol'
 
- Protected Member Functions inherited from ILIAS\UI\Implementation\Component\Input\ViewControl\Renderer
 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)
 
 renderMode (Mode $component, RendererInterface $default_renderer)
 
- Protected Member Functions inherited from ILIAS\UI\Implementation\Render\AbstractComponentRenderer
 getUIFactory ()
 Get a UI factory. More...
 
 getDataFactory ()
 
 getUploadLimitResolver ()
 
 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...
 
 cannotHandleComponent (Component $component)
 This method MUST be called by derived component renderers, if. More...
 
 getTooltipRenderer ()
 
 convertSpecialCharacters (string $value)
 
- Protected Attributes inherited from ILIAS\UI\Implementation\Render\AbstractComponentRenderer
TooltipRenderer $tooltip_renderer = null
 

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:205
+ Here is the call graph for this function:

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