ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
GUI class for personal bookmark administration. More...
Public Member Functions | |
__construct () | |
Constructor public. More... | |
executeCommand () | |
execute command More... | |
executeAction () | |
getMode () | |
return display mode flat or tree More... | |
explorer () | |
output explorer tree with bookmark folders More... | |
displayHeader () | |
display header and locator More... | |
view () | |
add_cell ($val, $link="") | |
output a cell in object list More... | |
displayLocator () | |
display locator More... | |
newForm ($type) | |
new form More... | |
newFormBookmarkFolder () | |
display new bookmark folder form More... | |
editFormBookmarkFolder () | |
display edit bookmark folder form More... | |
newFormBookmark () | |
display new bookmark form More... | |
get_last ($a_var, $a_value) | |
get stored post var in case of an error/warning otherwise return passed value More... | |
editFormBookmark () | |
display edit bookmark form More... | |
createBookmarkFolder () | |
create new bookmark folder in db More... | |
updateBookmarkFolder () | |
update bookmark folder More... | |
createBookmark () | |
create new bookmark in db More... | |
updateBookmark () | |
update bookmark in db More... | |
export ($deliver=true) | |
export bookmarks More... | |
sendmail () | |
send bookmarks as attachment More... | |
delete () | |
display deletion conformation screen More... | |
cancel () | |
cancel deletion,insert, update More... | |
confirm () | |
deletion confirmed -> delete folders / bookmarks More... | |
showPossibleSubObjects () | |
display subobject addition selection More... | |
getHTML () | |
Get Bookmark list for personal desktop. More... | |
importFile () | |
imports a bookmark file into database display status information or report errors messages in case of error public More... | |
__importBookmarks (&$objects, &$num_create, $folder_id, $start_key=0) | |
creates the bookmarks and folders More... | |
move () | |
confirmedMove () | |
Data Fields | |
$user_id | |
$tpl | |
$lng | |
$tree | |
$id | |
$data | |
$textwidth = 100 | |
Protected Attributes | |
$ctrl | |
$user | |
$toolbar | |
$error | |
$tabs | |
Private Member Functions | |
initFormBookmarkFolder ($action='createBookmarkFolder') | |
init bookmark folder create/edit form More... | |
initFormBookmark ($action='createBookmark') | |
init Bookmark create/edit form More... | |
initImportBookmarksForm () | |
Init import bookmark form. More... | |
GUI class for personal bookmark administration.
It manages folders and bookmarks with the help of the two corresponding core classes ilBookmarkFolder and ilBookmark. Their methods are called in this User Interface class.
Definition at line 19 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::__construct | ( | ) |
Constructor public.
integer | user_id (optional) |
Definition at line 71 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $DIC, $ilCtrl, $ilUser, $lng, $tpl, and user().
ilBookmarkAdministrationGUI::__importBookmarks | ( | & | $objects, |
& | $num_create, | ||
$folder_id, | |||
$start_key = 0 |
|||
) |
creates the bookmarks and folders
array | array of objects |
array | stores the number of created objects |
folder_id | id where to store the bookmarks |
start_key | key of the objects array where to start private |
Definition at line 970 of file class.ilBookmarkAdministrationGUI.php.
Referenced by importFile().
ilBookmarkAdministrationGUI::add_cell | ( | $val, | |
$link = "" |
|||
) |
ilBookmarkAdministrationGUI::cancel | ( | ) |
cancel deletion,insert, update
Definition at line 815 of file class.ilBookmarkAdministrationGUI.php.
References view().
ilBookmarkAdministrationGUI::confirm | ( | ) |
deletion confirmed -> delete folders / bookmarks
Definition at line 823 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, $error, $id, $ilErr, $type, ilBookmark\_getTypeOfId(), and view().
ilBookmarkAdministrationGUI::confirmedMove | ( | ) |
Definition at line 1037 of file class.ilBookmarkAdministrationGUI.php.
References $ilUser, $tree, $user, ilUtil\sendFailure(), and view().
ilBookmarkAdministrationGUI::createBookmark | ( | ) |
create new bookmark in db
Definition at line 622 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, $ctrl, $ilCtrl, $lng, newFormBookmark(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\stripSlashes().
ilBookmarkAdministrationGUI::createBookmarkFolder | ( | ) |
create new bookmark folder in db
Definition at line 564 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, $ctrl, $ilCtrl, newFormBookmarkFolder(), ilUtil\sendFailure(), and ilUtil\stripSlashes().
ilBookmarkAdministrationGUI::delete | ( | ) |
display deletion conformation screen
Definition at line 758 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_POST, $error, $ilErr, $target, $title, $type, ilBookmark\_getTypeOfId(), ilUtil\getImageTagByType(), and ilUtil\shortenText().
ilBookmarkAdministrationGUI::displayHeader | ( | ) |
display header and locator
Definition at line 177 of file class.ilBookmarkAdministrationGUI.php.
References displayLocator(), ilUtil\infoPanel(), and ilUtil\sendInfo().
Referenced by executeCommand().
ilBookmarkAdministrationGUI::displayLocator | ( | ) |
display locator
Definition at line 243 of file class.ilBookmarkAdministrationGUI.php.
References $key, $lng, $path, $row, and $title.
Referenced by displayHeader().
ilBookmarkAdministrationGUI::editFormBookmark | ( | ) |
display edit bookmark form
Definition at line 536 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $ctrl, $form, $ilCtrl, $lng, and initFormBookmark().
Referenced by updateBookmark().
ilBookmarkAdministrationGUI::editFormBookmarkFolder | ( | ) |
display edit bookmark folder form
Definition at line 376 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $form, get_last(), and initFormBookmarkFolder().
Referenced by updateBookmarkFolder().
ilBookmarkAdministrationGUI::executeAction | ( | ) |
Definition at line 131 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, export(), sendmail(), and view().
ilBookmarkAdministrationGUI::executeCommand | ( | ) |
execute command
Definition at line 113 of file class.ilBookmarkAdministrationGUI.php.
References displayHeader(), explorer(), and getMode().
ilBookmarkAdministrationGUI::explorer | ( | ) |
output explorer tree with bookmark folders
Definition at line 162 of file class.ilBookmarkAdministrationGUI.php.
References $tpl.
Referenced by executeCommand().
ilBookmarkAdministrationGUI::export | ( | $deliver = true | ) |
export bookmarks
Definition at line 688 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_POST, $error, $id, $ilErr, $ilUser, $user, ilBookmarkImportExport\_exportBookmark(), and ilUtil\deliverData().
Referenced by executeAction(), and sendmail().
ilBookmarkAdministrationGUI::get_last | ( | $a_var, | |
$a_value | |||
) |
get stored post var in case of an error/warning otherwise return passed value
Definition at line 526 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, and ilUtil\prepareFormOutput().
Referenced by editFormBookmarkFolder().
ilBookmarkAdministrationGUI::getHTML | ( | ) |
Get Bookmark list for personal desktop.
Definition at line 917 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::getMode | ( | ) |
return display mode flat or tree
Definition at line 154 of file class.ilBookmarkAdministrationGUI.php.
Referenced by executeCommand().
ilBookmarkAdministrationGUI::importFile | ( | ) |
imports a bookmark file into database display status information or report errors messages in case of error public
Definition at line 931 of file class.ilBookmarkAdministrationGUI.php.
References __importBookmarks(), ilBookmarkImportExport\_parseFile(), newFormBookmark(), ilUtil\sendFailure(), and view().
|
private |
init Bookmark create/edit form
string | form action type; valid values: createBookmark, updateBookmark |
Definition at line 400 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $action, $ctrl, $form, $ilCtrl, $ilUser, $lng, $user, and ilTextInputGUI\setValue().
Referenced by editFormBookmark(), and newFormBookmark().
|
private |
init bookmark folder create/edit form
string | form action type; valid values: createBookmark, updateBookmark |
Definition at line 332 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $action, $ctrl, $form, $ilCtrl, $ilUser, $lng, $user, and ilFormPropertyGUI\setRequired().
Referenced by editFormBookmarkFolder(), and newFormBookmarkFolder().
|
private |
Init import bookmark form.
Definition at line 480 of file class.ilBookmarkAdministrationGUI.php.
References $ctrl, $form, $ilCtrl, $ilUser, $lng, $user, and ilFormPropertyGUI\setRequired().
Referenced by newFormBookmark().
ilBookmarkAdministrationGUI::move | ( | ) |
Definition at line 1013 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $ilUser, $tabs, $tpl, $user, ilUtil\sendFailure(), ilUtil\sendInfo(), and view().
ilBookmarkAdministrationGUI::newForm | ( | $type | ) |
new form
Definition at line 298 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, $type, newFormBookmark(), and newFormBookmarkFolder().
ilBookmarkAdministrationGUI::newFormBookmark | ( | ) |
display new bookmark form
Definition at line 510 of file class.ilBookmarkAdministrationGUI.php.
References $form, $html1, $html2, initFormBookmark(), and initImportBookmarksForm().
Referenced by createBookmark(), importFile(), and newForm().
ilBookmarkAdministrationGUI::newFormBookmarkFolder | ( | ) |
display new bookmark folder form
Definition at line 317 of file class.ilBookmarkAdministrationGUI.php.
References $form, and initFormBookmarkFolder().
Referenced by createBookmarkFolder(), and newForm().
ilBookmarkAdministrationGUI::sendmail | ( | ) |
send bookmarks as attachment
Definition at line 723 of file class.ilBookmarkAdministrationGUI.php.
References $filename, $ilUser, $user, export(), ilMailFormCall\getRedirectTarget(), ilUtil\ilTempnam(), and ilUtil\redirect().
Referenced by executeAction().
ilBookmarkAdministrationGUI::showPossibleSubObjects | ( | ) |
display subobject addition selection
Definition at line 873 of file class.ilBookmarkAdministrationGUI.php.
References $_SESSION, and ilUtil\formSelect().
ilBookmarkAdministrationGUI::updateBookmark | ( | ) |
update bookmark in db
Definition at line 658 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_POST, editFormBookmark(), ilUtil\sendFailure(), ilUtil\stripSlashes(), and view().
ilBookmarkAdministrationGUI::updateBookmarkFolder | ( | ) |
update bookmark folder
Definition at line 594 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_POST, $ctrl, $ilCtrl, editFormBookmarkFolder(), ilUtil\sendFailure(), and ilUtil\stripSlashes().
ilBookmarkAdministrationGUI::view | ( | ) |
Definition at line 194 of file class.ilBookmarkAdministrationGUI.php.
References $table, $toolbar, and ilBookmarkFolder\getObjects().
Referenced by cancel(), confirm(), confirmedMove(), executeAction(), importFile(), move(), and updateBookmark().
|
protected |
Definition at line 24 of file class.ilBookmarkAdministrationGUI.php.
Referenced by createBookmark(), createBookmarkFolder(), editFormBookmark(), initFormBookmark(), initFormBookmarkFolder(), initImportBookmarksForm(), and updateBookmarkFolder().
ilBookmarkAdministrationGUI::$data |
Definition at line 63 of file class.ilBookmarkAdministrationGUI.php.
|
protected |
Definition at line 39 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::$id |
Definition at line 62 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::$lng |
Definition at line 59 of file class.ilBookmarkAdministrationGUI.php.
Referenced by __construct(), createBookmark(), displayLocator(), editFormBookmark(), initFormBookmark(), initFormBookmarkFolder(), and initImportBookmarksForm().
|
protected |
Definition at line 44 of file class.ilBookmarkAdministrationGUI.php.
Referenced by move().
ilBookmarkAdministrationGUI::$textwidth = 100 |
Definition at line 64 of file class.ilBookmarkAdministrationGUI.php.
|
protected |
Definition at line 34 of file class.ilBookmarkAdministrationGUI.php.
Referenced by view().
ilBookmarkAdministrationGUI::$tpl |
Definition at line 58 of file class.ilBookmarkAdministrationGUI.php.
Referenced by __construct(), explorer(), and move().
ilBookmarkAdministrationGUI::$tree |
Definition at line 61 of file class.ilBookmarkAdministrationGUI.php.
Referenced by confirmedMove().
|
protected |
Definition at line 29 of file class.ilBookmarkAdministrationGUI.php.
Referenced by confirmedMove(), export(), initFormBookmark(), initFormBookmarkFolder(), initImportBookmarksForm(), move(), and sendmail().
ilBookmarkAdministrationGUI::$user_id |
Definition at line 51 of file class.ilBookmarkAdministrationGUI.php.