ILIAS
Release_3_10_x_branch Revision 61812
|
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 () | |
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 | |
__importBookmarks (&$objects, &$num_create, $folder_id, $start_key=0) | |
creates the bookmarks and folders |
Data Fields | |
$user_id | |
$ilias | |
$tpl | |
$lng | |
$tree | |
$id | |
$data | |
$textwidth = 100 |
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 42 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 1068 of file class.ilBookmarkAdministrationGUI.php.
Referenced by importFile().
ilBookmarkAdministrationGUI::add_cell | ( | $val, | |
$link = "" |
|||
) |
output a cell in object list
Definition at line 399 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::cancel | ( | ) |
cancel deletion,insert, update
Definition at line 902 of file class.ilBookmarkAdministrationGUI.php.
References view().
ilBookmarkAdministrationGUI::confirm | ( | ) |
deletion confirmed -> delete folders / bookmarks
Definition at line 911 of file class.ilBookmarkAdministrationGUI.php.
References $_SESSION, $id, $tree, ilUtil\sendInfo(), and view().
ilBookmarkAdministrationGUI::createBookmark | ( | ) |
create new bookmark in db
Definition at line 688 of file class.ilBookmarkAdministrationGUI.php.
References newFormBookmark(), ilUtil\sendInfo(), ilUtil\stripSlashes(), and view().
ilBookmarkAdministrationGUI::createBookmarkFolder | ( | ) |
create new bookmark folder in db
Definition at line 631 of file class.ilBookmarkAdministrationGUI.php.
References newFormBookmarkFolder(), ilUtil\sendInfo(), ilUtil\stripSlashes(), and view().
ilBookmarkAdministrationGUI::delete | ( | ) |
display deletion conformation screen
Definition at line 812 of file class.ilBookmarkAdministrationGUI.php.
References $_SESSION, $id, $title, ilUtil\getImagePath(), ilUtil\getImageTagByType(), ilUtil\prepareFormOutput(), ilUtil\sendInfo(), ilUtil\shortenText(), and ilUtil\switchColor().
ilBookmarkAdministrationGUI::displayHeader | ( | ) |
display header and locator
Definition at line 191 of file class.ilBookmarkAdministrationGUI.php.
References displayLocator(), ilUtil\getImagePath(), ilUtil\infoPanel(), and ilUtil\sendInfo().
Referenced by executeCommand().
ilBookmarkAdministrationGUI::displayLocator | ( | ) |
display locator
Definition at line 419 of file class.ilBookmarkAdministrationGUI.php.
Referenced by displayHeader().
ilBookmarkAdministrationGUI::editFormBookmark | ( | ) |
display edit bookmark form
Definition at line 597 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $lng, and get_last().
Referenced by updateBookmark().
ilBookmarkAdministrationGUI::editFormBookmarkFolder | ( | ) |
display edit bookmark folder form
Definition at line 518 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $lng, and get_last().
Referenced by updateBookmarkFolder().
ilBookmarkAdministrationGUI::executeAction | ( | ) |
Definition at line 120 of file class.ilBookmarkAdministrationGUI.php.
References export(), sendmail(), and view().
& ilBookmarkAdministrationGUI::executeCommand | ( | ) |
execute command
Definition at line 101 of file class.ilBookmarkAdministrationGUI.php.
References $cmd, displayHeader(), explorer(), and getMode().
ilBookmarkAdministrationGUI::explorer | ( | ) |
output explorer tree with bookmark folders
Definition at line 151 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_SESSION, and ilBookmarkExplorer\setAllowedTypes().
Referenced by executeCommand().
ilBookmarkAdministrationGUI::export | ( | $deliver = true | ) |
export bookmarks
Definition at line 757 of file class.ilBookmarkAdministrationGUI.php.
References $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 587 of file class.ilBookmarkAdministrationGUI.php.
References ilUtil\prepareFormOutput().
Referenced by editFormBookmark(), editFormBookmarkFolder(), newFormBookmark(), and newFormBookmarkFolder().
& ilBookmarkAdministrationGUI::getHTML | ( | ) |
Get Bookmark list for personal desktop.
Definition at line 1014 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::getMode | ( | ) |
return display mode flat or tree
Definition at line 144 of file class.ilBookmarkAdministrationGUI.php.
Referenced by executeCommand().
ilBookmarkAdministrationGUI::ilBookmarkAdministrationGUI | ( | ) |
Constructor public.
integer | user_id (optional) |
Definition at line 70 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_SESSION, $ilCtrl, $ilias, $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 1029 of file class.ilBookmarkAdministrationGUI.php.
References __importBookmarks(), ilBookmarkImportExport\_parseFile(), newFormBookmark(), ilUtil\sendInfo(), and view().
ilBookmarkAdministrationGUI::newForm | ( | ) |
new form
Definition at line 476 of file class.ilBookmarkAdministrationGUI.php.
References newFormBookmark(), and newFormBookmarkFolder().
ilBookmarkAdministrationGUI::newFormBookmark | ( | ) |
display new bookmark form
Definition at line 547 of file class.ilBookmarkAdministrationGUI.php.
References $lng, and get_last().
Referenced by createBookmark(), importFile(), and newForm().
ilBookmarkAdministrationGUI::newFormBookmarkFolder | ( | ) |
display new bookmark folder form
Definition at line 493 of file class.ilBookmarkAdministrationGUI.php.
References $lng, and get_last().
Referenced by createBookmarkFolder(), and newForm().
ilBookmarkAdministrationGUI::sendmail | ( | ) |
send bookmarks as attachment
Definition at line 787 of file class.ilBookmarkAdministrationGUI.php.
References $filename, export(), ilUtil\ilTempnam(), and ilUtil\redirect().
Referenced by executeAction().
ilBookmarkAdministrationGUI::showPossibleSubObjects | ( | ) |
display subobject addition selection
Definition at line 968 of file class.ilBookmarkAdministrationGUI.php.
References $_SESSION, formSelect(), and ilUtil\formSelect().
Referenced by view().
ilBookmarkAdministrationGUI::updateBookmark | ( | ) |
update bookmark in db
Definition at line 723 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, editFormBookmark(), ilUtil\sendInfo(), ilUtil\stripSlashes(), and view().
ilBookmarkAdministrationGUI::updateBookmarkFolder | ( | ) |
update bookmark folder
Definition at line 660 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, editFormBookmarkFolder(), ilUtil\sendInfo(), ilUtil\stripSlashes(), and view().
ilBookmarkAdministrationGUI::view | ( | ) |
Definition at line 211 of file class.ilBookmarkAdministrationGUI.php.
References $_SESSION, $tree, ilFrameTargetInfo\_getFrame(), ilUtil\getImagePath(), ilBookmarkFolder\getObjects(), ilUtil\prepareFormOutput(), ilUtil\shortenText(), showPossibleSubObjects(), and ilUtil\switchColor().
Referenced by cancel(), confirm(), createBookmark(), createBookmarkFolder(), executeAction(), importFile(), updateBookmark(), and updateBookmarkFolder().
ilBookmarkAdministrationGUI::$data |
Definition at line 62 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::$id |
Definition at line 61 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::$ilias |
Definition at line 56 of file class.ilBookmarkAdministrationGUI.php.
Referenced by ilBookmarkAdministrationGUI().
ilBookmarkAdministrationGUI::$lng |
Definition at line 58 of file class.ilBookmarkAdministrationGUI.php.
Referenced by displayLocator(), editFormBookmark(), editFormBookmarkFolder(), ilBookmarkAdministrationGUI(), newFormBookmark(), and newFormBookmarkFolder().
ilBookmarkAdministrationGUI::$textwidth = 100 |
Definition at line 63 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::$tpl |
Definition at line 57 of file class.ilBookmarkAdministrationGUI.php.
Referenced by ilBookmarkAdministrationGUI().
ilBookmarkAdministrationGUI::$tree |
Definition at line 60 of file class.ilBookmarkAdministrationGUI.php.
ilBookmarkAdministrationGUI::$user_id |
Definition at line 49 of file class.ilBookmarkAdministrationGUI.php.