ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjCourseReferenceGUI Class Reference
+ Inheritance diagram for ilObjCourseReferenceGUI:
+ Collaboration diagram for ilObjCourseReferenceGUI:

Public Member Functions

 __construct ($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor.
 executeCommand ()
 Execute command.
 getTabs ($tabs_gui)
 get tabs
- Public Member Functions inherited from ilContainerReferenceGUI
 redirectObject ()
 redirect to target
 createObject ()
 Create object.
 saveObject ()
 save object
 editObject ($a_show_info_message=true)
 edit object
 editReferenceObject ()
 updateObject ()
 update object
 getTargetType ()
 get target type
 getReferenceType ()
 get reference type
 showTargetSelectionTreeObject ()
 Show target selection.
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public.
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not)
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui
 getCreationMode ()
 get creation mode
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder
 getHTML ()
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled
 cancelDeleteObject ()
 cancel deletion of object
 cancelObject ($in_rep=false)
 cancel action and go back to previous page public
 cancelCreation ()
 cancel create action and go back to repository parent
 editObject ()
 edit object
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g.
 isVisible ($a_ref_id, $a_type)
 viewObject ()
 list childs of current object
 deleteObject ($a_error=false)
 Display deletion confirmation screen.
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI.

Static Public Member Functions

static _goto ($a_target)
 Support for goto php.
- Static Public Member Functions inherited from ilContainerReferenceGUI
static _prepareSelection ($a_ref_ids, $a_target_type)
 Prepare selection of target objects.
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root.
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root.

Protected Attributes

 $target_type = 'crs'
 $reference_type = 'crsr'
- Protected Attributes inherited from ilContainerReferenceGUI
 $existing_objects = array()

Additional Inherited Members

- Data Fields inherited from ilContainerReferenceGUI
const MAX_SELECTION_ENTRIES = 50
const MODE_CREATE = 1
const MODE_EDIT = 2
- Protected Member Functions inherited from ilContainerReferenceGUI
 addLocatorItems ()
 Add locator item type $ilLocator.
 initCreateForm ($a_new_type)
 Init object creation form.
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook.
 firstEditObject ()
 show edit screen without info message
 editTitleObject (ilPropertyFormGUI $form=null)
 edit title
 initFormTitle ()
 Init title form.
 updateTitleObject ()
 update title
 showSelection ()
 show selection of containers
 initFormSelection ()
 init form selection
 initFormEditSelection ()
 init form selection
 initTargetSelection ($a_mode=self::MODE_CREATE)
 Init copy from repository/search list commands.

Detailed Description

Constructor & Destructor Documentation

ilObjCourseReferenceGUI::__construct (   $a_data,
  $a_id,
  $a_call_by_reference = true,
  $a_prepare_output = true 
)

Constructor.

Parameters
@return

Reimplemented from ilContainerReferenceGUI.

Definition at line 44 of file class.ilObjCourseReferenceGUI.php.

{
parent::__construct($a_data, $a_id,true,false);
}

Member Function Documentation

static ilObjCourseReferenceGUI::_goto (   $a_target)
static

Support for goto php.

Returns
void

Definition at line 118 of file class.ilObjCourseReferenceGUI.php.

References $ilErr, ilObjectGUI\$lng, ilObject\_lookupObjId(), and ilContainerReference\_lookupTargetRefId().

{
global $ilAccess, $ilErr, $lng;
include_once('./Services/ContainerReference/classes/class.ilContainerReference.php');
include_once('./Modules/Course/classes/class.ilObjCourseGUI.php');
ilObjCourseGUI::_goto($target_ref_id);
}

+ Here is the call graph for this function:

ilObjCourseReferenceGUI::executeCommand ( )

Execute command.

public

Reimplemented from ilObjectGUI.

Definition at line 55 of file class.ilObjCourseReferenceGUI.php.

References $cmd, $ilErr, and ilObjectGUI\prepareOutput().

{
global $rbacsystem,$ilErr,$ilAccess;
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
$this->prepareOutput();
switch($next_class)
{
case 'ilpermissiongui':
$this->tabs_gui->setTabActive('perm_settings');
include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
$this->ctrl->forwardCommand(new ilPermissionGUI($this));
break;
default:
if(!$cmd || $cmd == 'view')
{
$cmd = "edit";
}
$cmd .= "Object";
$this->$cmd();
break;
}
return true;
}

+ Here is the call graph for this function:

ilObjCourseReferenceGUI::getTabs (   $tabs_gui)

get tabs

@access public
Parameters
objecttabs gui object

Definition at line 91 of file class.ilObjCourseReferenceGUI.php.

{
global $ilAccess, $ilHelp;
$ilHelp->setScreenIdComponent("crsr");
if($ilAccess->checkAccess('write','',$this->object->getRefId()))
{
$tabs_gui->addTarget("edit",
$this->ctrl->getLinkTarget($this, "edit"),
array(),
"");
}
if ($ilAccess->checkAccess('edit_permission','',$this->object->getRefId()))
{
$tabs_gui->addTarget("perm_settings",
$this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"),
array("perm","info","owner"), 'ilpermissiongui');
}
}

Field Documentation

ilObjCourseReferenceGUI::$reference_type = 'crsr'
protected

Definition at line 37 of file class.ilObjCourseReferenceGUI.php.

ilObjCourseReferenceGUI::$target_type = 'crs'
protected

Definition at line 36 of file class.ilObjCourseReferenceGUI.php.


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