Public Member Functions | Data Fields

ilPageContent Class Reference

Inheritance diagram for ilPageContent:

Public Member Functions

 ilPageContent ()
 Constructor public.
 setType ($a_type)
 getType ()
 setNode (&$a_node)
getNode ()
 setHierId ($a_hier_id)
 set hierarchical id
 getHierId ()
 get hierarchical id
 incEdId ($ed_id)
 static class method increases an hierarchical editing id at lowest level (last number)
 decEdId ($ed_id)
 static class method decreases an hierarchical editing id at lowest level (last number)
 haveSameContainer ($ed_id1, $ed_id2)
 static class method check, if two ids are in same container

Data Fields

 $ilias
 $type
 $hier_id
 $node

Detailed Description

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


Member Function Documentation

ilPageContent::decEdId ( ed_id  ) 

static class method decreases an hierarchical editing id at lowest level (last number)

Definition at line 112 of file class.ilPageContent.php.

References $id.

        {
                $id = explode("_", $ed_id);
                $id[count($id) - 1]--;
                return implode($id, "_");
        }

ilPageContent::getHierId (  ) 

get hierarchical id

Definition at line 92 of file class.ilPageContent.php.

Referenced by ilPCTableData::deleteCol(), ilPCTable::getCaption(), ilPCTable::getCaptionAlign(), ilPCTableData::moveColLeft(), ilPCTableData::moveColRight(), ilPCTableData::newColAfter(), and ilPCTableData::newColBefore().

        {
                return $this->hier_id;
        }

Here is the caller graph for this function:

& ilPageContent::getNode (  ) 
ilPageContent::getType (  ) 

Reimplemented in ilPCParagraph, and ilPCQuestion.

Definition at line 61 of file class.ilPageContent.php.

        {
                return $this->type;
        }

ilPageContent::haveSameContainer ( ed_id1,
ed_id2 
)

static class method check, if two ids are in same container

Definition at line 123 of file class.ilPageContent.php.

References $id.

        {
                $id1 = explode("_", $ed_id1);
                $id2 = explode("_", $ed_id1);
                if(count($id1) == count($id2))
                {
                        array_pop($id1);
                        array_pop($id2);
                        foreach ($id1 as $key => $id)
                        {
                                if($id != $id2[$key])
                                {
                                        return false;
                                }
                        }
                        return true;
                }
                return false;
        }

ilPageContent::ilPageContent (  ) 

Constructor public.

Definition at line 48 of file class.ilPageContent.php.

References $ilias.

Referenced by ilPCFileItem::ilPCFileItem(), ilPCFileList::ilPCFileList(), ilPCList::ilPCList(), ilPCListItem::ilPCListItem(), ilPCParagraph::ilPCParagraph(), ilPCQuestion::ilPCQuestion(), ilPCTable::ilPCTable(), and ilPCTableData::ilPCTableData().

        {
                global $ilias;

                $this->ilias =& $ilias;
        }

Here is the caller graph for this function:

ilPageContent::incEdId ( ed_id  ) 

static class method increases an hierarchical editing id at lowest level (last number)

Definition at line 101 of file class.ilPageContent.php.

References $id.

Referenced by ilPageObject::addHierIDs().

        {
                $id = explode("_", $ed_id);
                $id[count($id) - 1]++;
                return implode($id, "_");
        }

Here is the caller graph for this function:

ilPageContent::setHierId ( a_hier_id  ) 

set hierarchical id

Definition at line 84 of file class.ilPageContent.php.

        {
                $this->hier_id = $a_hier_id;
        }

ilPageContent::setNode ( &$  a_node  ) 

Reimplemented in ilPCFileList, ilPCList, ilPCParagraph, ilPCQuestion, and ilPCTable.

Definition at line 68 of file class.ilPageContent.php.

        {
                $this->node =& $a_node;
        }

ilPageContent::setType ( a_type  ) 

Field Documentation

ilPageContent::$hier_id
ilPageContent::$ilias

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

Referenced by ilPageContent().

ilPageContent::$node
ilPageContent::$type

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


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