ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPCTableGUI Class Reference

Class ilPCTableGUI. More...

+ Inheritance diagram for ilPCTableGUI:
+ Collaboration diagram for ilPCTableGUI:

Public Member Functions

 ilPCTableGUI (&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="")
 Constructor public.
executeCommand ()
 execute command
 setTabs ()
 Set tabs.
 edit ()
 edit properties form
 renderTable ($a_mode="table_edit")
 Render the table.
 editCells ()
 edit properties form
 setStylesAndWidths ()
 Set cell styles and widths.
 setWidth ()
 set width of selected table data cells
 setClass ()
 set class of selected table data cells
 setProperties ()
 saveProperties ()
 save table properties in db and return to page edit screen
 rightAlign ()
 align table to right
 leftAlign ()
 align table to left
 centerAlign ()
 align table to left
 leftFloatAlign ()
 align table to left float
 rightFloatAlign ()
 align table to left
 insert ()
 insert new table form
 create ()
 create new table in dom and update page in db
- Public Member Functions inherited from ilPageContentGUI
 ilPageContentGUI (&$a_pg_obj, &$a_content_obj, $a_hier_id=0, $a_pc_id="")
 Constructor public.
 getHierId ()
 get hierarchical id in dom object
 setHierId ($a_hier_id)
 get hierarchical id in dom object
 getBBMenu ()
 Get the bb menu incl.
 delete ()
 delete content element
 moveAfter ()
 move content element after another element
 moveBefore ()
 move content element before another element
 splitPage ()
 split page to new page at specified position
 splitPageNext ()
 split page to next page at specified position
 displayValidationError ()
 display validation errors
 cancelCreate ()
 cancel creating page content
 cancelUpdate ()
 cancel update
 deactivate ()
 gui function set enabled if is not enabled and vice versa

Additional Inherited Members

- Data Fields inherited from ilPageContentGUI
 $content_obj
 $ilias
 $tpl
 $lng
 $ctrl
 $pg_obj
 $hier_id
 $dom
 $updated
 $target_script
 $return_location

Detailed Description

Class ilPCTableGUI.

User Interface for Table Editing

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilPCTableGUI.php 18052 2008-11-24 15:28:54Z akill

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

Member Function Documentation

ilPCTableGUI::centerAlign ( )

align table to left

Definition at line 383 of file class.ilPCTableGUI.php.

References $_SESSION.

{
$this->content_obj->setHorizontalAlign("Center");
$_SESSION["il_pg_error"] = $this->pg_obj->update();
$this->ctrl->returnToParent($this, "jump".$this->hier_id);
}
ilPCTableGUI::create ( )

create new table in dom and update page in db

Reimplemented in ilPCDataTableGUI.

Definition at line 592 of file class.ilPCTableGUI.php.

References ilPageContentGUI\$lng, insert(), and ilUtil\stripSlashes().

{
global $lng;
$this->content_obj = new ilPCTable($this->dom);
$this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id);
$this->content_obj->setLanguage(ilUtil::stripSlashes($_POST["tab_language"]));
$import_table = trim($_POST["import_table"]);
// import xhtml or spreadsheet table
if (!empty ($import_table))
{
switch($_POST["import_type"])
{
// xhtml import
case "html":
if (!$this->content_obj->importHtml ($_POST["tab_language"], $import_table))
{
$this->insert();
return;
}
break;
// spreadsheet
case "spreadsheet":
$this->content_obj->importSpreadsheet($_POST["tab_language"], $import_table);
break;
}
}
else
{
$this->content_obj->addRows(ilUtil::stripSlashes($_POST["nr_rows"]),
ilUtil::stripSlashes($_POST["nr_cols"]));
}
$this->content_obj->setWidth(ilUtil::stripSlashes($_POST["width"]));
$this->content_obj->setBorder(ilUtil::stripSlashes($_POST["border"]));
$this->content_obj->setCellPadding(ilUtil::stripSlashes($_POST["padding"]));
$this->content_obj->setCellSpacing(ilUtil::stripSlashes($_POST["spacing"]));
$this->content_obj->setHorizontalAlign(ilUtil::stripSlashes($_POST["align"]));
$frtype = ilUtil::stripSlashes($_POST["first_row_style"]);
if ($frtype != "")
{
$this->content_obj->setFirstRowStyle($frtype);
}
$this->updated = $this->pg_obj->update();
if ($this->updated === true)
{
$this->ctrl->returnToParent($this, "jump".$this->hier_id);
}
else
{
$this->insert();
}
}

