ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPCConsultationHours Class Reference

Class ilPCConsultationHours. More...

+ Inheritance diagram for ilPCConsultationHours:
+ Collaboration diagram for ilPCConsultationHours:

Public Member Functions

 init ()
 Init page content component.
 setNode (&$a_node)
 Set node.
 create (&$a_pg_obj, $a_hier_id, $a_pc_id="")
 Create consultation hours node in xml.
 setData ($a_mode, array $a_grp_ids)
 Set consultation hours settings.
 getGroupIds ()
 Get consultation hours group ids.
- Public Member Functions inherited from ilPageContent
 __construct ($a_pg_obj)
 Constructor.
 setPage ($a_val)
 Set page.
 getPage ()
 Get page.
 getType ()
 Get type of page content.
getNode ()
 Get xml node of page content.
 getJavascriptFiles ()
 Get Javascript files.
 getCssFiles ()
 Get css files.
 setHierId ($a_hier_id)
 Set hierarchical ID in xml structure.
 getHierId ()
 Get hierarchical id.
 lookupHierId ()
 Get hierarchical id from dom.
 readHierId ()
 Read PC Id.
 setPcId ($a_pcid)
 Set PC Id.
 getPCId ()
 Get PC Id.
 readPCId ()
 Read PC Id.
 writePCId ($a_pc_id)
 Write pc id.
 isGreaterHierId ($a, $b)
 Check whether Hier ID $a is greater than Hier ID $b.
 setEnabled ($value)
 Set Enabled value for page content component.
 enable ()
 Enable page content.
 disable ()
 Disable page content.
 isEnabled ()
 Check whether page content is enabled.
 createPageContentNode ($a_set_this_node=true)
 Create page content node (always use this method first when adding a new element)
 modifyPageContentPostXsl ($a_output, $a_mode)
 Modify page content after xsl.

Static Public Member Functions

static getLangVars ()
 Get lang vars needed for editing.
- Static Public Member Functions inherited from ilPageContent
static incEdId ($ed_id)
 Increases an hierarchical editing id at lowest level (last number)
static decEdId ($ed_id)
 Decreases an hierarchical editing id at lowest level (last number)
static haveSameContainer ($ed_id1, $ed_id2)
 Check, if two ids are in same container.
static sortHierIds ($a_array)
 Sort an array of Hier IDS in ascending order.
static handleCopiedContent (DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false)
 Handle copied content.
static afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation)
 After page has been updated (or created)
static beforePageDelete ($a_page)
 Before page is being deleted.
static afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr)
 After page history entry has been created.

Data Fields

 $dom
- Data Fields inherited from ilPageContent
 $hier_id
 $node
 $dom

Additional Inherited Members

- Protected Member Functions inherited from ilPageContent
 setType ($a_type)
 Set Type.

Detailed Description

Class ilPCConsultationHours.

Consultation hours content object (see ILIAS DTD)

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
Id:
class.ilPCListItem.php 22210 2009-10-26 09:46:06Z akill

Definition at line 16 of file class.ilPCConsultationHours.php.

Member Function Documentation

ilPCConsultationHours::create ( $a_pg_obj,
  $a_hier_id,
  $a_pc_id = "" 
)

Create consultation hours node in xml.

Parameters
object$a_pg_objPage Object
string$a_hier_idHierarchical ID

Definition at line 52 of file class.ilPCConsultationHours.php.

References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.

{
$this->node = $this->createPageContentNode();
$a_pg_obj->insertContent($this, $a_hier_id, IL_INSERT_AFTER, $a_pc_id);
$this->cach_node = $this->dom->create_element("ConsultationHours");
$this->cach_node = $this->node->append_child($this->cach_node);
}

+ Here is the call graph for this function:

ilPCConsultationHours::getGroupIds ( )

Get consultation hours group ids.

Returns
string

Definition at line 99 of file class.ilPCConsultationHours.php.

References $res.

{
$res = array();
if (is_object($this->cach_node))
{
$children = $this->cach_node->child_nodes();
if($children)
{
foreach($children as $child)
{
$res[] = $child->get_attribute("Id");
}
}
}
return $res;
}
static ilPCConsultationHours::getLangVars ( )
static

Get lang vars needed for editing.

Returns
array array of lang var keys

Reimplemented from ilPageContent.

Definition at line 32 of file class.ilPCConsultationHours.php.

{
return array("ed_insert_consultation_hours", "pc_cach");
}
ilPCConsultationHours::init ( )

Init page content component.

Reimplemented from ilPageContent.

Definition at line 23 of file class.ilPCConsultationHours.php.

References ilPageContent\setType().

{
$this->setType("cach");
}

+ Here is the call graph for this function:

ilPCConsultationHours::setData (   $a_mode,
array  $a_grp_ids 
)

Set consultation hours settings.

Parameters
int$a_mode
int$a_grp_id

Definition at line 66 of file class.ilPCConsultationHours.php.

References $ilUser.

{
global $ilUser;
$this->cach_node->set_attribute("Mode", $a_mode);
$this->cach_node->set_attribute("User", $ilUser->getId());
// remove all children first
$children = $this->cach_node->child_nodes();
if($children)
{
foreach($children as $child)
{
$this->cach_node->remove_child($child);
}
}
if($a_mode == "manual")
{
foreach($a_grp_ids as $grp_id)
{
$field_node = $this->dom->create_element("ConsultationHoursGroup");
$field_node = $this->cach_node->append_child($field_node);
$field_node->set_attribute("Id", $grp_id);
}
}
}
ilPCConsultationHours::setNode ( $a_node)

Set node.

Reimplemented from ilPageContent.

Definition at line 40 of file class.ilPCConsultationHours.php.

{
parent::setNode($a_node); // this is the PageContent node
$this->cach_node =& $a_node->first_child(); // this is the consultation hours node
}

Field Documentation

ilPCConsultationHours::$dom

Definition at line 18 of file class.ilPCConsultationHours.php.


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