ILIAS
Release_4_2_x_branch Revision 61807
|
Class ilObjBlogGUI. More...
Public Member Functions | |
__construct ($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0) | |
Constructor. | |
getType () | |
Functions that must be overwritten. | |
setTabs () | |
create tabs (repository/workspace switch) | |
executeCommand () | |
execute command | |
infoScreen () | |
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed | |
infoScreenForward () | |
show information screen | |
createPosting () | |
Create new posting. | |
render () | |
Render object context. | |
getExerciseInfo ($a_assignment_id) | |
downloadExcAssFile () | |
downloadExcSubFile () | |
getHTML () | |
Return embeddable HTML chunk. | |
preview () | |
Render fullscreen presentation. | |
export () | |
Build and deliver export file. | |
renderFullScreen ($a_content, $a_navigation) | |
Build fullscreen context. | |
renderList (array $items, $a_month, $a_cmd="preview", $a_link_template=null, $a_show_inactive=false) | |
Build posting month list. | |
renderNavigation (array $items, $a_list_cmd="render", $a_posting_cmd="preview", $a_link_template=null, $a_show_inactive=false) | |
Build navigation block. | |
buildExportFile () | |
Build export file. | |
exportHTMLPages ($a_target_directory, $a_link_template=null, $a_tpl_callback=null, $a_co_page_html_export=null, $a_index_name="index.html") | |
Export all pages. | |
getNotesSubId () | |
disableNotes ($a_value=false) | |
_goto ($a_target) | |
Deep link. | |
Public Member Functions inherited from ilObject2GUI | |
delete () | |
Display delete confirmation form (repository/workspace switch) | |
confirmedDelete () | |
Delete objects (repository/workspace switch) | |
withReferences () | |
Final/Private declaration of unchanged parent methods. | |
setCreationMode ($a_mode=true) | |
if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui | |
getCreationMode () | |
get creation mode | |
isVisible () | |
trash () | |
undelete () | |
cancelDelete () | |
removeFromSystem () | |
cloneAll () | |
getAdminTabs ($a) | |
view () | |
view object content (repository/workspace switch) | |
getTemplateFile () | |
copyWizardHasOptions ($a_mode) | |
Check if there is any modules specific option. | |
create () | |
Deleted in ilObject. | |
save () | |
edit () | |
update () | |
cancel () | |
importFile () | |
Import. | |
Public Member Functions inherited from ilObjectGUI | |
ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true) | |
Constructor public. | |
getAdminTabs (&$tabs_gui) | |
administration tabs show only permissions and trash folder | |
undeleteObject () | |
Get objects back from trash. | |
confirmedDeleteObject () | |
confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled | |
cancelDeleteObject () | |
cancel deletion of object | |
removeFromSystemObject () | |
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method | |
cancelObject ($in_rep=false) | |
cancel action and go back to previous page public | |
createObject () | |
create new object form | |
cancelCreation () | |
cancel create action and go back to repository parent | |
saveObject () | |
save object | |
editObject () | |
edit object | |
updateObject () | |
updates object entry in object_data | |
getFormAction ($a_cmd, $a_formaction="") | |
get form action for command (command is method name without "Object", e.g. | |
isVisible ($a_ref_id, $a_type) | |
viewObject () | |
list childs of current object | |
deleteObject ($a_error=false) | |
Display deletion confirmation screen. | |
trashObject () | |
Show trash content of object. | |
getTemplateFile ($a_cmd, $a_type="") | |
get a template blockfile format: tpl. | |
cloneAllObject () | |
Clone single (not container object) Method is overwritten in ilContainerGUI. |
Static Public Member Functions | |
static | lookupSubObjectTitle ($a_blog_id, $a_posting_id) |
Get title for blog posting (used in ilNotesGUI) |
Protected Member Functions | |
initCreationForms ($a_new_type) | |
Init creation froms. | |
afterSave (ilObject $a_new_object) | |
Post (successful) object creation hook. | |
initEditCustomForm (ilPropertyFormGUI $a_form) | |
Add custom fields to update form. | |
getEditFormCustomValues (array &$a_values) | |
Add values to custom edit fields. | |
updateCustom (ilPropertyFormGUI $a_form) | |
Insert custom update form values into object. | |
buildEmbedded ($a_content, $a_nav) | |
Combine content (list/posting) and navigation to html chunk. | |
renderFullscreenHeader ($a_tpl, $a_user_id, $a_export=false) | |
Render banner, user name. | |
buildPostingList ($a_obj_id) | |
Gather all blog postings. | |
buildExportLink ($a_template, $a_type, $a_id) | |
Build static export link. | |
buildExportTemplate ($a_back_url="") | |
Build export "frame". | |
writeExportFile ($a_target_directory, $a_file, $a_tpl, $a_content, $a_right_content=null) | |
Write HTML to file. | |
finalize () | |
Finalize and submit blog to exercise. | |
addHeaderAction ($a_cmd) | |
initHeaderAction ($sub_type=null, $sub_id=null, $a_is_preview=false) | |
setNotification () | |
filterInactivePostings () | |
Filter inactive items from items list. | |
Protected Member Functions inherited from ilObject2GUI | |
afterConstructor () | |
Do anything that should be done after constructor in here. | |
assignObject () | |
create object instance as internal property (repository/workspace switch) | |
getAccessHandler () | |
Get access handler. | |
setLocator () | |
set Locator | |
deleteConfirmation () | |
Display delete confirmation form (workspace specific) | |
deleteConfirmedObjects () | |
Delete objects (workspace specific) | |
prepareOutput () | |
prepare output | |
setTitleAndDescription () | |
called by prepare output | |
showUpperIcon () | |
omitLocator ($a_omit=true) | |
getTargetFrame ($a_cmd, $a_target_frame="") | |
get target frame for command (command is method name without "Object", e.g. | |
setTargetFrame ($a_cmd, $a_target_frame) | |
set specific target frame for command | |
getCenterColumnHTML () | |
Get center column. | |
getRightColumnHTML () | |
Display right column. | |
setColumnSettings ($column_gui) | |
May be overwritten in subclasses. | |
checkPermission ($a_perm, $a_cmd="") | |
showPossibleSubObjects () | |
show possible subobjects (pulldown menu) | |
redirectToRefId () | |
fillCloneTemplate ($a_tpl_varname, $a_type) | |
Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. | |
fillCloneSearchTemplate ($a_tpl_varname, $a_type) | |
searchCloneSource () | |
buildCloneSelect ($existing_objs) | |
addAdminLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) | |
getReturnLocation () | |
Deprecated functions. | |
setReturnLocation () | |
showActions () | |
getTitlesByRefId () | |
getTabs () | |
__showButton () | |
hitsperpageObject () | |
__initTableGUI () | |
__setTableGUIBasicData () | |
__showClipboardTable () | |
addLocatorItems () | |
Functions to be overwritten. | |
putObjectInTree (ilObject $a_obj, $a_parent_node_id=null) | |
Add object to tree at given position. | |
checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_node_id=null) | |
Check permission. | |
initHeaderAction ($a_sub_type=null, $a_sub_id=null) | |
Add header action menu. | |
redrawHeaderAction () | |
Updating icons after ajax call. | |
getPermanentLinkWidget ($a_append=null, $a_center=false) | |
Protected Member Functions inherited from ilObjectGUI | |
insertHeaderAction ($a_list_gui) | |
Insert header action into main template. | |
addHeaderAction () | |
Add header action menu. | |
redrawHeaderActionObject () | |
Ajax call: redraw action header only. | |
setAdminTabs () | |
set admin tabs public | |
getCreationFormsHTML (array $a_forms) | |
Get HTML for creation forms (accordion) | |
initCreateForm ($a_new_type) | |
Init object creation form. | |
initDidacticTemplate (ilPropertyFormGUI $form) | |
Show didactic template types. | |
addDidacticTemplateOptions (array &$a_options) | |
Add custom templates. | |
getDidacticTemplateVar ($a_type) | |
Get didactic template setting from creation screen. | |
initEditForm () | |
Init object edit form. | |
getEditFormValues () | |
Get values for edit form. | |
afterUpdate () | |
Post (successful) object update hook. | |
initImportForm ($a_new_type) | |
Init object import form. | |
importFileObject ($parent_id=null) | |
Import. | |
afterImport (ilObject $a_new_object) | |
Post (successful) object import hook. | |
setFormAction ($a_cmd, $a_formaction) | |
set specific form action for command | |
getReturnLocation ($a_cmd, $a_location="") | |
get return location for command (command is method name without "Object", e.g. | |
setReturnLocation ($a_cmd, $a_location) | |
set specific return location for command | |
getTitlesByRefId ($a_ref_ids) | |
get Titles of objects this method is used for error messages in methods cut/copy/paste | |
getTabs (&$tabs_gui) | |
get tabs abstract method. | |
__showButton ($a_cmd, $a_text, $a_target= '') | |
__setTableGUIBasicData (&$tbl, &$result_set, $a_from="") | |
standard implementation for tables use 'from' variable use different initial setting of table | |
__showClipboardTable ($a_result_set, $a_from="") | |
redirectToRefId ($a_ref_id, $a_cmd="") | |
redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value | |
checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | |
Check permission and redirect on error. |
Protected Attributes | |
$month | |
$items | |
Protected Attributes inherited from ilObject2GUI | |
$object_id | |
$node_id | |
$creation_forms = array() | |
$id_type = array() | |
$parent_id | |
$access_handler |
Additional Inherited Members | |
Data Fields inherited from ilObject2GUI | |
$tree | |
const | OBJECT_ID = 0 |
const | REPOSITORY_NODE_ID = 1 |
const | WORKSPACE_NODE_ID = 2 |
const | REPOSITORY_OBJECT_ID = 3 |
const | WORKSPACE_OBJECT_ID = 4 |
Class ilObjBlogGUI.
ilObjBlogGUI: ilBlogPostingGUI, ilWorkspaceAccessGUI, ilPortfolioPageGUI ilObjBlogGUI: ilInfoScreenGUI, ilNoteGUI, ilCommonActionDispatcherGUI
Definition at line 19 of file class.ilObjBlogGUI.php.
ilObjBlogGUI::__construct | ( | $a_id = 0 , |
|
$a_id_type = self::REPOSITORY_NODE_ID , |
|||
$a_parent_node_id = 0 |
|||
) |
Constructor.
int | $a_id | |
int | $a_id_type | |
int | $a_parent_node_id |
Reimplemented from ilObject2GUI.
Definition at line 24 of file class.ilObjBlogGUI.php.
References $_REQUEST, $ilCtrl, ilObjectGUI\$lng, and buildPostingList().
ilObjBlogGUI::_goto | ( | $a_target | ) |
|
protected |
Definition at line 1408 of file class.ilObjBlogGUI.php.
References $_GET, ilObjectGUI\addHeaderAction(), initHeaderAction(), and ilObjectGUI\insertHeaderAction().
|
protected |
Post (successful) object creation hook.
ilObject | $a_new_object |
Reimplemented from ilObjectGUI.
Definition at line 68 of file class.ilObjBlogGUI.php.
References $ilCtrl, and ilUtil\sendSuccess().
|
protected |
Combine content (list/posting) and navigation to html chunk.
string | $a_content | |
string | $a_nav |
Definition at line 704 of file class.ilObjBlogGUI.php.
Referenced by executeCommand(), and getHTML().
ilObjBlogGUI::buildExportFile | ( | ) |
Build export file.
Definition at line 1128 of file class.ilObjBlogGUI.php.
References ilExport\_createExportDirectory(), ilExport\_getExportDirectory(), ilObjUser\_getPersonalPicturePath(), ilUtil\delDir(), exportHTMLPages(), ilUtil\makeDir(), and ilUtil\zip().
Referenced by export().
|
protected |
Build static export link.
string | $a_template | |
string | $a_type | |
mixed | $a_id |
Definition at line 1281 of file class.ilObjBlogGUI.php.
Referenced by exportHTMLPages(), renderList(), and renderNavigation().
|
protected |
Build export "frame".
type | $a_back_url |
Definition at line 1301 of file class.ilObjBlogGUI.php.
References ilObjectGUI\$lng, ilObjectGUI\$tpl, and renderFullscreenHeader().
Referenced by exportHTMLPages().
|
protected |
Gather all blog postings.
int | $a_obj_id |
Definition at line 827 of file class.ilObjBlogGUI.php.
References $items, $month, ilBlogPosting\getAllPostings(), and IL_CAL_DATE.
Referenced by __construct().
ilObjBlogGUI::createPosting | ( | ) |
Create new posting.
Definition at line 376 of file class.ilObjBlogGUI.php.
References $_POST, $ilCtrl, ilObjectGUI\$lng, $title, and ilUtil\stripSlashes().
ilObjBlogGUI::disableNotes | ( | $a_value = false | ) |
Definition at line 1403 of file class.ilObjBlogGUI.php.
ilObjBlogGUI::downloadExcAssFile | ( | ) |
Definition at line 591 of file class.ilObjBlogGUI.php.
References $_GET, $file, ilUtil\deliverFile(), and ilExAssignment\getFiles().
ilObjBlogGUI::downloadExcSubFile | ( | ) |
Definition at line 612 of file class.ilObjBlogGUI.php.
References $_GET, $title, ilObjUser\_lookupName(), ilObject\_lookupTitle(), ilUtil\deliverFile(), and ilExAssignment\getDeliveredFiles().
ilObjBlogGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObject2GUI.
Definition at line 175 of file class.ilObjBlogGUI.php.
References $_GET, $_REQUEST, $cmd, $ilCtrl, ilObjectGUI\$lng, $ret, ilObjectGUI\$tpl, ilObjectGUI\addHeaderAction(), buildEmbedded(), ilObject2GUI\checkPermissionBool(), filterInactivePostings(), ilObject2GUI\getAccessHandler(), ilObjStyleSheet\getEffectiveContentStyleId(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), infoScreenForward(), ilObject2GUI\prepareOutput(), preview(), renderFullScreen(), renderNavigation(), ilUtil\sendInfo(), and ilPageObjectGUI\setStyleId().
ilObjBlogGUI::export | ( | ) |
Build and deliver export file.
Definition at line 687 of file class.ilObjBlogGUI.php.
References buildExportFile(), and ilUtil\deliverFile().
ilObjBlogGUI::exportHTMLPages | ( | $a_target_directory, | |
$a_link_template = null , |
|||
$a_tpl_callback = null , |
|||
$a_co_page_html_export = null , |
|||
$a_index_name = "index.html" |
|||
) |
Export all pages.
string | $a_target_directory | |
string | $a_link_template | (embedded) |
array | $a_tpl_callback | (embedded) |
object | $a_co_page_html_export | (embedded) |
string | $a_index_name | (embedded) |
Definition at line 1196 of file class.ilObjBlogGUI.php.
References $file, $month, ilObjectGUI\$tpl, ilPageObject\_exists(), buildExportLink(), buildExportTemplate(), ilBlogPosting\getAllPostings(), IL_CAL_DATE, renderList(), renderNavigation(), and writeExportFile().
Referenced by buildExportFile().
|
protected |
Filter inactive items from items list.
Definition at line 1519 of file class.ilObjBlogGUI.php.
References $month, and ilPageObject\_lookupActive().
Referenced by executeCommand(), getHTML(), and preview().
|
protected |
Finalize and submit blog to exercise.
Definition at line 1379 of file class.ilObjBlogGUI.php.
References $_GET, $_REQUEST, $ilCtrl, ilObjectGUI\$lng, and ilUtil\sendSuccess().
|
protected |
Add values to custom edit fields.
array | $a_values |
Reimplemented from ilObjectGUI.
Definition at line 110 of file class.ilObjBlogGUI.php.
ilObjBlogGUI::getExerciseInfo | ( | $a_assignment_id | ) |
Definition at line 478 of file class.ilObjBlogGUI.php.
References $file, $ilCtrl, ilObjectGUI\$lng, ilObject\_getAllReferences(), ilLink\_getStaticLink(), ilObject\_lookupTitle(), ilDatePresentation\formatDate(), ilExAssignment\getDeliveredFiles(), ilExAssignment\getFiles(), IL_CAL_DATETIME, ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().
Referenced by render().
ilObjBlogGUI::getHTML | ( | ) |
Return embeddable HTML chunk.
Reimplemented from ilObject2GUI.
Definition at line 643 of file class.ilObjBlogGUI.php.
References buildEmbedded(), filterInactivePostings(), renderList(), and renderNavigation().
ilObjBlogGUI::getNotesSubId | ( | ) |
Definition at line 1394 of file class.ilObjBlogGUI.php.
References $_REQUEST.
ilObjBlogGUI::getType | ( | ) |
Functions that must be overwritten.
Reimplemented from ilObject2GUI.
Definition at line 53 of file class.ilObjBlogGUI.php.
ilObjBlogGUI::infoScreen | ( | ) |
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed
Definition at line 320 of file class.ilObjBlogGUI.php.
References infoScreenForward().
ilObjBlogGUI::infoScreenForward | ( | ) |
show information screen
Definition at line 330 of file class.ilObjBlogGUI.php.
References $ilErr, ilObject2GUI\checkPermissionBool(), and ilObject2GUI\getPermanentLinkWidget().
Referenced by executeCommand(), and infoScreen().
|
protected |
Init creation froms.
this will create the default creation forms: new, import, clone
string | $a_new_type |
Reimplemented from ilObject2GUI.
Definition at line 58 of file class.ilObjBlogGUI.php.
|
protected |
Add custom fields to update form.
ilPropertyFormGUI | $a_form |
Reimplemented from ilObjectGUI.
Definition at line 76 of file class.ilObjBlogGUI.php.
References $file, $img, ilObjectGUI\$lng, and ilPropertyFormGUI\addItem().
|
protected |
Definition at line 1427 of file class.ilObjBlogGUI.php.
References $_GET, $ilCtrl, ilObject2GUI\$node_id, ilUtil\getImagePath(), ilNotification\hasNotification(), and ilNotification\TYPE_BLOG.
Referenced by addHeaderAction().
|
static |
Get title for blog posting (used in ilNotesGUI)
int | $a_blog_id | |
int | $a_posting_id |
Definition at line 1503 of file class.ilObjBlogGUI.php.
ilObjBlogGUI::preview | ( | ) |
Render fullscreen presentation.
Definition at line 662 of file class.ilObjBlogGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilObject2GUI\checkPermissionBool(), filterInactivePostings(), renderFullScreen(), renderList(), renderNavigation(), and ilUtil\sendInfo().
Referenced by executeCommand().
ilObjBlogGUI::render | ( | ) |
Render object context.
Definition at line 409 of file class.ilObjBlogGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilObject2GUI\$node_id, ilObjectGUI\$ref_id, $title, ilObjectGUI\$tpl, ilObject2GUI\$tree, ilObject\_getAllReferences(), ilObject2GUI\checkPermissionBool(), ilObjExercise\findUserFiles(), getExerciseInfo(), renderList(), renderNavigation(), and ilUtil\sendInfo().
ilObjBlogGUI::renderFullScreen | ( | $a_content, | |
$a_navigation | |||
) |
Build fullscreen context.
string | $a_content | |
string | $a_navigation |
Definition at line 718 of file class.ilObjBlogGUI.php.
References $_GET, ilObjectGUI\$tpl, exit, and renderFullscreenHeader().
Referenced by executeCommand(), and preview().
|
protected |
Render banner, user name.
object | $a_tpl | |
int | $a_user_id | |
bool | $a_export_path |
Definition at line 780 of file class.ilObjBlogGUI.php.
References $t, ilObjUser\_getPersonalPicturePath(), and ilObjUser\_lookupName().
Referenced by buildExportTemplate(), and renderFullScreen().
ilObjBlogGUI::renderList | ( | array | $items, |
$a_month, | |||
$a_cmd = "preview" , |
|||
$a_link_template = null , |
|||
$a_show_inactive = false |
|||
) |
Build posting month list.
array | $items | |
string | $a_month | |
string | $a_cmd | |
bool | $a_link_template | |
bool | $a_show_inactive |
Definition at line 848 of file class.ilObjBlogGUI.php.
References $ilCtrl, ilObjectGUI\$lng, $preview, $title, ilNote\_getNotesOfObject(), ilPageObject\_lookupActive(), ilCalendarUtil\_numericMonthToString(), buildExportLink(), ilObject2GUI\checkPermissionBool(), ilDatePresentation\formatDate(), ilObject2GUI\getAccessHandler(), ilObject2GUI\getPermanentLinkWidget(), IL_CAL_DATE, and IL_NOTE_PUBLIC.
Referenced by exportHTMLPages(), getHTML(), preview(), and render().
ilObjBlogGUI::renderNavigation | ( | array | $items, |
$a_list_cmd = "render" , |
|||
$a_posting_cmd = "preview" , |
|||
$a_link_template = null , |
|||
$a_show_inactive = false |
|||
) |
Build navigation block.
array | $items | |
string | $a_list_cmd | |
string | $a_posting_cmd | |
bool | $a_link_template | |
bool | $a_show_inactive |
Definition at line 1030 of file class.ilObjBlogGUI.php.
References $ilCtrl, $month, ilPageObject\_lookupActive(), ilCalendarUtil\_numericMonthToString(), and buildExportLink().
Referenced by executeCommand(), exportHTMLPages(), getHTML(), preview(), and render().
|
protected |
Definition at line 1477 of file class.ilObjBlogGUI.php.
References $_GET, $ilCtrl, ilObject2GUI\$node_id, and ilNotification\TYPE_BLOG.
ilObjBlogGUI::setTabs | ( | ) |
create tabs (repository/workspace switch)
this had to be moved here because of the context-specific permission tab
Reimplemented from ilObject2GUI.
Definition at line 141 of file class.ilObjBlogGUI.php.
References ilObjectGUI\$lng, and ilObject2GUI\checkPermissionBool().
|
protected |
Insert custom update form values into object.
ilPropertyFormGUI | $a_form |
Reimplemented from ilObjectGUI.
Definition at line 119 of file class.ilObjBlogGUI.php.
References ilPropertyFormGUI\getInput(), and ilPropertyFormGUI\getItemByPostVar().
|
protected |
Write HTML to file.
type | $a_target_directory | |
type | $a_file | |
type | $a_tpl | |
type | $a_content | |
type | $a_right_content |
Definition at line 1338 of file class.ilObjBlogGUI.php.
References $file.
Referenced by exportHTMLPages().
|
protected |
Definition at line 22 of file class.ilObjBlogGUI.php.
Referenced by buildPostingList().
|
protected |
Definition at line 21 of file class.ilObjBlogGUI.php.
Referenced by buildPostingList(), exportHTMLPages(), filterInactivePostings(), and renderNavigation().