ILIAS
Release_5_0_x_branch Revision 61816
|
GUI class for personal bookmark administration. More...
Public Member Functions | |
ilBookmarkAdministrationGUI () | |
Constructor public. | |
& | executeCommand () |
execute command | |
executeAction () | |
getMode () | |
return display mode flat or tree | |
explorer () | |
output explorer tree with bookmark folders | |
displayHeader () | |
display header and locator | |
view () | |
add_cell ($val, $link="") | |
output a cell in object list | |
displayLocator () | |
display locator | |
newForm ($type) | |
new form | |
newFormBookmarkFolder () | |
display new bookmark folder form | |
editFormBookmarkFolder () | |
display edit bookmark folder form | |
newFormBookmark () | |
display new bookmark form | |
get_last ($a_var, $a_value) | |
get stored post var in case of an error/warning otherwise return passed value | |
editFormBookmark () | |
display edit bookmark form | |
createBookmarkFolder () | |
create new bookmark folder in db | |
updateBookmarkFolder () | |
update bookmark folder | |
createBookmark () | |
create new bookmark in db | |
updateBookmark () | |
update bookmark in db | |
export ($deliver=true) | |
export bookmarks | |
sendmail () | |
send bookmarks as attachment | |
delete () | |
display deletion conformation screen | |
cancel () | |
cancel deletion,insert, update | |
confirm () | |
deletion confirmed -> delete folders / bookmarks | |
showPossibleSubObjects () | |
display subobject addition selection | |
getHTML () | |
Get Bookmark list for personal desktop. | |
importFile () | |
imports a bookmark file into database display status information or report errors messages in case of error public | |
__importBookmarks (&$objects, &$num_create, $folder_id, $start_key=0) | |
creates the bookmarks and folders | |
move () | |
confirmedMove () |
Data Fields | |
$user_id | |
$ilias | |
$tpl | |
$lng | |
$tree | |
$id | |
$data | |
$textwidth = 100 |
Private Member Functions | |
initFormBookmarkFolder ($action= 'createBookmarkFolder') | |
init bookmark folder create/edit form | |
initFormBookmark ($action= 'createBookmark') | |
init Bookmark create/edit form | |
initImportBookmarksForm () | |
Init import bookmark form. |
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::__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 977 of file class.ilBookmarkAdministrationGUI.php.
Referenced by importFile().
ilBookmarkAdministrationGUI::add_cell | ( | $val, | |
$link = "" |
|||
) |
output a cell in object list
Definition at line 192 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::cancel | ( | ) |
cancel deletion,insert, update
Definition at line 809 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, ilUtil\redirect(), and view().
ilBookmarkAdministrationGUI::confirm | ( | ) |
deletion confirmed -> delete folders / bookmarks
Definition at line 820 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, $id, $tree, ilBookmark\_getTypeOfId(), ilUtil\sendSuccess(), and view().
ilBookmarkAdministrationGUI::confirmedMove | ( | ) |
Definition at line 1038 of file class.ilBookmarkAdministrationGUI.php.
References $_REQUEST, $ilUser, $tree, ilUtil\sendFailure(), ilUtil\sendSuccess(), and view().
ilBookmarkAdministrationGUI::createBookmark | ( | ) |
create new bookmark in db
Definition at line 605 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, $ilCtrl, $lng, newFormBookmark(), ilUtil\redirect(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\stripSlashes().
ilBookmarkAdministrationGUI::createBookmarkFolder | ( | ) |
create new bookmark folder in db
Definition at line 541 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, $ilCtrl, newFormBookmarkFolder(), ilUtil\sendFailure(), and ilUtil\stripSlashes().
ilBookmarkAdministrationGUI::delete | ( | ) |
display deletion conformation screen
Definition at line 749 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_POST, ilBookmark\_getTypeOfId(), ilUtil\getImageTagByType(), and ilUtil\shortenText().
ilBookmarkAdministrationGUI::displayHeader | ( | ) |
display header and locator
Definition at line 147 of file class.ilBookmarkAdministrationGUI.php.
References displayLocator(), ilUtil\infoPanel(), and ilUtil\sendInfo().
Referenced by executeCommand().
ilBookmarkAdministrationGUI::displayLocator | ( | ) |
display locator
Definition at line 212 of file class.ilBookmarkAdministrationGUI.php.
References $lng, $path, and $row.
Referenced by displayHeader().
ilBookmarkAdministrationGUI::editFormBookmark | ( | ) |
display edit bookmark form
Definition at line 511 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $ilCtrl, $lng, and initFormBookmark().
Referenced by updateBookmark().
ilBookmarkAdministrationGUI::editFormBookmarkFolder | ( | ) |
display edit bookmark folder form
Definition at line 348 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, get_last(), and initFormBookmarkFolder().
Referenced by updateBookmarkFolder().
ilBookmarkAdministrationGUI::executeAction | ( | ) |
Definition at line 99 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, export(), sendmail(), and view().
& ilBookmarkAdministrationGUI::executeCommand | ( | ) |
execute command
Definition at line 79 of file class.ilBookmarkAdministrationGUI.php.
References $cmd, displayHeader(), explorer(), and getMode().
ilBookmarkAdministrationGUI::explorer | ( | ) |
output explorer tree with bookmark folders
Definition at line 131 of file class.ilBookmarkAdministrationGUI.php.
References $tpl.
Referenced by executeCommand().
ilBookmarkAdministrationGUI::export | ( | $deliver = true | ) |
export bookmarks
Definition at line 687 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_POST, $id, 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 501 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, and ilUtil\prepareFormOutput().
Referenced by editFormBookmarkFolder().
ilBookmarkAdministrationGUI::getHTML | ( | ) |
Get Bookmark list for personal desktop.
Definition at line 922 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::getMode | ( | ) |
return display mode flat or tree
Definition at line 123 of file class.ilBookmarkAdministrationGUI.php.
Referenced by executeCommand().
ilBookmarkAdministrationGUI::ilBookmarkAdministrationGUI | ( | ) |
Constructor public.
integer | user_id (optional) |
Definition at line 47 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $ilCtrl, $ilias, $ilUser, $lng, and $tpl.
ilBookmarkAdministrationGUI::importFile | ( | ) |
imports a bookmark file into database display status information or report errors messages in case of error public
Definition at line 936 of file class.ilBookmarkAdministrationGUI.php.
References __importBookmarks(), ilBookmarkImportExport\_parseFile(), newFormBookmark(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and view().
|
private |
init Bookmark create/edit form
string | form action type; valid values: createBookmark, updateBookmark |
Definition at line 375 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, 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 304 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, and ilFormPropertyGUI\setRequired().
Referenced by editFormBookmarkFolder(), and newFormBookmarkFolder().
|
private |
Init import bookmark form.
Definition at line 455 of file class.ilBookmarkAdministrationGUI.php.
References $ilCtrl, $ilUser, $lng, and ilFormPropertyGUI\setRequired().
Referenced by newFormBookmark().
ilBookmarkAdministrationGUI::move | ( | ) |
Definition at line 1014 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_REQUEST, $ilUser, $tpl, ilUtil\sendFailure(), ilUtil\sendInfo(), and view().
ilBookmarkAdministrationGUI::newForm | ( | $type | ) |
new form
Definition at line 269 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, newFormBookmark(), and newFormBookmarkFolder().
ilBookmarkAdministrationGUI::newFormBookmark | ( | ) |
display new bookmark form
Definition at line 484 of file class.ilBookmarkAdministrationGUI.php.
References $_REQUEST, initFormBookmark(), and initImportBookmarksForm().
Referenced by createBookmark(), importFile(), and newForm().
ilBookmarkAdministrationGUI::newFormBookmarkFolder | ( | ) |
display new bookmark folder form
Definition at line 288 of file class.ilBookmarkAdministrationGUI.php.
References initFormBookmarkFolder().
Referenced by createBookmarkFolder(), and newForm().
ilBookmarkAdministrationGUI::sendmail | ( | ) |
send bookmarks as attachment
Definition at line 722 of file class.ilBookmarkAdministrationGUI.php.
References $filename, $ilUser, export(), ilMailFormCall\getRedirectTarget(), ilUtil\ilTempnam(), and ilUtil\redirect().
Referenced by executeAction().
ilBookmarkAdministrationGUI::showPossibleSubObjects | ( | ) |
display subobject addition selection
Definition at line 876 of file class.ilBookmarkAdministrationGUI.php.
References $_SESSION, and ilUtil\formSelect().
ilBookmarkAdministrationGUI::updateBookmark | ( | ) |
update bookmark in db
Definition at line 651 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_POST, editFormBookmark(), ilUtil\sendFailure(), ilUtil\stripSlashes(), and view().
ilBookmarkAdministrationGUI::updateBookmarkFolder | ( | ) |
update bookmark folder
Definition at line 573 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_POST, $ilCtrl, editFormBookmarkFolder(), ilUtil\sendFailure(), and ilUtil\stripSlashes().
ilBookmarkAdministrationGUI::view | ( | ) |
Definition at line 165 of file class.ilBookmarkAdministrationGUI.php.
References ilBookmarkFolder\getObjects().
Referenced by cancel(), confirm(), confirmedMove(), executeAction(), importFile(), move(), and updateBookmark().
ilBookmarkAdministrationGUI::$data |
Definition at line 39 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::$id |
Definition at line 38 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::$ilias |
Definition at line 33 of file class.ilBookmarkAdministrationGUI.php.
Referenced by ilBookmarkAdministrationGUI().
ilBookmarkAdministrationGUI::$lng |
Definition at line 35 of file class.ilBookmarkAdministrationGUI.php.
Referenced by createBookmark(), displayLocator(), editFormBookmark(), ilBookmarkAdministrationGUI(), initFormBookmark(), initFormBookmarkFolder(), and initImportBookmarksForm().
ilBookmarkAdministrationGUI::$textwidth = 100 |
Definition at line 40 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::$tpl |
Definition at line 34 of file class.ilBookmarkAdministrationGUI.php.
Referenced by explorer(), ilBookmarkAdministrationGUI(), and move().
ilBookmarkAdministrationGUI::$tree |
Definition at line 37 of file class.ilBookmarkAdministrationGUI.php.
Referenced by confirm(), and confirmedMove().
ilBookmarkAdministrationGUI::$user_id |
Definition at line 26 of file class.ilBookmarkAdministrationGUI.php.