ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilLPProgressBlockGUI Class Reference

ilLPProgressBlockGUI: ilColumnGUI More...

+ Inheritance diagram for ilLPProgressBlockGUI:
+ Collaboration diagram for ilLPProgressBlockGUI:

Public Member Functions

 __construct ()
 
 getBlockType ()
 
- Public Member Functions inherited from ilBlockGUI
 __construct ()
 
 getBlockType ()
 
 setData (array $a_data)
 
 getData ()
 
 setPresentation (int $type)
 
 getPresentation ()
 
 setBlockId (string $a_block_id="0")
 
 getBlockId ()
 
 setGuiObject (object $a_gui_object)
 Set GuiObject. More...
 
 getGuiObject ()
 
 setTitle (string $a_title)
 
 getTitle ()
 
 setOffset (int $a_offset)
 
 getOffset ()
 
 checkOffset (int $offset)
 
 setLimit (int $a_limit)
 
 getLimit ()
 
 setEnableEdit (bool $a_enableedit)
 
 getEnableEdit ()
 
 setRepositoryMode (bool $a_repositorymode)
 
 getRepositoryMode ()
 
 setSubtitle (string $a_subtitle)
 
 getSubtitle ()
 
 setRefId (int $a_refid)
 Set Ref Id (only used if isRepositoryObject() is true). More...
 
 getRefId ()
 
 setAdminCommands (bool $a_admincommands)
 
 getAdminCommands ()
 
 setEnableNumInfo (bool $a_enablenuminfo)
 
 getEnableNumInfo ()
 
 setProperties (array $a_properties)
 This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties. More...
 
 getProperty (string $a_property)
 
 setProperty (string $a_property, string $a_value)
 
 setRowTemplate (string $a_rowtemplatename, string $a_rowtemplatedir="")
 Set Row Template Name. More...
 
 getNavParameter ()
 
 getConfigParameter ()
 
 getMoveParameter ()
 
 getRowTemplateName ()
 
 getRowTemplateDir ()
 
 addBlockCommand (string $a_href, string $a_text, string $a_onclick="", ?RoundTrip $modal=null)
 
 getBlockCommands ()
 
 getHTML ()
 
 getAsynch ()
 Use this for final get before sending asynchronous output (ajax) per echo to output. More...
 
 getPaginationViewControl ()
 Fill previous/next row. More...
 
 getViewControlsForPanel ()
 
 sortObject ()
 
 addSortOption (string $option, string $label, bool $active)
 
 setSortTarget (string $target)
 
 addPresentation (string $label, string $target, bool $active)
 
 getNoItemFoundContent ()
 

Protected Member Functions

 isRepositoryObject ()
 
 getLegacyContent ()
 
- Protected Member Functions inherited from ilBlockGUI
 isRepositoryObject ()
 Returns whether block has a corresponding repository object. More...
 
 specialCharsAsEntities (string $string)
 
 initCommands ()
 
 preloadData (array $data)
 Can be overwritten in subclasses. More...
 
 getLegacyContent ()
 Get legacy content. More...
 
 getListItemForData (array $data)
 Get list item for data array. More...
 
 handleNavigation ()
 Handle navigation. More...
 
 loadData ()
 Load data for current page. More...
 
 getListItemGroups ()
 Get items. More...
 
 addRepoCommands ()
 Add repo commands. More...
 
 getActionsForPanel ()
 
 send (string $output)
 Send. More...
 

Protected Attributes

DataRetrievalFactoryInterface $data_retrieval
 
RendererInterface $tracking_renderer
 
- Protected Attributes inherited from ilBlockGUI
ILIAS UI Renderer $renderer
 
Factory $factory
 
object $gui_object
 
ILIAS Block StandardGUIRequest $request
 
ILIAS Block BlockManager $block_manager
 
bool $repositorymode = false
 
ILIAS DI UIServices $ui
 
array $data = array()
 
bool $enablenuminfo = true
 
array $footer_links = array()
 
string $block_id = "0"
 
bool $allow_moving = true
 
array $move = array("left" => false, "right" => false, "up" => false, "down" => false)
 
array $block_commands = array()
 
