|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
GUI class for personal bookmark administration. More...
Collaboration diagram for ilBookmarkAdministrationGUI:Public Member Functions | |
| __construct () | |
| Constructor @access 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 @access 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.
@ilCtrl_Calls ilBookmarkAdministrationGUI:
Definition at line 19 of file class.ilBookmarkAdministrationGUI.php.
| ilBookmarkAdministrationGUI::__construct | ( | ) |
Constructor @access public.
| integer | user_id (optional) |
Definition at line 71 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $DIC, $ilCtrl, $ilUser, $lng, $tpl, error(), and user().
Here is the call graph for this function:| 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 @access private |
Definition at line 970 of file class.ilBookmarkAdministrationGUI.php.
References __importBookmarks().
Referenced by __importBookmarks(), and importFile().
Here is the call 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 224 of file class.ilBookmarkAdministrationGUI.php.
| ilBookmarkAdministrationGUI::cancel | ( | ) |
cancel deletion,insert, update
Definition at line 815 of file class.ilBookmarkAdministrationGUI.php.
References view().
Here is the call graph for this function:| ilBookmarkAdministrationGUI::confirm | ( | ) |
deletion confirmed -> delete folders / bookmarks
Definition at line 823 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, $error, $id, $ilErr, $type, ilBookmark\_getTypeOfId(), ilUtil\sendSuccess(), and view().
Here is the call graph for this function:| ilBookmarkAdministrationGUI::confirmedMove | ( | ) |
Definition at line 1037 of file class.ilBookmarkAdministrationGUI.php.
References $ilUser, $tree, $user, ilUtil\sendFailure(), ilUtil\sendSuccess(), and view().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| ilBookmarkAdministrationGUI::createBookmarkFolder | ( | ) |
create new bookmark folder in db
Definition at line 564 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, $ctrl, $ilCtrl, newFormBookmarkFolder(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookmarkAdministrationGUI::displayLocator | ( | ) |
display locator
Definition at line 243 of file class.ilBookmarkAdministrationGUI.php.
References $key, $lng, $path, $row, and $title.
Referenced by displayHeader().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookmarkAdministrationGUI::executeAction | ( | ) |
Definition at line 131 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, export(), sendmail(), and view().
Here is the call graph for this function:| ilBookmarkAdministrationGUI::executeCommand | ( | ) |
execute command
Definition at line 113 of file class.ilBookmarkAdministrationGUI.php.
References displayHeader(), explorer(), and getMode().
Here is the call graph for this function:| ilBookmarkAdministrationGUI::explorer | ( | ) |
output explorer tree with bookmark folders
Definition at line 162 of file class.ilBookmarkAdministrationGUI.php.
References $tpl.
Referenced by executeCommand().
Here is the caller graph for this function:| 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().
Here is the call 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 526 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, and ilUtil\prepareFormOutput().
Referenced by editFormBookmarkFolder().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| ilBookmarkAdministrationGUI::importFile | ( | ) |
imports a bookmark file into database display status information or report errors messages in case of error @access public
Definition at line 931 of file class.ilBookmarkAdministrationGUI.php.
References __importBookmarks(), ilBookmarkImportExport\_parseFile(), newFormBookmark(), ilUtil\sendFailure(), ilUtil\sendSuccess(), sprintf, and view().
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 400 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $action, $ctrl, $form, $ilCtrl, $ilUser, $lng, and $user.
Referenced by editFormBookmark(), and newFormBookmark().
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 332 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $action, $ctrl, $form, $ilCtrl, $ilUser, $lng, and $user.
Referenced by editFormBookmarkFolder(), and newFormBookmarkFolder().
Here is the caller graph for this function:
|
private |
Init import bookmark form.
Definition at line 480 of file class.ilBookmarkAdministrationGUI.php.
References $ctrl, $form, $ilCtrl, $ilUser, $lng, and $user.
Referenced by newFormBookmark().
Here is the caller graph for this function:| ilBookmarkAdministrationGUI::move | ( | ) |
Definition at line 1013 of file class.ilBookmarkAdministrationGUI.php.
References $_GET, $ilUser, $tabs, $tpl, $user, ilUtil\sendFailure(), ilUtil\sendInfo(), and view().
Here is the call graph for this function:| ilBookmarkAdministrationGUI::newForm | ( | $type | ) |
new form
Definition at line 298 of file class.ilBookmarkAdministrationGUI.php.
References $_POST, $type, newFormBookmark(), and newFormBookmarkFolder().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookmarkAdministrationGUI::showPossibleSubObjects | ( | ) |
display subobject addition selection
Definition at line 873 of file class.ilBookmarkAdministrationGUI.php.
References $_SESSION, and ilUtil\formSelect().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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.