+ Here is the call graph for this function:

ilPCTableGUI::edit ( )

edit properties form

Reimplemented in ilPCDataTableGUI.

Definition at line 94 of file class.ilPCTableGUI.php.

References $ilCtrl, $lang, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilMDLanguageItem\_getLanguages(), ilPageContentGUI\displayValidationError(), ilSelectInputGUI\setOptions(), setTabs(), and ilTextInputGUI\setValue().

Referenced by saveProperties(), setClass(), and setWidth().

{
global $ilCtrl, $lng, $tpl;
$this->setTabs();
// edit form
include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
$form = new ilPropertyFormGUI();
$form->setFormAction($ilCtrl->getFormAction($this));
$form->setTitle($this->lng->txt("cont_table_properties"));
// width
$width = new ilTextInputGUI($this->lng->txt("cont_table_width"), "width");
$width->setValue($this->content_obj->getWidth());
$width->setSize(6);
$width->setMaxLength(6);
$form->addItem($width);
// border
$border = new ilTextInputGUI($this->lng->txt("cont_table_border"), "border");
$border->setValue($this->content_obj->getBorder());
$border->setSize(6);
$border->setMaxLength(6);
$form->addItem($border);
// padding
$padding = new ilTextInputGUI($this->lng->txt("cont_table_cellpadding"), "padding");
$padding->setValue($this->content_obj->getCellPadding());
$padding->setSize(6);
$padding->setMaxLength(6);
$form->addItem($padding);
// spacing
$spacing = new ilTextInputGUI($this->lng->txt("cont_table_cellspacing"), "spacing");
$spacing->setValue($this->content_obj->getCellSpacing());
$spacing->setSize(6);
$spacing->setMaxLength(6);
$form->addItem($spacing);
// alignment
$align_opts = array("Left" => $lng->txt("cont_left"),
"Right" => $lng->txt("cont_right"), "Center" => $lng->txt("cont_center"),
"LeftFloat" => $lng->txt("cont_left_float"),
"RightFloat" => $lng->txt("cont_right_float"));
$align = new ilSelectInputGUI($this->lng->txt("cont_align"), "align");
$align->setOptions($align_opts);
$align->setValue($this->content_obj->getHorizontalAlign());
$form->addItem($align);
// caption
$caption = new ilTextInputGUI($this->lng->txt("cont_caption"), "caption");
$caption->setValue($this->content_obj->getCaption());
$caption->setSize(60);
$form->addItem($caption);
// caption align
$ca_opts = array("top" => $lng->txt("cont_top"),
"bottom" => $lng->txt("cont_bottom"));
$ca = new ilSelectInputGUI($this->lng->txt("cont_align"),
"cap_align");
$ca->setOptions($ca_opts);
$ca->setValue($this->content_obj->getCaptionAlign());
$caption->addSubItem($ca);
// language
$s_lang = $this->content_obj->getLanguage();
require_once("Services/MetaData/classes/class.ilMDLanguageItem.php");
//$select_language = ilUtil::formSelect ($s_lang, "tab_language", $lang, false, true);
$language = new ilSelectInputGUI($this->lng->txt("language"), "tab_language");
$language->setOptions($lang);
$language->setValue($s_lang);
$form->addItem($language);
$form->addCommandButton("saveProperties", $lng->txt("save"));
$html = $form->getHTML();
$html.= "<br />".$this->renderTable("");
$tpl->setContent($html);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPCTableGUI::editCells ( )

edit properties form

Definition at line 217 of file class.ilPCTableGUI.php.

References $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), setTabs(), and ilRadioMatrixInputGUI\setValue().

