ILIAS
release_8 Revision v8.19
|
Class ilPCParagraphGUI User Interface for Paragraph Editing. More...
Public Member Functions | |
__construct (ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id, string $a_pc_id="") | |
executeCommand () | |
execute command More... | |
determineCharacteristic (bool $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... | |
outputError (array $a_err) | |
Output error. More... | |
cancel () | |
insertCharacteristicTable (ilTemplate $a_tpl, string $a_seleted_value) | |
Insert characteristic table. More... | |
insertStyleSelectionList (ilTemplate $a_tpl, string $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... | |
insertHelp (ilTemplate $a_tpl) | |
Insert Help. More... | |
![]() | |
__construct (ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id="", string $a_pc_id="0") | |
setContentObject (ilPageContent $a_val) | |
getContentObject () | |
setPage (ilPageObject $a_val) | |
getPage () | |
setPageConfig (ilPageConfig $a_val) | |
getPageConfig () | |
setStyleId (int $a_styleid) | |
getStyleId () | |
getStyle () | |
getCharacteristicsOfCurrentStyle (array $a_type) | |
Get characteristics of current style and call setCharacteristics, if style is given. More... | |
setCharacteristics (array $a_chars) | |
getCharacteristics () | |
getHierId () | |
setHierId (string $a_hier_id) | |
set hierarchical id in dom object More... | |
delete () | |
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 () | |
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 (string $a_type="") | |
Get table templates. More... | |
Static Public Member Functions | |
static | _getStandardCharacteristics () |
Get standard characteristics. More... | |
static | _getStandardTextCharacteristics () |
Get standard characteristics. More... | |
static | _getCharacteristics (int $a_style_id) |
Get characteristics. More... | |
static | xml2outputJS (string $s_text) |
Prepare content for js output. More... | |
static | getStyleSelector (string $a_selected, array $a_chars, bool $a_use_callback=false) |
Get style selector. More... | |
static | getCharStyleSelector (string $a_par_type, bool $a_use_callback=true, int $a_style_id=0) |
Get character style selector. More... | |
![]() | |
static | _getCommonBBButtons () |
Protected Attributes | |
ilObjUser | $user |
![]() | |
EditSessionRepository | $edit_repo |
string | $pc_id = "" |
array | $chars |
ilObjStyleSheet | $style = null |
ilLogger | $log |
int | $styleid = 0 |
EditGUIRequest | $request |
string | $sub_command = "" |
int | $requested_ref_id = 0 |
Style Content CharacteristicManager | $char_manager |
Private Member Functions | |
setStyle () | |
Additional Inherited Members | |
![]() | |
ilPageContent | $content_obj |
ilGlobalTemplateInterface | $tpl |
ilLanguage | $lng |
ilCtrl | $ctrl |
ilPageObject | $pg_obj |
string | $hier_id = "" |
php4DOMDocument | $dom |
$updated | |
string | $target_script = "" |
string | $return_location = "" |
ilPageConfig | $page_config = null |
![]() | |
static string | $style_selector_reset = "margin-top:2px; margin-bottom:2px; text-indent:0px; position:static; float:none; width: auto;" |
![]() | |
redirectToParent (string $hier_id="") | |
getParentReturn (string $hier_id="") | |
updateAndReturn () | |
setCurrentTextLang (string $lang_key) | |
getCurrentTextLang () | |
![]() | |
static array | $common_bb_buttons |
Class ilPCParagraphGUI User Interface for Paragraph Editing.
Definition at line 26 of file class.ilPCParagraphGUI.php.
ilPCParagraphGUI::__construct | ( | ilPageObject | $a_pg_obj, |
?ilPageContent | $a_content_obj, | ||
string | $a_hier_id, | ||
string | $a_pc_id = "" |
||
) |
Definition at line 30 of file class.ilPCParagraphGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), _getStandardCharacteristics(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilPageContentGUI\setCharacteristics(), and ILIAS\Repository\user().
|
static |
Get characteristics.
Definition at line 79 of file class.ilPCParagraphGUI.php.
References ilPageContentGUI\$char_manager, ilPageContentGUI\$chars, $DIC, ilPageContentGUI\$request, ilPageContentGUI\$requested_ref_id, $service, ilPageContentGUI\$style, _getStandardCharacteristics(), and ilObject\_lookupType().
Referenced by ILIAS\COPage\Editor\Components\Paragraph\ParagraphStyleSelector\getStyleSelector(), and ilPageEditorGUI\initCharacteristicForm().
|
static |
Get standard characteristics.
Definition at line 50 of file class.ilPCParagraphGUI.php.
References $DIC, ilPageContentGUI\$lng, and ilLanguage\txt().
Referenced by __construct(), and _getCharacteristics().
|
static |
Get standard characteristics.
Definition at line 71 of file class.ilPCParagraphGUI.php.
ilPCParagraphGUI::cancel | ( | ) |
Definition at line 378 of file class.ilPCParagraphGUI.php.
References ILIAS\Repository\ctrl().
ilPCParagraphGUI::create | ( | ) |
create new paragraph in dom and update page in db
Definition at line 661 of file class.ilPCParagraphGUI.php.
References ILIAS\Repository\ctrl(), ilPageContentGUI\getPage(), insert(), and ilPageContentGUI\setCurrentTextLang().
ilPCParagraphGUI::determineCharacteristic | ( | bool | $a_insert = false | ) |
Determine current characteristic.
Definition at line 213 of file class.ilPCParagraphGUI.php.
References ILIAS\Repository\ctrl(), and ilPageContentGUI\getHierId().
Referenced by editJS().
ilPCParagraphGUI::editJS | ( | ) |
Edit paragraph (Ajax mode, sends the content of the paragraph)
Definition at line 253 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 278 of file class.ilPCParagraphGUI.php.
References exit.
ilPCParagraphGUI::executeCommand | ( | ) |
execute command
Definition at line 186 of file class.ilPCParagraphGUI.php.
References ILIAS\Repository\ctrl(), and ilPageContentGUI\getCharacteristicsOfCurrentStyle().
|
static |
Get character style selector.
Definition at line 508 of file class.ilPCParagraphGUI.php.
References $c, ilPageContentGUI\$chars, $DIC, ILIAS\LTI\ToolProvider\$key, ilPageContentGUI\$lng, ilAdvancedSelectionListGUI\DOWN_ARROW_DARK, ilPageEditorSettings\lookupSettingByParentType(), ilAdvancedSelectionListGUI\ON_ITEM_CLICK_NOP, and ilLanguage\txt().
Referenced by ilPageObjectGUI\getTinyMenu().
|
static |
Get style selector.
Definition at line 440 of file class.ilPCParagraphGUI.php.
References ilPageContentGUI\$chars, ilAdvancedSelectionListGUI\DOWN_ARROW_DARK, and ilAdvancedSelectionListGUI\ON_ITEM_CLICK_FORM_SELECT.
ilPCParagraphGUI::insert | ( | ) |
insert paragraph form
Definition at line 613 of file class.ilPCParagraphGUI.php.
Referenced by create().
ilPCParagraphGUI::insertCharacteristicTable | ( | ilTemplate | $a_tpl, |
string | $a_seleted_value | ||
) |
Insert characteristic table.
Definition at line 387 of file class.ilPCParagraphGUI.php.
References ilPageContentGUI\$chars, $i, ilPageContentGUI\getCharacteristics(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), and ilTemplate\touchBlock().
ilPCParagraphGUI::insertHelp | ( | ilTemplate | $a_tpl | ) |
Insert Help.
Definition at line 706 of file class.ilPCParagraphGUI.php.
References ilPageContentGUI\$lng, ilPageContentGUI\getPageConfig(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), and ilLanguage\txt().
ilPCParagraphGUI::insertStyleSelectionList | ( | ilTemplate | $a_tpl, |
string | $a_selected | ||
) |
Insert style selection list.
Definition at line 427 of file class.ilPCParagraphGUI.php.
References ilPageContentGUI\getCharacteristics(), and HTML_Template_IT\setVariable().
ilPCParagraphGUI::outputError | ( | array | $a_err | ) |
|
private |
Definition at line 596 of file class.ilPCParagraphGUI.php.
References ilObjContentObject\_lookupStyleSheetId(), and ilObjStyleSheet\getContentStylePath().
ilPCParagraphGUI::update | ( | ) |
update paragraph in dom and update page in db
Definition at line 622 of file class.ilPCParagraphGUI.php.
References ILIAS\Repository\ctrl().
|
static |
Prepare content for js output.
Definition at line 287 of file class.ilPCParagraphGUI.php.
References ilPageContentGUI\_getCommonBBButtons(), and ilPCParagraph\attribsToArray().
Referenced by editJS(), ilPCDataTableGUI\getCellContent(), ilPCTable\getModel(), ilPCParagraph\getModel(), and ilPCParagraph\getParagraphSequenceContent().
|
protected |
Definition at line 28 of file class.ilPCParagraphGUI.php.