int $max_count = 0
 
bool $close_command = false
 
bool $image = false
 
array $property = []
 
string $nav_value = ""
 
string $css_row = ""
 
string $title = ""
 
bool $admincommands = false
 
array $dropdown
 
ilTemplate $tpl
 
ilGlobalTemplateInterface $main_tpl
 
ilObjUser $user
 
ilCtrl $ctrl
 
ilAccessHandler $access
 
ilLanguage $lng
 
ilObjectDefinition $obj_def
 
int $presentation
 
int $requested_ref_id
 

Additional Inherited Members

- Static Public Member Functions inherited from ilBlockGUI
static getScreenMode ()
 
- Data Fields inherited from ilBlockGUI
const PRES_MAIN_LEG = 0
 
const PRES_SEC_LEG = 1
 
const PRES_SEC_LIST = 2
 
const PRES_MAIN_LIST = 3
 
const PRES_MAIN_TILE = 4
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilLPProgressBlockGUI::__construct ( )

Definition at line 33 of file class.ilLPProgressBlockGUI.php.

References ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilBlockGUI\setBlockId(), ilBlockGUI\setPresentation(), and ilBlockGUI\setTitle().

34  {
36 
37  $view_factory = new ViewFactory();
38  $this->data_retrieval = $view_factory->dataRetrieval();
39  $this->tracking_renderer = $view_factory->renderer()->service();
40 
41  $this->lng->loadLanguageModule('trac');
42 
43  $this->setBlockId('lpprogress_' . $this->ctrl->getContextObjId());
44  $this->setTitle($this->lng->txt('trac_progress_block_title'));
45  $this->setPresentation(self::PRES_SEC_LEG);
46  }
setBlockId(string $a_block_id="0")
__construct(Container $dic, ilPlugin $plugin)
setTitle(string $a_title)
setPresentation(int $type)
+ Here is the call graph for this function:

Member Function Documentation

◆ getBlockType()

ilLPProgressBlockGUI::getBlockType ( )

Definition at line 48 of file class.ilLPProgressBlockGUI.php.

48  : string
49  {
50  return 'lpprogress';
51  }

◆ getLegacyContent()

ilLPProgressBlockGUI::getLegacyContent ( )
protected

Definition at line 58 of file class.ilLPProgressBlockGUI.php.

References ilLearningProgressBaseGUI\_getStatusText(), ilObject\_lookupObjectId(), ILIAS\Repository\lng(), ILIAS\Repository\ui(), and ILIAS\Repository\user().

58  : string
59  {
60  $filter = $this->data_retrieval
61  ->filter()
62  ->withObjectIds(ilObject::_lookupObjectId($this->requested_ref_id))
63  ->withUserIds($this->user->getId());
64  $lp_info = $this->data_retrieval
65  ->service()
66  ->retrieveViewInfo($filter)
67  ->lpInfoIterator()
68  ->current();
69 
70  $status = $lp_info->getLPStatus();
71 
72  $progress = $this->tracking_renderer->fixedSizeProgressMeter($lp_info);
73  $mode_and_status = $this->ui->factory()->item()->standard(
75  )->withDescription(
76  $this->lng->txt('trac_mode_collection')
77  );
78 
79  return $this->ui->renderer()->render([
80  $progress,
81  $mode_and_status
82  ]);
83  }
static _lookupObjectId(int $ref_id)
static _getStatusText(int $a_status, ?ilLanguage $a_lng=null)
Get status alt text.
+ Here is the call graph for this function:

◆ isRepositoryObject()

ilLPProgressBlockGUI::isRepositoryObject ( )
protected

Definition at line 53 of file class.ilLPProgressBlockGUI.php.

53  : bool
54  {
55  return false;
56  }

Field Documentation

◆ $data_retrieval

DataRetrievalFactoryInterface ilLPProgressBlockGUI::$data_retrieval
protected

Definition at line 30 of file class.ilLPProgressBlockGUI.php.

◆ $tracking_renderer

RendererInterface ilLPProgressBlockGUI::$tracking_renderer
protected

Definition at line 31 of file class.ilLPProgressBlockGUI.php.


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