{
global $ilCtrl, $tpl, $lng;
$this->setTabs();
// edit form
include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
$form = new ilPropertyFormGUI();
$form->setFormAction($ilCtrl->getFormAction($this));
$form->setTitle($this->lng->txt("cont_table_cell_properties"));
// first row style
require_once("./Services/Form/classes/class.ilRadioMatrixInputGUI.php");
$style = new ilRadioMatrixInputGUI($this->lng->txt("cont_style"), "style");
$options = array("" => $this->lng->txt("none"), "ilc_Cell1" => "Cell1", "ilc_Cell2" => "Cell2",
"ilc_Cell3" => "Cell3", "ilc_Cell4" => "Cell4");
foreach($options as $k => $option)
{
$options[$k] = '<table border="0" cellspacing="0" cellpadding="0"><tr><td class="'.$k.'">'.
$option.'</td></tr></table>';
}
$style->setValue("");
$style->setInfo($lng->txt("cont_set_tab_style_info"));
$style->setOptions($options);
$form->addItem($style);
$form->setKeepOpen(true);
$form->addCommandButton("setStylesAndWidths", $lng->txt("cont_set_styles_and_widths"));
$html = $form->getHTML();
$html.= "<br />".$this->renderTable()."</form>";
$tpl->setContent($html);
}

+ Here is the call graph for this function:

& ilPCTableGUI::executeCommand ( )

execute command

Reimplemented in ilPCDataTableGUI.

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

References $cmd, and $ret.

{
// get next class that processes or forwards current command
$next_class = $this->ctrl->getNextClass($this);
// get current command
$cmd = $this->ctrl->getCmd();
switch($next_class)
{
default:
$ret =& $this->$cmd();
break;
}
return $ret;
}
ilPCTableGUI::ilPCTableGUI ( $a_pg_obj,
$a_content_obj,
  $a_hier_id,
  $a_pc_id = "" 
)

Constructor public.

Definition at line 44 of file class.ilPCTableGUI.php.

References ilPageContentGUI\ilPageContentGUI().

{
parent::ilPageContentGUI($a_pg_obj, $a_content_obj, $a_hier_id, $a_pc_id);
}

+ Here is the call graph for this function:

ilPCTableGUI::insert ( )

insert new table form

Reimplemented in ilPCDataTableGUI.

Definition at line 413 of file class.ilPCTableGUI.php.

References $_GET, $_SESSION, $ilCtrl, $lang, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilMDLanguageItem\_getLanguages(), ilRadioOption\addSubItem(), ilPageContentGUI\displayValidationError(), formSelect(), ilSelectInputGUI\setOptions(), ilTextInputGUI\setValue(), and ilRadioMatrixInputGUI\setValue().

Referenced by create().

