ILIAS  Release_4_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 ()
 edit object
 updateObject ()
 update object
 getTargetType ()
 get target type
 getReferenceType ()
 get reference type
- 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 ()
 undeleteObject ()
 Get objects back from trash.
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled
 cancelDeleteObject ()
 cancel deletion of object
 removeFromSystemObject ()
 remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method
 cancelObject ($in_rep=false)
 cancel action and go back to previous page public
 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.
 trashObject ()
 Show trash content of object.
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl.
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI.
 copyWizardHasOptions ($a_mode)
 Check if there is any modules specific option.

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.

Protected Attributes

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

Additional Inherited Members

- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 $ilias
 $objDefinition
 $tpl
 $tree
 $lng
 $data
 $object
 $ref_id
 $obj_id
 $maxcount
 $formaction
 $return_location
 $target_frame
 $tab_target_script
 $actions
 $sub_objects
 $omit_locator = false
- Protected Member Functions inherited from ilContainerReferenceGUI
 showSelection ()
 show selection of containers
 initFormSelection ()
 init form selection
 initFormEditSelection ()
 init form selection

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 117 of file class.ilObjCourseReferenceGUI.php.

References $ilErr, ilObjectGUI\$lng, $target_ref_id, 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');
}

+ 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;
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: