ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilPCListGUI. More...
Public Member Functions | |
__construct (&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="") | |
Constructor public. More... | |
executeCommand () | |
execute command More... | |
insert ($a_form=null) | |
insert new file list form More... | |
selectFile () | |
Select file. More... | |
insertFromRepository ($a_cmd="insert") | |
Insert file from repository. More... | |
insertFromWorkspace ($a_cmd="insert") | |
Insert file from personal workspace. More... | |
create () | |
create new file list in dom and update page in db More... | |
edit () | |
edit properties form More... | |
initEditForm ($a_mode="edit") | |
Init edit form. More... | |
saveProperties () | |
save table properties in db and return to page edit screen More... | |
editFiles () | |
Edit Files. More... | |
setTabs ($a_create=true) | |
Set Tabs. More... | |
addFileItem () | |
Add file item. More... | |
deleteFileItem () | |
Delete file items from list. More... | |
savePositions () | |
Save positions of file items. More... | |
savePositionsAndClasses () | |
Save positions of file items and style classes. More... | |
checkStyleSelection () | |
Checks whether style selection shoudl be available or not. More... | |
newFileItem () | |
New file item (called, if there is no file item in an existing) More... | |
insertNewFileItem ($a_file_ref_id=0) | |
insert new file item after another item More... | |
createFileItem () | |
insert new file item More... | |
setItemTabs ($a_cmd="") | |
output tabs 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... | |
Protected Attributes | |
$user | |
$tabs | |
$tree | |
$toolbar | |
$settings | |
Protected Attributes inherited from ilPageContentGUI | |
$error | |
$log | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilPageContentGUI | |
static | _getCommonBBButtons () |
Get common bb buttons. More... | |
Data Fields inherited from ilPageContentGUI | |
$content_obj | |
$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... | |
Static Protected Attributes inherited from ilPageContentGUI | |
static | $common_bb_buttons |
Class ilPCListGUI.
User Interface for LM List Editing
Definition at line 17 of file class.ilPCFileListGUI.php.
ilPCFileListGUI::__construct | ( | & | $a_pg_obj, |
& | $a_content_obj, | ||
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Constructor public.
Definition at line 49 of file class.ilPCFileListGUI.php.
References $DIC, array, ilPageContentGUI\setCharacteristics(), settings(), and user().
ilPCFileListGUI::addFileItem | ( | ) |
Add file item.
This function is called from file list table and calls newItemAfter function.
Definition at line 503 of file class.ilPCFileListGUI.php.
References ilPageContentGUI\$ctrl, $files, and $ilCtrl.
ilPCFileListGUI::checkStyleSelection | ( | ) |
Checks whether style selection shoudl be available or not.
Definition at line 578 of file class.ilPCFileListGUI.php.
References ilPageContentGUI\getCharacteristics().
ilPCFileListGUI::create | ( | ) |
create new file list in dom and update page in db
Definition at line 220 of file class.ilPCFileListGUI.php.
References $_GET, $_POST, $_SESSION, $form, ilPageContentGUI\getPage(), initEditForm(), insert(), and ilUtil\stripSlashes().
ilPCFileListGUI::createFileItem | ( | ) |
insert new file item
Definition at line 695 of file class.ilPCFileListGUI.php.
References $_GET, $form, ilPageContentGUI\$lng, initEditForm(), and ilUtil\sendFailure().
Referenced by insertNewFileItem().
ilPCFileListGUI::deleteFileItem | ( | ) |
Delete file items from list.
Definition at line 529 of file class.ilPCFileListGUI.php.
References $_POST, ilPageContentGUI\$ctrl, $ilCtrl, and array.
ilPCFileListGUI::edit | ( | ) |
edit properties form
Definition at line 284 of file class.ilPCFileListGUI.php.
References $form, initEditForm(), and setTabs().
Referenced by saveProperties().
ilPCFileListGUI::editFiles | ( | ) |
Edit Files.
Definition at line 420 of file class.ilPCFileListGUI.php.
References ilPageContentGUI\$ctrl, $ilCtrl, ilPageContentGUI\$lng, $toolbar, ilPageContentGUI\$tpl, and setTabs().
ilPCFileListGUI::executeCommand | ( | ) |
execute command
Definition at line 68 of file class.ilPCFileListGUI.php.
References $ret, and ilPageContentGUI\getCharacteristicsOfCurrentStyle().
ilPCFileListGUI::initEditForm | ( | $a_mode = "edit" | ) |
Init edit form.
int | $a_mode | Edit Mode |
Definition at line 297 of file class.ilPCFileListGUI.php.
References $_GET, $_SESSION, ilPageContentGUI\$ctrl, $form, $ilCtrl, $ilUser, $lang, ilPageContentGUI\$lng, $si, $tree, $user, ilMDLanguageItem\_getLanguages(), array, ilTextInputGUI\setMaxLength(), and ilFormPropertyGUI\setRequired().
Referenced by create(), createFileItem(), edit(), insert(), newFileItem(), and selectFile().
ilPCFileListGUI::insert | ( | $a_form = null | ) |
insert new file list form
Definition at line 90 of file class.ilPCFileListGUI.php.
References $_GET, $_SESSION, $form, $ilUser, $tabs, $user, ilPageContentGUI\displayValidationError(), initEditForm(), insertFromRepository(), insertFromWorkspace(), selectFile(), and setTabs().
Referenced by create().
ilPCFileListGUI::insertFromRepository | ( | $a_cmd = "insert" | ) |
Insert file from repository.
Definition at line 157 of file class.ilPCFileListGUI.php.
References ilPageContentGUI\$ctrl, $ilCtrl, $tabs, ilPageContentGUI\$tpl, setItemTabs(), and setTabs().
Referenced by insert(), and newFileItem().
ilPCFileListGUI::insertFromWorkspace | ( | $a_cmd = "insert" | ) |
Insert file from personal workspace.
Definition at line 188 of file class.ilPCFileListGUI.php.
References ilPageContentGUI\$ctrl, $ilCtrl, $ilUser, $tabs, ilPageContentGUI\$tpl, $tree, $user, array, setItemTabs(), and setTabs().
Referenced by insert(), and newFileItem().
ilPCFileListGUI::insertNewFileItem | ( | $a_file_ref_id = 0 | ) |
insert new file item after another item
Definition at line 652 of file class.ilPCFileListGUI.php.
References $_GET, $ilUser, $tree, $user, createFileItem(), and newFileItem().
Referenced by newFileItem().
ilPCFileListGUI::newFileItem | ( | ) |
New file item (called, if there is no file item in an existing)
Definition at line 607 of file class.ilPCFileListGUI.php.
References $_GET, $_SESSION, $form, $tabs, ilPageContentGUI\displayValidationError(), initEditForm(), insertFromRepository(), insertFromWorkspace(), insertNewFileItem(), and setItemTabs().
Referenced by insertNewFileItem().
ilPCFileListGUI::savePositions | ( | ) |
Save positions of file items.
Definition at line 547 of file class.ilPCFileListGUI.php.
References $_POST, ilPageContentGUI\$ctrl, and $ilCtrl.
ilPCFileListGUI::savePositionsAndClasses | ( | ) |
Save positions of file items and style classes.
Definition at line 561 of file class.ilPCFileListGUI.php.
References $_POST, ilPageContentGUI\$ctrl, and $ilCtrl.
ilPCFileListGUI::saveProperties | ( | ) |
save table properties in db and return to page edit screen
Definition at line 402 of file class.ilPCFileListGUI.php.
References $_POST, edit(), and ilUtil\stripSlashes().
ilPCFileListGUI::selectFile | ( | ) |
Select file.
Definition at line 140 of file class.ilPCFileListGUI.php.
References $form, $ilUser, $tabs, $user, ilPageContentGUI\displayValidationError(), initEditForm(), and setTabs().
Referenced by insert().
ilPCFileListGUI::setItemTabs | ( | $a_cmd = "" | ) |
output tabs
Definition at line 734 of file class.ilPCFileListGUI.php.
References ilPageContentGUI\$ctrl, $ilCtrl, $ilSetting, $settings, and $tabs.
Referenced by insertFromRepository(), insertFromWorkspace(), and newFileItem().
ilPCFileListGUI::setTabs | ( | $a_create = true | ) |
Set Tabs.
Definition at line 442 of file class.ilPCFileListGUI.php.
References ilPageContentGUI\$ctrl, $ilCtrl, $ilSetting, ilPageContentGUI\$lng, $settings, and $tabs.
Referenced by edit(), editFiles(), insert(), insertFromRepository(), insertFromWorkspace(), and selectFile().
|
protected |
Definition at line 42 of file class.ilPCFileListGUI.php.
Referenced by setItemTabs(), and setTabs().
|
protected |
Definition at line 27 of file class.ilPCFileListGUI.php.
Referenced by insert(), insertFromRepository(), insertFromWorkspace(), newFileItem(), selectFile(), setItemTabs(), and setTabs().
|
protected |
Definition at line 37 of file class.ilPCFileListGUI.php.
Referenced by editFiles().
|
protected |
Definition at line 32 of file class.ilPCFileListGUI.php.
Referenced by initEditForm(), insertFromWorkspace(), and insertNewFileItem().
|
protected |
Definition at line 22 of file class.ilPCFileListGUI.php.
Referenced by initEditForm(), insert(), insertFromWorkspace(), insertNewFileItem(), and selectFile().