{
global $ilUser, $ilCtrl, $tpl, $lng;
// edit form
include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
$form = new ilPropertyFormGUI();
$form->setFormAction($ilCtrl->getFormAction($this));
$form->setTitle($this->lng->txt("cont_insert_table"));
$nr = array();
for($i=1; $i<=20; $i++)
{
$nr[$i] = $i;
}
// cols
$cols = new ilSelectInputGUI($this->lng->txt("cont_nr_cols"), "nr_cols");
$cols->setOptions($nr);
$cols->setValue(2);
$form->addItem($cols);
// rows
$rows = new ilSelectInputGUI($this->lng->txt("cont_nr_rows"), "nr_rows");
$rows->setOptions($nr);
$rows->setValue(2);
$form->addItem($rows);
// width
$width = new ilTextInputGUI($this->lng->txt("cont_table_width"), "width");
$width->setValue("");
$width->setSize(6);
$width->setMaxLength(6);
$form->addItem($width);
// border
$border = new ilTextInputGUI($this->lng->txt("cont_table_border"), "border");
$border->setValue("1px");
$border->setSize(6);
$border->setMaxLength(6);
$form->addItem($border);
// padding
$padding = new ilTextInputGUI($this->lng->txt("cont_table_cellpadding"), "padding");
$padding->setValue("2px");
$padding->setSize(6);
$padding->setMaxLength(6);
$form->addItem($padding);
// spacing
$spacing = new ilTextInputGUI($this->lng->txt("cont_table_cellspacing"), "spacing");
$spacing->setValue("0px");
$spacing->setSize(6);
$spacing->setMaxLength(6);
$form->addItem($spacing);
// first row style
require_once("./Services/Form/classes/class.ilRadioMatrixInputGUI.php");
$fr_style = new ilRadioMatrixInputGUI($this->lng->txt("cont_first_row_style"), "first_row_style");
$options = array("" => $this->lng->txt("none"), "ilc_Cell1" => "Cell1", "ilc_Cell2" => "Cell2",
"ilc_Cell3" => "Cell3", "ilc_Cell4" => "Cell4");
foreach($options as $k => $option)
{
$options[$k] = '<table border="0" cellspacing="0" cellpadding="0"><tr><td class="'.$k.'">'.
$option.'</td></tr></table>';
}
$fr_style->setValue("");
$fr_style->setOptions($options);
$form->addItem($fr_style);
// alignment
$align_opts = array("Left" => $lng->txt("cont_left"),
"Right" => $lng->txt("cont_right"), "Center" => $lng->txt("cont_center"),
"LeftFloat" => $lng->txt("cont_left_float"),
"RightFloat" => $lng->txt("cont_right_float"));
$align = new ilSelectInputGUI($this->lng->txt("cont_align"), "align");
$align->setOptions($align_opts);
$align->setValue("Center");
$form->addItem($align);
// import table
$import = new ilRadioGroupInputGUI($this->lng->txt("cont_paste_table"), "import_type");
$op = new ilRadioOption($this->lng->txt("cont_html_table"), "html");
$import->addOption($op);
$op2 = new ilRadioOption($this->lng->txt("cont_spreadsheet_table"), "spreadsheet");
$import_data = new ilTextAreaInputGUI("", "import_table");
$import_data->setRows(8);
$import_data->setCols(50);
$op2->addSubItem($import_data);
$import->addOption($op2);
$import->setValue("html");
$form->addItem($import);
// language
if ($_SESSION["il_text_lang_".$_GET["ref_id"]] != "")
{
$s_lang = $_SESSION["il_text_lang_".$_GET["ref_id"]];
}
else
{
$s_lang = $ilUser->getLanguage();
}
require_once("Services/MetaData/classes/class.ilMDLanguageItem.php");
//$select_language = ilUtil::formSelect ($s_lang, "tab_language", $lang, false, true);
$language = new ilSelectInputGUI($this->lng->txt("language"), "tab_language");
$language->setOptions($lang);
$language->setValue($s_lang);
$form->addItem($language);
$form->addCommandButton("create_tab", $lng->txt("save"));
$form->addCommandButton("cancelCreate", $lng->txt("cancel"));
$html = $form->getHTML();
$tpl->setContent($html);
return;
// new table form (input of rows and columns)
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.table_new.html", "Services/COPage");
$this->tpl->setVariable("TXT_ACTION", $this->lng->txt("cont_insert_table"));
$this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
for($i=1; $i<=10; $i++)
{
$nr[$i] = $i;
}
if ($_SESSION["il_text_lang_".$_GET["ref_id"]] != "")
{
$s_lang = $_SESSION["il_text_lang_".$_GET["ref_id"]];
}
else
{
$s_lang = $ilUser->getLanguage();
}
// select fields for number of columns
$this->tpl->setVariable("TXT_LANGUAGE", $this->lng->txt("language"));
require_once("Services/MetaData/classes/class.ilMDLanguageItem.php");
$select_language = ilUtil::formSelect ($s_lang, "tab_language", $lang, false, true);
$this->tpl->setVariable("SELECT_LANGUAGE", $select_language);
$this->tpl->setVariable("TXT_COLS", $this->lng->txt("cont_nr_cols"));
$select_cols = ilUtil::formSelect ("2","nr_cols",$nr,false,true);
$this->tpl->setVariable("SELECT_COLS", $select_cols);
$this->tpl->setVariable("TXT_ROWS", $this->lng->txt("cont_nr_rows"));
$select_rows = ilUtil::formSelect ("2","nr_rows",$nr,false,true);
$this->tpl->setVariable("SELECT_ROWS", $select_rows);
//import html table
$this->tpl->setVariable("TXT_HTML_IMPORT", $this->lng->txt("cont_table_html_import"));
$this->tpl->setVariable("TXT_SPREADSHEET", $this->lng->txt("cont_table_spreadsheet_import"));
$this->tpl->setVariable("TXT_BTN_HTML_IMPORT", $this->lng->txt("import"));
$this->tpl->setVariable("TXT_HTML_IMPORT_INFO", $this->lng->txt("cont_table_html_import_info"));
$this->tpl->setVariable("TXT_SPREADSHEET_IMPORT_INFO", $this->lng->txt("cont_table_spreadsheet_import_info"));
$this->tpl->setVariable("CMD_HTML_IMPORT", "create_tab");
$this->tpl->setVariable("SELECT_ROWS", $select_rows);
// $this->tpl->parseCurrentBlock();
// operations
$this->tpl->setCurrentBlock("commands");
$this->tpl->setVariable("BTN_NAME", "create_tab");
$this->tpl->setVariable("BTN_TEXT", $this->lng->txt("save"));
$this->tpl->setVariable("BTN_CANCEL", "cancelCreate");
$this->tpl->setVariable("TXT_CANCEL", $this->lng->txt("cancel"));
$this->tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPCTableGUI::leftAlign ( )

align table to left

Definition at line 373 of file class.ilPCTableGUI.php.

References $_SESSION.

{
$this->content_obj->setHorizontalAlign("Left");
$_SESSION["il_pg_error"] = $this->pg_obj->update();
$this->ctrl->returnToParent($this, "jump".$this->hier_id);
}
ilPCTableGUI::leftFloatAlign ( )

align table to left float

Definition at line 393 of file class.ilPCTableGUI.php.

References $_SESSION.

{
$this->content_obj->setHorizontalAlign("LeftFloat");
$_SESSION["il_pg_error"] = $this->pg_obj->update();
$this->ctrl->returnToParent($this, "jump".$this->hier_id);
}
ilPCTableGUI::renderTable (   $a_mode = "table_edit")

Render the table.

Definition at line 180 of file class.ilPCTableGUI.php.

References $mobs, ilUtil\getImagePath(), ilUtil\getWebspaceDir(), xslt_create(), xslt_error(), xslt_free(), and xslt_process().

{
global $ilUser;
$tab_node = $this->content_obj->getNode();
$content = $this->dom->dump_node($tab_node);
$trans = $this->pg_obj->getLanguageVariablesXML();
$mobs = $this->pg_obj->getMultimediaXML();
$content = "<dummy>".$content.$mobs.$trans."</dummy>";
$xsl = file_get_contents("./Services/COPage/xsl/page.xsl");
$args = array( '/_xml' => $content, '/_xsl' => $xsl );
$xh = xslt_create();
//echo "<b>XML</b>:".htmlentities($content).":<br>";
//echo "<b>XSLT</b>:".htmlentities($xsl).":<br>";
$med_disabled_path = ilUtil::getImagePath("media_disabled.gif");
$wb_path = ilUtil::getWebspaceDir("output");
$enlarge_path = ilUtil::getImagePath("enlarge.gif");
$params = array ('mode' => $a_mode,
'med_disabled_path' => $med_disabled_path,
'media_mode' => $ilUser->getPref("ilPageEditor_MediaMode"),
'webspace_path' => $wb_path, 'enlarge_path' => $enlarge_path);
$output = xslt_process($xh,"arg:/_xml","arg:/_xsl",NULL,$args, $params);
echo xslt_error($xh);
xslt_free($xh);
// unmask user html
$output = str_replace("&lt;","<",$output);
$output = str_replace("&gt;",">",$output);
$output = str_replace("&amp;","&",$output);
return '<div style="float:left;">'.$output.'</div>';
}

+ Here is the call graph for this function:

ilPCTableGUI::rightAlign ( )

align table to right

Definition at line 363 of file class.ilPCTableGUI.php.

References $_SESSION.

{
$this->content_obj->setHorizontalAlign("Right");
$_SESSION["il_pg_error"] = $this->pg_obj->update();
$this->ctrl->returnToParent($this, "jump".$this->hier_id);
}
ilPCTableGUI::rightFloatAlign ( )

align table to left

Definition at line 403 of file class.ilPCTableGUI.php.

References $_SESSION.

{
$this->content_obj->setHorizontalAlign("RightFloat");
$_SESSION["il_pg_error"] = $this->pg_obj->update();
$this->ctrl->returnToParent($this, "jump".$this->hier_id);
}
ilPCTableGUI::saveProperties ( )

save table properties in db and return to page edit screen

Definition at line 344 of file class.ilPCTableGUI.php.

References edit(), and setProperties().

{
$this->setProperties();
$this->updated = $this->pg_obj->update();
if ($this->updated === true)
{
$this->ctrl->redirect($this, "edit");
//$this->ctrl->returnToParent($this, "jump".$this->hier_id);
}
else
{
$this->pg_obj->addHierIDs();
$this->edit();
}
}

+ Here is the call graph for this function:

ilPCTableGUI::setClass ( )

set class of selected table data cells

Reimplemented in ilPCDataTableGUI.

Definition at line 306 of file class.ilPCTableGUI.php.

References edit(), and setProperties().

{
if (is_array($_POST["target"]))
{
foreach ($_POST["target"] as $target)
{
$cid = explode(":", $target);
$this->content_obj->setTDClass($cid[0], $_POST["td_class"], $cid[1]);
}
}
$this->setProperties();
$this->updated = $this->pg_obj->update();
$this->pg_obj->addHierIDs();
$this->edit();
}

+ Here is the call graph for this function:

ilPCTableGUI::setProperties ( )

Definition at line 323 of file class.ilPCTableGUI.php.

References ilUtil\stripSlashes().

Referenced by saveProperties(), setClass(), ilPCDataTableGUI\setClass(), setWidth(), and ilPCDataTableGUI\setWidth().

{
// mask html
$caption = ilUtil::stripSlashes($_POST["caption"]);
$caption = str_replace("&","&amp;", $caption);
$caption = str_replace("<","&lt;", $caption);
$caption = str_replace(">","&gt;", $caption);
$this->content_obj->setLanguage(ilUtil::stripSlashes($_POST["language"]));
$this->content_obj->setWidth(ilUtil::stripSlashes($_POST["width"]));
$this->content_obj->setBorder(ilUtil::stripSlashes($_POST["border"]));
$this->content_obj->setCellSpacing(ilUtil::stripSlashes($_POST["spacing"]));
$this->content_obj->setCellPadding(ilUtil::stripSlashes($_POST["padding"]));
$this->content_obj->setHorizontalAlign(ilUtil::stripSlashes($_POST["align"]));
$this->content_obj->setCaption($caption,
ilUtil::stripSlashes($_POST["cap_align"]));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPCTableGUI::setStylesAndWidths ( )

Set cell styles and widths.

Definition at line 258 of file class.ilPCTableGUI.php.

{
if (is_array($_POST["target"]))
{
foreach ($_POST["target"] as $k => $value)
{
if ($value > 0)
{
$cid = explode(":", $k);
$this->content_obj->setTDClass($cid[0], $_POST["style"], $cid[1]);
}
}
}
if (is_array($_POST["width"]))
{
foreach ($_POST["width"] as $k => $width)
{
$cid = explode(":", $k);
$this->content_obj->setTDWidth($cid[0], $width, $cid[1]);
}
}
$this->updated = $this->pg_obj->update();
$this->ctrl->redirect($this, "editCells");
}
ilPCTableGUI::setTabs ( )

Set tabs.

Reimplemented in ilPCDataTableGUI.

Definition at line 74 of file class.ilPCTableGUI.php.

References $ilCtrl, and ilPageContentGUI\$lng.

Referenced by edit(), and editCells().

{
global $ilTabs, $ilCtrl, $lng;
$ilTabs->setBackTarget($lng->txt("pg"),
$this->ctrl->getParentReturn($this));
$ilTabs->addTarget("cont_table_properties",
$ilCtrl->getLinkTarget($this, "edit"), "edit",
get_class($this));
$ilTabs->addTarget("cont_table_cell_properties",
$ilCtrl->getLinkTarget($this, "editCells"), "editCells",
get_class($this));
}

+ Here is the caller graph for this function:

ilPCTableGUI::setWidth ( )

set width of selected table data cells

Reimplemented in ilPCDataTableGUI.

Definition at line 286 of file class.ilPCTableGUI.php.

References edit(), and setProperties().

{
if (is_array($_POST["target"]))
{
foreach ($_POST["target"] as $target)
{
$cid = explode(":", $target);
$this->content_obj->setTDWidth($cid[0], $_POST["td_width"], $cid[1]);
}
}
$this->setProperties();
$this->updated = $this->pg_obj->update();
$this->pg_obj->addHierIDs();
$this->edit();
}

+ Here is the call graph for this function:


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