ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilPCParagraphGUI. More...
Public Member Functions | |
__construct ($a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="") | |
Constructor public. More... | |
executeCommand () | |
execute command More... | |
edit ($a_insert=false) | |
edit paragraph form More... | |
determineCharacteristic ($a_insert=false) | |
Determine current characteristic. More... | |
editJS () | |
Edit paragraph (Ajax mode, sends the content of the paragraph) More... | |
editMultipleJS () | |
Edit multiple paragraphs (Ajax mode, sends the content of the paragraphs) More... | |
saveJS () | |
Save paragraph by JS call. More... | |
outputError ($a_err) | |
Output error. More... | |
cancel () | |
Cancel. More... | |
insertCharacteristicTable ($a_tpl, $a_seleted_value) | |
Insert characteristic table. More... | |
insertStyleSelectionList ($a_tpl, $a_selected) | |
Insert style selection list. More... | |
insert () | |
insert paragraph form More... | |
update () | |
update paragraph in dom and update page in db More... | |
create () | |
create new paragraph in dom and update page in db More... | |
createJS () | |
Create paragraph per JS. More... | |
insertHelp ($a_tpl) | |
Insert Help. More... | |
Public Member Functions inherited from ilPageContentGUI | |
__construct ($a_pg_obj, $a_content_obj, $a_hier_id=0, $a_pc_id="") | |
Constructor public. More... | |
setContentObject ($a_val) | |
Set content object. More... | |
getContentObject () | |
Get content object. More... | |
setPage ($a_val) | |
Set page. More... | |
getPage () | |
Get page. More... | |
setPageConfig ($a_val) | |
Set Page Config. More... | |
getPageConfig () | |
Get Page Config. More... | |
setStyleId ($a_styleid) | |
Set Style Id. More... | |
getStyleId () | |
Get Style Id. More... | |
getStyle () | |
Get style object. More... | |
setCharacteristics ($a_chars) | |
Set Characteristics. More... | |
getCharacteristics () | |
Get characteristics. More... | |
getHierId () | |
get hierarchical id in dom object More... | |
setHierId ($a_hier_id) | |
get hierarchical id in dom object More... | |
getBBMenu ($a_ta_name="par_content") | |
Get the bb menu incl. More... | |
delete () | |
delete content element More... | |
moveAfter () | |
move content element after another element More... | |
moveBefore () | |
move content element before another element More... | |
splitPage () | |
split page to new page at specified position More... | |
splitPageNext () | |
split page to next page at specified position More... | |
displayValidationError () | |
display validation errors More... | |
cancelCreate () | |
cancel creating page content More... | |
cancelUpdate () | |
cancel update More... | |
cancel () | |
Cancel. More... | |
deactivate () | |
gui function set enabled if is not enabled and vice versa More... | |
cut () | |
Cut single element. More... | |
copy () | |
Copy single element. More... | |
getTemplateOptions ($a_type) | |
Get table templates. More... | |
Static Public Member Functions | |
static | _getStandardCharacteristics () |
Get standard characteristics. More... | |
static | _getCharacteristics ($a_style_id) |
Get characteristics. More... | |
static | _getTextCharacteristics ($a_style_id, $a_include_core=false) |
Get text characteristics. More... | |
static | xml2outputJS ($s_text, $char, $a_pc_id) |
Prepare content for js output. More... | |
static | getStyleSelector ($a_selected, $a_chars, $a_use_callback=false) |
Get style selector. More... | |
static | getCharStyleSelector ($a_par_type, $a_use_callback=true, $a_style_id=0) |
Get character style selector. More... | |
Static Public Member Functions inherited from ilPageContentGUI | |
static | _getCommonBBButtons () |
Get common bb buttons. More... | |
Private Member Functions | |
setStyle () | |
Set Style. More... | |
Additional Inherited Members | |
Data Fields inherited from ilPageContentGUI | |
$content_obj | |
$ilias | |
$tpl | |
$lng | |
$ctrl | |
$pg_obj | |
$hier_id | |
$dom | |
$updated | |
$target_script | |
$return_location | |
$page_config = null | |
Static Public Attributes inherited from ilPageContentGUI | |
static | $style_selector_reset = "margin-top:2px; margin-bottom:2px; text-indent:0px; position:static; float:none; width: auto;" |
Protected Member Functions inherited from ilPageContentGUI | |
getCharacteristicsOfCurrentStyle ($a_type) | |
Get characteristics of current style. More... | |
Protected Attributes inherited from ilPageContentGUI | |
$log | |
Static Protected Attributes inherited from ilPageContentGUI | |
static | $common_bb_buttons |
Class ilPCParagraphGUI.
User Interface for Paragraph Editing
Definition at line 17 of file class.ilPCParagraphGUI.php.
ilPCParagraphGUI::__construct | ( | $a_pg_obj, | |
& | $a_content_obj, | ||
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Constructor public.
Definition at line 23 of file class.ilPCParagraphGUI.php.
References _getStandardCharacteristics(), and ilPageContentGUI\setCharacteristics().
|
static |
Get characteristics.
Definition at line 55 of file class.ilPCParagraphGUI.php.
References $style, $t, _getStandardCharacteristics(), ilObject\_lookupType(), and array.
Referenced by ilPageObjectGUI\getTinyMenu(), and ilPageEditorGUI\initCharacteristicForm().
|
static |
Get standard characteristics.
Definition at line 34 of file class.ilPCParagraphGUI.php.
References ilPageContentGUI\$lng, and array.
Referenced by __construct(), and _getCharacteristics().
|
static |
Get text characteristics.
int | $a_style_id | |
bool | $a_include_core | include core styles |
Definition at line 97 of file class.ilPCParagraphGUI.php.
References $style, $t, ilObject\_lookupType(), and array.
Referenced by getCharStyleSelector(), and ilPageObjectGUI\showPage().
ilPCParagraphGUI::cancel | ( | ) |
Cancel.
Definition at line 493 of file class.ilPCParagraphGUI.php.
ilPCParagraphGUI::create | ( | ) |
create new paragraph in dom and update page in db
Definition at line 754 of file class.ilPCParagraphGUI.php.
References $_POST, $_SESSION, createJS(), ilPageContentGUI\getPage(), and insert().
ilPCParagraphGUI::createJS | ( | ) |
Create paragraph per JS.
Definition at line 795 of file class.ilPCParagraphGUI.php.
References $_POST, $ilCtrl, $ilUser, exit, ilPageContentGUI\getPage(), outputError(), and ilUtil\stripSlashes().
Referenced by create().
ilPCParagraphGUI::determineCharacteristic | ( | $a_insert = false | ) |
Determine current characteristic.
Definition at line 275 of file class.ilPCParagraphGUI.php.
References $_POST, and ilPageContentGUI\getHierId().
Referenced by edit(), and editJS().
ilPCParagraphGUI::edit | ( | $a_insert = false | ) |
edit paragraph form
Definition at line 146 of file class.ilPCParagraphGUI.php.
References $_GET, $_POST, $_SESSION, $ilUser, $lang, ilPageContentGUI\$tpl, ilMDLanguageItem\_getLanguages(), determineCharacteristic(), ilPageContentGUI\displayValidationError(), ilUtil\formSelect(), ilPageContentGUI\getBBMenu(), insertHelp(), insertStyleSelectionList(), setStyle(), and ilUtil\stripSlashes().
Referenced by insert(), and update().
ilPCParagraphGUI::editJS | ( | ) |
Edit paragraph (Ajax mode, sends the content of the paragraph)
Definition at line 328 of file class.ilPCParagraphGUI.php.
References determineCharacteristic(), exit, and xml2outputJS().
ilPCParagraphGUI::editMultipleJS | ( | ) |
Edit multiple paragraphs (Ajax mode, sends the content of the paragraphs)
Definition at line 353 of file class.ilPCParagraphGUI.php.
References ilPageContentGUI\$ilias, $ilUser, and exit.
ilPCParagraphGUI::executeCommand | ( | ) |
execute command
Definition at line 120 of file class.ilPCParagraphGUI.php.
References $cmd, $ret, array, and ilPageContentGUI\getCharacteristicsOfCurrentStyle().
|
static |
Get character style selector.
Definition at line 601 of file class.ilPCParagraphGUI.php.
References $html, ilPageContentGUI\$lng, $t, _getTextCharacteristics(), array, ilAdvancedSelectionListGUI\DOWN_ARROW_DARK, ilPageEditorSettings\lookupSettingByParentType(), and ilAdvancedSelectionListGUI\ON_ITEM_CLICK_NOP.
Referenced by ilPageContentGUI\getBBMenu(), and ilPageObjectGUI\getTinyMenu().
|
static |
Get style selector.
Definition at line 550 of file class.ilPCParagraphGUI.php.
References $html, $t, array, ilAdvancedSelectionListGUI\DOWN_ARROW_DARK, and ilAdvancedSelectionListGUI\ON_ITEM_CLICK_FORM_SELECT.
Referenced by ilPageObjectGUI\getTinyMenu().
ilPCParagraphGUI::insert | ( | ) |
insert paragraph form
Definition at line 709 of file class.ilPCParagraphGUI.php.
References edit().
Referenced by create().
ilPCParagraphGUI::insertCharacteristicTable | ( | $a_tpl, | |
$a_seleted_value | |||
) |
Insert characteristic table.
Definition at line 502 of file class.ilPCParagraphGUI.php.
References array, and ilPageContentGUI\getCharacteristics().
ilPCParagraphGUI::insertHelp | ( | $a_tpl | ) |
Insert Help.
Definition at line 835 of file class.ilPCParagraphGUI.php.
References ilPageContentGUI\$lng, and ilPageContentGUI\getPageConfig().
Referenced by edit().
ilPCParagraphGUI::insertStyleSelectionList | ( | $a_tpl, | |
$a_selected | |||
) |
Insert style selection list.
object | $a_tpl | |
string | $a_selected |
Definition at line 541 of file class.ilPCParagraphGUI.php.
References ilPageContentGUI\getCharacteristics().
Referenced by edit().
ilPCParagraphGUI::outputError | ( | $a_err | ) |
Output error.
array | $a_err | error array |
Definition at line 477 of file class.ilPCParagraphGUI.php.
References exit.
Referenced by createJS(), and saveJS().
ilPCParagraphGUI::saveJS | ( | ) |
Save paragraph by JS call.
Definition at line 435 of file class.ilPCParagraphGUI.php.
References $_POST, $ilCtrl, exit, outputError(), and ilUtil\stripSlashes().
|
private |
Set Style.
Definition at line 680 of file class.ilPCParagraphGUI.php.
References ilObjContentObject\_lookupStyleSheetId(), and ilObjStyleSheet\getContentStylePath().
Referenced by edit().
ilPCParagraphGUI::update | ( | ) |
update paragraph in dom and update page in db
Definition at line 718 of file class.ilPCParagraphGUI.php.
References $_POST, and edit().
|
static |
Prepare content for js output.
Definition at line 364 of file class.ilPCParagraphGUI.php.
References ilPageContentGUI\_getCommonBBButtons(), array, and ilUtil\attribsToArray().
Referenced by ilPCDataTableGUI\editData(), editJS(), and ilPCParagraph\getParagraphSequenceContent().