forked from DatabayAG/InteractiveVideo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
294 additions
and
22 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
classes/Form/class.ilInteractiveVideoRepositorySelectorInputGUI.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */ | ||
|
||
require_once 'Services/UIComponent/Explorer2/classes/class.ilExplorerSelectInputGUI.php'; | ||
|
||
/** | ||
* Class ilInteractiveVideoRepositorySelectorInputGUI | ||
* @author Michael Jansen <[email protected]> | ||
* @ilCtrl_IsCalledBy ilInteractiveVideoRepositorySelectorInputGUI: ilFormPropertyDispatchGUI | ||
*/ | ||
class ilInteractiveVideoRepositorySelectorInputGUI extends ilExplorerSelectInputGUI | ||
{ | ||
/** | ||
* @var ilInteractiveVideoReferenceSelectionExplorerGUI | ||
*/ | ||
protected $explorer_gui; | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function __construct($title, $a_postvar, $a_explorer_gui, $a_multi = false) | ||
{ | ||
$this->explorer_gui = $a_explorer_gui; | ||
$this->explorer_gui->setSelectMode($a_postvar.'_sel', $a_multi); | ||
|
||
parent::__construct($title, $a_postvar, $this->explorer_gui, $a_multi); | ||
$this->setType('repository_select'); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getTitleForNodeId($a_id) | ||
{ | ||
return ilObject::_lookupTitle(ilObject::_lookupObjId($a_id)); | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
classes/Form/class.ilInteractiveVideoSelectionExplorerGUI.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */ | ||
|
||
require_once 'Services/Repository/classes/class.ilRepositoryExplorerGUI.php'; | ||
|
||
/** | ||
* Class ilInteractiveVideoSelectionExplorerGUI | ||
* @author Michael Jansen <[email protected]> | ||
*/ | ||
class ilInteractiveVideoSelectionExplorerGUI extends ilRepositoryExplorerGUI | ||
{ | ||
protected $id; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getId() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* @param $id | ||
*/ | ||
public function setId($id) | ||
{ | ||
$this->id = __CLASS__ . '_' . $id; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function __construct($a_parent_obj, $a_parent_cmd) | ||
{ | ||
parent::__construct($a_parent_obj, $a_parent_cmd); | ||
$this->setTypeWhiteList(array()); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function isNodeSelectable($a_node) | ||
{ | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.