Public Member Functions | Data Fields

ilObjFolder Class Reference

Inheritance diagram for ilObjFolder:
Collaboration diagram for ilObjFolder:

Public Member Functions

 ilObjFolder ($a_id=0, $a_call_by_reference=true)
 Constructor public.
 setFolderTree ($a_tree)
 putInTree ($a_parent)
 insert folder into grp_tree

Data Fields

 $folder_tree

Detailed Description

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


Member Function Documentation

ilObjFolder::ilObjFolder ( a_id = 0,
a_call_by_reference = true 
)

Constructor public.

Parameters:
integer reference_id or object_id
boolean treat the id as reference_id (true) or object_id (false)

Definition at line 47 of file class.ilObjFolder.php.

References ilObject::ilObject().

        {
                $this->type = "fold";
                $this->ilObject($a_id,$a_call_by_reference);
        }

Here is the call graph for this function:

ilObjFolder::putInTree ( a_parent  ) 

insert folder into grp_tree

Reimplemented from ilObject.

Definition at line 62 of file class.ilObjFolder.php.

References $tree, ilObject::getId(), ilObject::getRefId(), and ilObject::withReferences().

        {
                global $tree;
                
                if (!is_object($this->folder_tree))
                {
                        $this->folder_tree =& $tree; 
                }

                if ($this->withReferences())
                {
                        // put reference id into tree
                        $this->folder_tree->insertNode($this->getRefId(), $a_parent);
                }
                else
                {
                        // put object id into tree
                        $this->folder_tree->insertNode($this->getId(), $a_parent);
                }
        }

Here is the call graph for this function:

ilObjFolder::setFolderTree ( a_tree  ) 

Definition at line 53 of file class.ilObjFolder.php.

        {
                $this->folder_tree =& $a_tree;
        }


Field Documentation

ilObjFolder::$folder_tree

Definition at line 39 of file class.ilObjFolder.php.


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