| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
GUI class for personal bookmark administration. More...
 Collaboration diagram for ilBookmarkAdministrationGUI:
 Collaboration diagram for ilBookmarkAdministrationGUI:| 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 | |
| __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 | |
| 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 23 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 1054 of file class.ilBookmarkAdministrationGUI.php.
Referenced by importFile().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookmarkAdministrationGUI::add_cell | ( | $val, | |
| $link = "" | |||
| ) | 
output a cell in object list
Definition at line 266 of file class.ilBookmarkAdministrationGUI.php.
| ilBookmarkAdministrationGUI::cancel | ( | ) | 
cancel deletion,insert, update
Definition at line 886 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, ilUtil\redirect(), and view().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookmarkAdministrationGUI::confirm | ( | ) | 
deletion confirmed -> delete folders / bookmarks
Definition at line 898 of file class.ilBookmarkAdministrationGUI.php.
References $_SESSION, $id, $tree, ilBookmark\_getTypeOfId(), ilUtil\sendSuccess(), and view().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookmarkAdministrationGUI::createBookmark | ( | ) | 
create new bookmark in db
Definition at line 661 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, $lng, newFormBookmark(), ilUtil\redirect(), ilUtil\sendFailure(), ilUtil\sendInfo(), ilUtil\stripSlashes(), and view().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookmarkAdministrationGUI::createBookmarkFolder | ( | ) | 
create new bookmark folder in db
Definition at line 604 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, newFormBookmarkFolder(), ilUtil\sendFailure(), ilUtil\stripSlashes(), and view().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookmarkAdministrationGUI::delete | ( | ) | 
display deletion conformation screen
Definition at line 796 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_POST, $_SESSION, $title, ilBookmark\_getTypeOfId(), ilUtil\getImagePath(), ilUtil\getImageTagByType(), ilUtil\prepareFormOutput(), ilUtil\sendQuestion(), ilUtil\shortenText(), and ilUtil\switchColor().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookmarkAdministrationGUI::displayHeader | ( | ) | 
display header and locator
Definition at line 189 of file class.ilBookmarkAdministrationGUI.php.
References displayLocator(), ilUtil\getImagePath(), ilUtil\infoPanel(), and ilUtil\sendInfo().
Referenced by executeCommand().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookmarkAdministrationGUI::displayLocator | ( | ) | 
display locator
Definition at line 286 of file class.ilBookmarkAdministrationGUI.php.
References $lng, $path, $row, and $title.
Referenced by displayHeader().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookmarkAdministrationGUI::editFormBookmark | ( | ) | 
display edit bookmark form
Definition at line 578 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $ilCtrl, $lng, and initFormBookmark().
Referenced by updateBookmark().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookmarkAdministrationGUI::editFormBookmarkFolder | ( | ) | 
display edit bookmark folder form
Definition at line 420 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, get_last(), and initFormBookmarkFolder().
Referenced by updateBookmarkFolder().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookmarkAdministrationGUI::executeAction | ( | ) | 
Definition at line 105 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, export(), sendmail(), and view().
 Here is the call graph for this function:
 Here is the call graph for this function:| & ilBookmarkAdministrationGUI::executeCommand | ( | ) | 
