Class ilPageContent. More...
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 | |
Class ilPageContent.
Content object of ilPageObject (see ILIAS DTD). Every concrete object should be an instance of a class derived from ilPageContent (e.g. ilParagraph, ilMediaObject, ...)
Definition at line 37 of file class.ilPageContent.php.
| 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.
{
$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 | ( | ) |
Definition at line 76 of file class.ilPageContent.php.
Referenced by ilPCTableData::deleteCol(), ilPCListItem::deleteItem(), ilPCFileItem::deleteItem(), ilPCTableData::deleteRow(), ilPCTableData::moveColLeft(), ilPCTableData::moveColRight(), ilPCListItem::moveItemDown(), ilPCFileItem::moveItemDown(), ilPCListItem::moveItemUp(), ilPCFileItem::moveItemUp(), ilPCTableData::moveRowDown(), ilPCTableData::moveRowUp(), ilPCTableData::newColAfter(), ilPCTableData::newColBefore(), ilPCListItem::newItemAfter(), ilPCFileItem::newItemAfter(), ilPCListItem::newItemBefore(), ilPCFileItem::newItemBefore(), ilPCTableData::newRowAfter(), and ilPCTableData::newRowBefore().
{
return $this->node;
}
Here is the caller graph for this function:| 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.
{
$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.
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 | ) |
Definition at line 56 of file class.ilPageContent.php.
Referenced by ilPCFileItem::ilPCFileItem(), ilPCFileList::ilPCFileList(), ilPCList::ilPCList(), ilPCListItem::ilPCListItem(), ilPCParagraph::ilPCParagraph(), ilPCQuestion::ilPCQuestion(), ilPCTable::ilPCTable(), and ilPCTableData::ilPCTableData().
{
$this->type = $a_type;
}
Here is the caller graph for this function:| ilPageContent::$hier_id |
Definition at line 41 of file class.ilPageContent.php.
Referenced by ilPCTableData::deleteCol(), ilPCTable::getCaption(), ilPCTable::getCaptionAlign(), ilPCTableData::moveColLeft(), ilPCTableData::moveColRight(), ilPCTableData::newColAfter(), and ilPCTableData::newColBefore().
| ilPageContent::$ilias |
Definition at line 39 of file class.ilPageContent.php.
Referenced by ilPageContent().
| ilPageContent::$node |
Definition at line 42 of file class.ilPageContent.php.
Referenced by ilPCParagraph::createAtNode(), ilPCTable::extractText(), ilPCTable::importCellAttributes(), ilPCTable::importHtml(), ilPCTable::importRow(), and ilPCTable::importTableAttributes().
| ilPageContent::$type |
Definition at line 40 of file class.ilPageContent.php.
1.7.1