Inheritance diagram for ilConditionSelector:
Collaboration diagram for ilConditionSelector:Public Member Functions | |
| ilConditionSelector ($a_target) | |
| Constructor public. | |
| setControlClass (&$class) | |
| & | getControlClass () |
| setSelectableTypes ($a_type) | |
| setRefId ($a_ref_id) | |
| buildLinkTarget ($a_node_id, $a_type) | |
| get link target (may be overwritten by derived classes) | |
| buildFrameTarget ($a_type, $a_child=0, $a_obj_id=0) | |
| get frame target (may be overwritten by derived classes) | |
| isClickable ($a_type, $a_ref_id) | |
| check if links for certain object type are activated | |
| showChilds ($a_ref_id) | |
| determines wether the childs of an object should be shown or not note: this standard implementation always returns true but it could be overwritten by derived classes (e.g. | |
| formatHeader ($a_obj_id, $a_option) | |
| overwritten method from base class public | |
Data Fields | |
| $root_id | |
| $output | |
| $ctrl | |
| $selectable_type | |
| $ref_id | |
Definition at line 35 of file class.ilConditionSelector.php.
| ilConditionSelector::buildFrameTarget | ( | $ | a_type, | |
| $ | a_child = 0, |
|||
| $ | a_obj_id = 0 | |||
| ) |
get frame target (may be overwritten by derived classes)
Reimplemented from ilExplorer.
Definition at line 119 of file class.ilConditionSelector.php.
{
return '';
}
| ilConditionSelector::buildLinkTarget | ( | $ | a_node_id, | |
| $ | a_type | |||
| ) |
get link target (may be overwritten by derived classes)
Reimplemented from ilExplorer.
Definition at line 100 of file class.ilConditionSelector.php.
References getControlClass().
{
if(in_array($a_type,$this->selectable_types))
{
#$this->ctrl->setParameterByClass('ilrepositorygui','source_id',$a_node_id);
$this->ctrl->setParameter($this->getControlClass(),'source_id',$a_node_id);
return $this->ctrl->getLinkTarget($this->getControlClass(),'add');
}
else
{
echo "hier";
$this->ctrl->setParameterByClass('ilrepositorygui',"ref_id",$this->ref_id);
return $this->ctrl->getLinkTargetByClass('ilrepositorygui','copySelector');
}
}
Here is the call graph for this function:| ilConditionSelector::formatHeader | ( | $ | a_obj_id, | |
| $ | a_option | |||
| ) |
overwritten method from base class public
| integer | obj_id | |
| integer | array options |
Reimplemented from ilExplorer.
Definition at line 157 of file class.ilConditionSelector.php.
References ilExplorer::$ilias, $lng, and $tpl.
| & ilConditionSelector::getControlClass | ( | ) |
Definition at line 85 of file class.ilConditionSelector.php.
Referenced by buildLinkTarget().
{
return $this->control_class;
}
Here is the caller graph for this function:| ilConditionSelector::ilConditionSelector | ( | $ | a_target | ) |
Constructor public.
| string | scriptname | |
| int | user_id |
Definition at line 55 of file class.ilConditionSelector.php.
References $ilCtrl, ilExplorer::$tree, ilExplorer::addFilter(), ilExplorer::ilExplorer(), ilExplorer::setFiltered(), ilExplorer::setFilterMode(), and ilExplorer::setSessionExpandVariable().
{
global $tree,$ilCtrl;
$this->ctrl = $ilCtrl;
parent::ilExplorer($a_target);
$this->tree = $tree;
$this->root_id = $this->tree->readRootId();
$this->order_column = "title";
$this->setSessionExpandVariable("condition_selector_expand");
// add here all container objects
$this->addFilter("root");
$this->addFilter("cat");
$this->addFilter("grp");
$this->addFilter("fold");
$this->addFilter("crs");
$this->addFilter("exc");
$this->addFilter("tst");
$this->setFilterMode(IL_FM_POSITIVE);
$this->setFiltered(true);
}
Here is the call graph for this function:| ilConditionSelector::isClickable | ( | $ | a_type, | |
| $ | a_ref_id | |||
| ) |
check if links for certain object type are activated
| string | $a_type object type |
Reimplemented from ilExplorer.
Definition at line 124 of file class.ilConditionSelector.php.
{
return in_array($a_type,$this->selectable_types);
#and $a_ref_id != $this->ref_id;
}
| ilConditionSelector::setControlClass | ( | &$ | class | ) |
Definition at line 81 of file class.ilConditionSelector.php.
{
$this->control_class =& $class;
}
| ilConditionSelector::setRefId | ( | $ | a_ref_id | ) |
Definition at line 94 of file class.ilConditionSelector.php.
{
$this->ref_id = $a_ref_id;
}
| ilConditionSelector::setSelectableTypes | ( | $ | a_type | ) |
Definition at line 90 of file class.ilConditionSelector.php.
{
$this->selectable_types = $a_type;
}
| ilConditionSelector::showChilds | ( | $ | a_parent_id | ) |
determines wether the childs of an object should be shown or not note: this standard implementation always returns true but it could be overwritten by derived classes (e.g.
ilRepositoryExplorerGUI)
Reimplemented from ilExplorer.
Definition at line 130 of file class.ilConditionSelector.php.
References $rbacsystem.
{
global $rbacsystem;
if ($a_ref_id == 0)
{
return true;
}
if ($rbacsystem->checkAccess("read", $a_ref_id))
{
return true;
}
else
{
return false;
}
}
| ilConditionSelector::$ctrl |
Definition at line 45 of file class.ilConditionSelector.php.
| ilConditionSelector::$output |
Reimplemented from ilExplorer.
Definition at line 44 of file class.ilConditionSelector.php.
| ilConditionSelector::$ref_id |
Definition at line 48 of file class.ilConditionSelector.php.
| ilConditionSelector::$root_id |
Definition at line 43 of file class.ilConditionSelector.php.
| ilConditionSelector::$selectable_type |
Definition at line 47 of file class.ilConditionSelector.php.
1.7.1