execute command
Definition at line 86 of file class.ilBookmarkAdministrationGUI.php.
References $cmd, displayHeader(), explorer(), and getMode().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookmarkAdministrationGUI::explorer | ( | ) | 
output explorer tree with bookmark folders
Definition at line 136 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_REQUEST, $_SESSION, $tpl, and ilBookmarkExplorer\setAllowedTypes().
Referenced by executeCommand().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookmarkAdministrationGUI::export | ( | $deliver = true | ) | 
export bookmarks
Definition at line 736 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_POST, $id, ilBookmarkImportExport\_exportBookmark(), and ilUtil\deliverData().
Referenced by executeAction(), and sendmail().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookmarkAdministrationGUI::get_last | ( | $a_var, | |
| $a_value | |||
| ) | 
get stored post var in case of an error/warning otherwise return passed value
Definition at line 568 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, and ilUtil\prepareFormOutput().
Referenced by editFormBookmarkFolder().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| & ilBookmarkAdministrationGUI::getHTML | ( | ) | 
Get Bookmark list for personal desktop.
Definition at line 1000 of file class.ilBookmarkAdministrationGUI.php.
| ilBookmarkAdministrationGUI::getMode | ( | ) | 
return display mode flat or tree
Definition at line 129 of file class.ilBookmarkAdministrationGUI.php.
Referenced by executeCommand().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookmarkAdministrationGUI::ilBookmarkAdministrationGUI | ( | ) | 
Constructor public.
| integer | user_id (optional) | 
Definition at line 51 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 1015 of file class.ilBookmarkAdministrationGUI.php.
References __importBookmarks(), ilBookmarkImportExport\_parseFile(), newFormBookmark(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and view().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
init Bookmark create/edit form
| string | form action type; valid values: createBookmark, updateBookmark | 
Definition at line 445 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $ilCtrl, $lng, and ilTextInputGUI\setValue().
Referenced by editFormBookmark(), and newFormBookmark().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
init bookmark folder create/edit form
| string | form action type; valid values: createBookmark, updateBookmark | 
Definition at line 377 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $ilCtrl, $lng, and ilFormPropertyGUI\setRequired().
Referenced by editFormBookmarkFolder(), and newFormBookmarkFolder().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Init import bookmark form.
Definition at line 524 of file class.ilBookmarkAdministrationGUI.php.
References $ilCtrl, $lng, and ilFormPropertyGUI\setRequired().
Referenced by newFormBookmark().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookmarkAdministrationGUI::newForm | ( | $type | ) | 
new form
Definition at line 343 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, newFormBookmark(), and newFormBookmarkFolder().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookmarkAdministrationGUI::newFormBookmark | ( | ) | 
display new bookmark form
Definition at line 551 of file class.ilBookmarkAdministrationGUI.php.
References $_REQUEST, initFormBookmark(), and initImportBookmarksForm().
Referenced by createBookmark(), importFile(), and newForm().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookmarkAdministrationGUI::newFormBookmarkFolder | ( | ) | 
display new bookmark folder form
Definition at line 362 of file class.ilBookmarkAdministrationGUI.php.
References initFormBookmarkFolder().
Referenced by createBookmarkFolder(), and newForm().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookmarkAdministrationGUI::sendmail | ( | ) | 
send bookmarks as attachment
Definition at line 770 of file class.ilBookmarkAdministrationGUI.php.
References $filename, ilMailFormCall\_getRedirectTarget(), export(), ilUtil\ilTempnam(), and ilUtil\redirect().
Referenced by executeAction().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookmarkAdministrationGUI::showPossibleSubObjects | ( | ) | 
display subobject addition selection
Definition at line 954 of file class.ilBookmarkAdministrationGUI.php.
References $_SESSION, formSelect(), and ilUtil\formSelect().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookmarkAdministrationGUI::updateBookmark | ( | ) | 
update bookmark in db
Definition at line 702 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_POST, editFormBookmark(), ilUtil\sendFailure(), ilUtil\stripSlashes(), and view().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookmarkAdministrationGUI::updateBookmarkFolder | ( | ) | 
update bookmark folder
Definition at line 633 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $_POST, editFormBookmarkFolder(), ilUtil\sendFailure(), ilUtil\stripSlashes(), and view().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookmarkAdministrationGUI::view | ( | ) | 
Definition at line 211 of file class.ilBookmarkAdministrationGUI.php.
References $_SESSION, $ilCtrl, $tree, and ilBookmarkFolder\getObjects().
Referenced by cancel(), confirm(), createBookmark(), createBookmarkFolder(), executeAction(), importFile(), updateBookmark(), and updateBookmarkFolder().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookmarkAdministrationGUI::$data | 
Definition at line 43 of file class.ilBookmarkAdministrationGUI.php.
| ilBookmarkAdministrationGUI::$id | 
Definition at line 42 of file class.ilBookmarkAdministrationGUI.php.
| ilBookmarkAdministrationGUI::$ilias | 
Definition at line 37 of file class.ilBookmarkAdministrationGUI.php.
Referenced by ilBookmarkAdministrationGUI().
| ilBookmarkAdministrationGUI::$lng | 
Definition at line 39 of file class.ilBookmarkAdministrationGUI.php.
Referenced by createBookmark(), displayLocator(), editFormBookmark(), ilBookmarkAdministrationGUI(), initFormBookmark(), initFormBookmarkFolder(), and initImportBookmarksForm().
| ilBookmarkAdministrationGUI::$textwidth = 100 | 
Definition at line 44 of file class.ilBookmarkAdministrationGUI.php.
| ilBookmarkAdministrationGUI::$tpl | 
Definition at line 38 of file class.ilBookmarkAdministrationGUI.php.
Referenced by explorer(), and ilBookmarkAdministrationGUI().
| ilBookmarkAdministrationGUI::$tree | 
Definition at line 41 of file class.ilBookmarkAdministrationGUI.php.
| ilBookmarkAdministrationGUI::$user_id | 
Definition at line 30 of file class.ilBookmarkAdministrationGUI.php.