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
 setEnabled ($value)
 boolean accessor to enable/disable a paragraph
 isEnabled ()
 boolean is PageContent enabled?
 enable ()
 enable page content
 disable ()
 disable page content

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 113 of file class.ilPageContent.php.

References $id.

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

ilPageContent::disable (  ) 

disable page content

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

References setEnabled().

        {
//              echo "disable<br>";
                $this->setEnabled ("False");
        }

Here is the call graph for this function:

ilPageContent::enable (  ) 

enable page content

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

References setEnabled().

        {
//              echo "enable<br>";
                $this->setEnabled ("True");
        }

Here is the call graph for this function:

ilPageContent::getHierId (  ) 

get hierarchical id

Definition at line 93 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 124 of file class.ilPageContent.php.

References $id, and $key.

        {
                $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 102 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::isEnabled (  ) 

boolean is PageContent enabled?

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

        {
                if (is_object($this->node) && $this->node->has_attribute("Enabled"))
                {
                        $compare = $this->node->get_attribute("Enabled");                                               
                } 
                else $compare = "True";
                
                return strcasecmp($compare,"true") == 0;
        }

ilPageContent::setEnabled ( value  ) 

boolean accessor to enable/disable a paragraph

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

Referenced by disable(), and enable().

         {
                        if (is_object($this->node))
                        {
                                $this->node->set_attribute("Enabled", $value);
                        }
         }

Here is the caller graph for this function:

ilPageContent::setHierId ( a_hier_id  ) 

set hierarchical id

Definition at line 85 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: