ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilBlogPosting GUI class. More...
Public Member Functions | |
__construct ($a_node_id, $a_access_handler=null, $a_id=0, $a_old_nr=0, $a_enable_public_notes=true, $a_may_contribute=true, $a_style_sheet_id=0) | |
Constructor. | |
executeCommand () | |
execute command | |
setBlogPosting (ilBlogPosting $a_posting) | |
Set blog posting. | |
getBlogPosting () | |
Get blog posting. | |
preview ($a_mode=null) | |
Preview blog posting. | |
previewEmbedded () | |
Needed for portfolio/blog handling. | |
previewFullscreen () | |
Needed for portfolio/blog handling. | |
showPage () | |
Embedded posting in portfolio. | |
postOutputProcessing ($a_output) | |
Finalizing output processing. | |
getTabs ($a_activate="") | |
Get tabs. | |
deleteBlogPostingConfirmationScreen () | |
Delete blog posting confirmation screen. | |
cancelBlogPostingDeletion () | |
Cancel blog posting deletion. | |
confirmBlogPostingDeletion () | |
Delete the blog posting. | |
editTitle ($a_form=null) | |
updateTitle () | |
initTitleForm () | |
editDate ($a_form=null) | |
updateDate () | |
initDateForm () | |
observeNoteAction ($a_blog_id, $a_posting_id, $a_type, $a_action, $a_note_id) | |
deactivatePageToList () | |
deactivatePage ($a_to_list=false) | |
activatePageToList () | |
activatePage ($a_to_list=false) | |
editKeywords (ilPropertyFormGUI $a_form=null) | |
saveKeywordsForm () | |
keywordAutocomplete () | |
Public Member Functions inherited from ilPageObjectGUI | |
ilPageObjectGUI ($a_parent_type, $a_id, $a_old_nr=0, $a_prevent_get_id=false, $a_lang="") | |
Constructor. | |
afterConstructor () | |
After constructor. | |
setParentType ($a_val) | |
Set parent type. | |
getParentType () | |
Get parent type. | |
setId ($a_val) | |
Set ID. | |
getId () | |
Get ID. | |
setOldNr ($a_val) | |
Set old nr (historic page) | |
getOldNr () | |
Get old nr (historic page) | |
setLanguage ($a_val) | |
Set language. | |
getLanguage () | |
Get language. | |
setEnablePCType ($a_pc_type, $a_val) | |
Set enable pc type. | |
getEnablePCType ($a_pc_type) | |
Get enable pc type. | |
setPageConfig ($a_val) | |
Set page config object. | |
getPageConfig () | |
Get page config object. | |
setBibId ($a_id) | |
Set Bib Id. | |
getBibId () | |
Get Bib Id. | |
setPageObject ($a_pg_obj) | |
Set Page Object. | |
getPageObject () | |
Get Page Object. | |
setOutputMode ($a_mode=IL_PAGE_PRESENTATION) | |
Set Output Mode. | |
getOutputMode () | |
setTemplateOutput ($a_output=true) | |
outputToTemplate () | |
setPresentationTitle ($a_title="") | |
getPresentationTitle () | |
setHeader ($a_title="") | |
getHeader () | |
setLinkParams ($l_params="") | |
getLinkParams () | |
setLinkFrame ($l_frame="") | |
getLinkFrame () | |
setLinkXML ($link_xml) | |
getLinkXML () | |
setQuestionXML ($question_xml) | |
setQuestionHTML ($question_html) | |
getQuestionXML () | |
getQuestionHTML () | |
setTemplateTargetVar ($a_variable) | |
getTemplateTargetVar () | |
setTemplateOutputVar ($a_value) | |
getTemplateOutputVar () | |
setSourcecodeDownloadScript ($script_name) | |
getSourcecodeDownloadScript () | |
enableCitation ($a_enabled) | |
isEnabledCitation () | |
setLocator (&$a_locator) | |
setTabs ($a_tabs) | |
setPageBackTitle ($a_title) | |
setFileDownloadLink ($a_download_link) | |
getFileDownloadLink () | |
setFullscreenLink ($a_fullscreen_link) | |
getFullscreenLink () | |
setIntLinkReturn ($a_return) | |
enableChangeComments ($a_enabled) | |
isEnabledChangeComments () | |
enableNotes ($a_enabled, $a_parent_id) | |
isEnabledNotes () | |
setOfflineDirectory ($offdir) | |
set offline directory to offdir | |
getOfflineDirectory () | |
get offline directory | |
setViewPageLink ($a_link, $a_target="") | |
set link for "view page" button | |
getViewPageLink () | |
get view page link | |
getViewPageTarget () | |
get view page target frame | |
setActivationListener (&$a_obj, $a_meth) | |
setEnabledNews ($a_enabled, $a_news_obj_id=0, $a_news_obj_type=0) | |
Set enabled news. | |
getEnabledNews () | |
Get enabled news. | |
setTabHook ($a_object, $a_function) | |
Set tab hook. | |
setEditPreview ($a_editpreview) | |
Set Display first Edit tab, then Preview tab, instead of Page and Edit. | |
getEditPreview () | |
Get Display first Edit tab, then Preview tab, instead of Page and Edit. | |
setEnabledTabs ($a_enabledtabs) | |
Set Output tabs. | |
getEnabledTabs () | |
Get Output tabs. | |
setEnabledPageFocus ($a_enabledpagefocus) | |
Set Enable page focus. | |
getEnabledPageFocus () | |
Get Enable page focus. | |
setExplorerUpdater ($a_exp_frame, $a_exp_id, $a_exp_target_script) | |
Set Explorer Updater. | |
setPrependingHtml ($a_prependinghtml) | |
Set Prepending HTML. | |
getPrependingHtml () | |
Get Prepending HTML. | |
setEnableEditing ($a_enableediting) | |
Set Enable Editing. | |
getEnableEditing () | |
Get Enable Editing. | |
setRawPageContent ($a_rawpagecontent) | |
Set Get raw page content only. | |
getRawPageContent () | |
Get Get raw page content only. | |
setStyleId ($a_styleid) | |
Set Style Id. | |
getStyleId () | |
Get Style Id. | |
setCompareMode ($a_val) | |
Set compare mode. | |
getCompareMode () | |
Get compare mode. | |
setAbstractOnly ($a_val) | |
Set abstract only. | |
getAbstractOnly () | |
Get abstract only. | |
setRenderPageContainer ($a_val) | |
Set render page container. | |
getRenderPageContainer () | |
Get render page container. | |
activateMetaDataEditor ($a_rep_obj_id, $a_sub_obj_id, $a_type, $a_observer_obj=NULL, $a_observer_func="") | |
Activate meda data editor. | |
determineFileDownloadLink () | |
Determine file download link. | |
determineFullscreenLink () | |
Determine fullscreen link. | |
determineSourcecodeDownloadScript () | |
Determine source code download script. | |
getComponentPluginsXML () | |
Put information about activated plugins into XML. | |
setQEditTabs ($a_active) | |
Set question editing tabs. | |
onFeedbackEditingForwarding () | |
On feedback editing forwarding. | |
deactivatePage () | |
activatePage () | |
replaceCurlyBrackets ($output) | |
Replace curly brackets. | |
addActionsMenu ($a_tpl, $sel_media_mode, $sel_html_mode, $sel_js_mode) | |
Add actions menu. | |
addMultiLangActionsAndInfo ($a_list, $a_tpl) | |
Add multi-language actions to menu. | |
setEditMode () | |
Set edit mode. | |
setDefaultLinkXml () | |
Set standard link xml. | |
downloadFile () | |
Download file of file lists. | |
displayMediaFullscreen () | |
Show media in fullscreen mode. | |
displayMedia ($a_fullscreen=false) | |
Display media. | |
download_paragraph () | |
download source code paragraph | |
insertContentIncludes ($a_html) | |
Insert content includes. | |
insertPageToc ($a_output) | |
Insert page toc. | |
insertResources ($a_output) | |
Insert resources. | |
insertAdvTrigger ($a_output) | |
Insert adv content trigger. | |
insertHelp ($a_tpl) | |
Insert help texts. | |
previewHistory () | |
Preview history. | |
preview () | |
preview | |
edit () | |
edit ("view" before) | |
insertJSAtPlaceholder () | |
InsertJS at placeholder. | |
presentation ($a_mode=IL_PAGE_PRESENTATION) | |
getHTML () | |
showMediaFullscreen ($a_style_id=0) | |
show fullscreen view of media object | |
displayValidationError ($a_error) | |
display validation error | |
history () | |
Get history table as HTML. | |
rollbackConfirmation () | |
Rollback confirmation. | |
rollback () | |
Rollback to a previous version. | |
setScreenIdComponent () | |
Set screen id component. | |
compareVersion () | |
Compares two revisions of the page. | |
replaceDiffTags ($a_html) | |
editActivation () | |
Edit activation (only, if scheduled page activation is activated in administration) | |
initActivationForm () | |
Init activation form. | |
getActivationFormValues () | |
Get values for activation form. | |
saveActivation () | |
Save Activation. | |
getNotesHTML ($a_content_object=null, $a_enable_private_notes=true, $a_enable_public_notes=false, $a_enable_notes_deletion=false, $a_callback=null) | |
Get html for public and/or private notes. | |
processAnswer () | |
Process answer. | |
initialOpenedContent () | |
Initially opened content. | |
initOpenedContentForm () | |
Init form for initially opened content. | |
saveInitialOpenedContent () | |
Save initial opened content. | |
switchToLanguage () | |
Switch to language. | |
confirmPageTranslationCreation () | |
Confirm page translation creation. | |
editMasterLanguage () | |
Edit master language. | |
createPageTranslation () | |
Create page translation. | |
releasePageLock () | |
Release page lock. |
Static Public Member Functions | |
static | getSnippet ($a_id, $a_truncate=false, $a_truncate_length=500, $a_truncate_sign="...", $a_include_picture=false, $a_picture_width=144, $a_picture_height=144, $a_export_directory=null) |
Get first text paragraph of page. | |
Static Public Member Functions inherited from ilPageObjectGUI | |
static | getTinyMenu ($a_par_type, $a_int_links=false, $a_wiki_links=false, $a_keywords=false, $a_style_id=0, $a_paragraph_styles=true, $a_save_return=true, $a_anchors=false, $a_save_new=true) |
Get Tiny Menu. |
Protected Member Functions | |
checkAccess ($a_cmd) | |
Centralized access management. | |
isInWorkspace () | |
Is current page part of personal workspace blog? | |
getActivationCaptions () | |
Get captions for activation action menu entries. | |
initKeywordsForm () | |
getParentObjId () | |
getFirstMediaObjectAsTag ($a_width=144, $a_height=144, $a_export_directory=null) | |
Protected Member Functions inherited from ilPageObjectGUI | |
initPageObject () | |
Init page object. | |
isPageContainerToBeRendered () |
Static Protected Member Functions | |
static | parseImage ($src_width, $src_height, $tgt_width, $tgt_height) |
Protected Attributes | |
$node_id | |
$access_handler | |
$enable_public_notes | |
$may_contribute | |
Protected Attributes inherited from ilPageObjectGUI | |
$parent_type = "" |
Additional Inherited Members | |
Data Fields inherited from ilPageObjectGUI | |
$tpl | |
$lng | |
$ctrl | |
$obj | |
$output_mode | |
$presentation_title | |
$target_script | |
$return_location | |
$target_var | |
$template_output_var | |
$output2template | |
$link_params | |
$bib_id | |
$citation | |
$sourcecode_download_script | |
$change_comments | |
$question_html | |
$activation = false | |
$activated = true | |
$editpreview = false | |
$use_meta_data = false | |
$link_xml_set = false | |
$enableediting = true | |
$rawpagecontent = false | |
$enabledcontentincludes = false | |
$compare_mode = false | |
$page_config = null | |
$tabs_enabled = true | |
$render_page_container = false | |
$pl_start = "{{{{{" | |
$pl_end = "}}}}}" |
Class ilBlogPosting GUI class.
ilBlogPostingGUI: ilPageEditorGUI, ilEditClipboardGUI, ilMediaPoolTargetSelector ilBlogPostingGUI: ilRatingGUI, ilPublicUserProfileGUI, ilPageObjectGUI, ilNoteGUI
Definition at line 18 of file class.ilBlogPostingGUI.php.
ilBlogPostingGUI::__construct | ( | $a_node_id, | |
$a_access_handler = null , |
|||
$a_id = 0 , |
|||
$a_old_nr = 0 , |
|||
$a_enable_public_notes = true , |
|||
$a_may_contribute = true , |
|||
$a_style_sheet_id = 0 |
|||
) |
Constructor.
int | $a_node | |
object | $a_access_handler | |
int | $a_id | |
int | $a_old_nr | |
bool | $a_enable_notes | |
bool | $a_may_contribute |
Definition at line 36 of file class.ilBlogPostingGUI.php.
References ilPageObjectGUI\$lng, ilPageObjectGUI\$tpl, getBlogPosting(), ilObjStyleSheet\getContentStylePath(), ilObjStyleSheet\getSyntaxStylePath(), isInWorkspace(), ilPageObjectGUI\setEnableEditing(), and ilPageObjectGUI\setStyleId().
ilBlogPostingGUI::activatePage | ( | $a_to_list = false | ) |
Definition at line 555 of file class.ilBlogPostingGUI.php.
References getBlogPosting(), ilPageObjectGUI\getId(), isInWorkspace(), and ilObjBlog\sendNotification().
ilBlogPostingGUI::activatePageToList | ( | ) |
Definition at line 550 of file class.ilBlogPostingGUI.php.
References ilPageObjectGUI\activatePage().
ilBlogPostingGUI::cancelBlogPostingDeletion | ( | ) |
Cancel blog posting deletion.
Definition at line 366 of file class.ilBlogPostingGUI.php.
References $ilCtrl.
|
protected |
Centralized access management.
string | $a_cmd |
Definition at line 151 of file class.ilBlogPostingGUI.php.
References $may_contribute.
Referenced by confirmBlogPostingDeletion(), deleteBlogPostingConfirmationScreen(), editKeywords(), and preview().
ilBlogPostingGUI::confirmBlogPostingDeletion | ( | ) |
Delete the blog posting.
Definition at line 376 of file class.ilBlogPostingGUI.php.
References $ilCtrl, ilPageObjectGUI\$lng, checkAccess(), getBlogPosting(), and ilUtil\sendSuccess().
ilBlogPostingGUI::deactivatePage | ( | $a_to_list = false | ) |
Definition at line 535 of file class.ilBlogPostingGUI.php.
References getBlogPosting().
ilBlogPostingGUI::deactivatePageToList | ( | ) |
Definition at line 530 of file class.ilBlogPostingGUI.php.
References ilPageObjectGUI\deactivatePage().
ilBlogPostingGUI::deleteBlogPostingConfirmationScreen | ( | ) |
Delete blog posting confirmation screen.
Definition at line 331 of file class.ilBlogPostingGUI.php.
References $ilCtrl, ilPageObjectGUI\$lng, ilPageObjectGUI\$tpl, checkAccess(), getBlogPosting(), ilPageObjectGUI\getId(), and ilNote\getUserCount().
ilBlogPostingGUI::editDate | ( | $a_form = null | ) |
Definition at line 452 of file class.ilBlogPostingGUI.php.
References ilPageObjectGUI\$tpl, and initDateForm().
ilBlogPostingGUI::editKeywords | ( | ilPropertyFormGUI | $a_form = null | ) |
Definition at line 573 of file class.ilBlogPostingGUI.php.
References ilPageObjectGUI\$tpl, checkAccess(), and initKeywordsForm().
Referenced by saveKeywordsForm().
ilBlogPostingGUI::editTitle | ( | $a_form = null | ) |
Definition at line 398 of file class.ilBlogPostingGUI.php.
References ilPageObjectGUI\$tpl, and initTitleForm().
Referenced by updateDate(), and updateTitle().
ilBlogPostingGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilPageObjectGUI.
Definition at line 76 of file class.ilBlogPostingGUI.php.
References $cmd, $ilCtrl, ilPageObjectGUI\$tpl, ilObject\_lookupTitle(), getBlogPosting(), ilUtil\getImagePath(), previewFullscreen(), and ilPageObjectGUI\setPresentationTitle().
|
protected |
Get captions for activation action menu entries.
Reimplemented from ilPageObjectGUI.
Definition at line 522 of file class.ilBlogPostingGUI.php.
References ilPageObjectGUI\$lng.
ilBlogPostingGUI::getBlogPosting | ( | ) |
Get blog posting.
Definition at line 140 of file class.ilBlogPostingGUI.php.
References ilPageObjectGUI\getPageObject().
Referenced by __construct(), activatePage(), confirmBlogPostingDeletion(), deactivatePage(), deleteBlogPostingConfirmationScreen(), executeCommand(), getTabs(), initKeywordsForm(), postOutputProcessing(), preview(), saveKeywordsForm(), and showPage().
|
protected |
Definition at line 779 of file class.ilBlogPostingGUI.php.
References ilObjMediaObject\_getDirectory(), and parseImage().
|
protected |
Definition at line 666 of file class.ilBlogPostingGUI.php.
References ilObject\_lookupObjId(), and isInWorkspace().
Referenced by keywordAutocomplete().
|
static |
Get first text paragraph of page.
int | $a_id | |
bool | $a_truncate | |
int | $a_truncate_length | |
bool | $a_include_picture | |
int | $a_picture_width | |
int | $a_picture_height | |
string | $a_export_directory |
Definition at line 745 of file class.ilBlogPostingGUI.php.
References $img, and ilPageObject\truncateHTML().
Referenced by ilObjBlog\deliverRSS(), ilBlogPosting\getNotificationAbstract(), and ilObjBlogGUI\renderList().
ilBlogPostingGUI::getTabs | ( | $a_activate = "" | ) |
Get tabs.
string | $a_activate |
Reimplemented from ilPageObjectGUI.
Definition at line 319 of file class.ilBlogPostingGUI.php.
References $ilCtrl, getBlogPosting(), and ilPageObjectGUI\getId().
ilBlogPostingGUI::initDateForm | ( | ) |
Definition at line 488 of file class.ilBlogPostingGUI.php.
References $ilCtrl, ilPageObjectGUI\$lng, ilPageObjectGUI\getPageObject(), and ilFormPropertyGUI\setRequired().
Referenced by editDate(), and updateDate().
|
protected |
Definition at line 592 of file class.ilBlogPostingGUI.php.
References $ilUser, $txt, ilBlogPosting\getAllPostings(), getBlogPosting(), ilPageObjectGUI\getId(), ilBlogPosting\getKeywords(), and ilNonEditableValueGUI\setInfo().
Referenced by editKeywords(), and saveKeywordsForm().
ilBlogPostingGUI::initTitleForm | ( | ) |
Definition at line 431 of file class.ilBlogPostingGUI.php.
References $ilCtrl, ilPageObjectGUI\$lng, ilPageObjectGUI\getPageObject(), and ilFormPropertyGUI\setRequired().
Referenced by editTitle(), and updateTitle().
|
protected |
Is current page part of personal workspace blog?
Definition at line 272 of file class.ilBlogPostingGUI.php.
Referenced by __construct(), activatePage(), getParentObjId(), observeNoteAction(), postOutputProcessing(), and preview().
ilBlogPostingGUI::keywordAutocomplete | ( | ) |
Definition at line 699 of file class.ilBlogPostingGUI.php.
References $_GET, $res, $result, ilMDKeyword\_getMatchingKeywords(), ilJsonUtil\encode(), exit, ilSearchSettings\getInstance(), getParentObjId(), and ilUtil\stripSlashes().
ilBlogPostingGUI::observeNoteAction | ( | $a_blog_id, | |
$a_posting_id, | |||
$a_type, | |||
$a_action, | |||
$a_note_id | |||
) |
Definition at line 511 of file class.ilBlogPostingGUI.php.
References isInWorkspace(), and ilObjBlog\sendNotification().
|
staticprotected |
Definition at line 820 of file class.ilBlogPostingGUI.php.
Referenced by getFirstMediaObjectAsTag().
ilBlogPostingGUI::postOutputProcessing | ( | $a_output | ) |
Finalizing output processing.
string | $a_output |
Reimplemented from ilPageObjectGUI.
Definition at line 283 of file class.ilBlogPostingGUI.php.
References ilPageObjectGUI\getAbstractOnly(), getBlogPosting(), ilUserUtil\getNamePresentation(), ilPageObjectGUI\getOutputMode(), isInWorkspace(), ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().
ilBlogPostingGUI::preview | ( | $a_mode = null | ) |
Preview blog posting.
Definition at line 163 of file class.ilBlogPostingGUI.php.
References $_GET, $ilCtrl, $ilSetting, ilPageObjectGUI\$tpl, checkAccess(), getBlogPosting(), ilPageObjectGUI\getId(), ilPageObjectGUI\getNotesHTML(), and isInWorkspace().
ilBlogPostingGUI::previewEmbedded | ( | ) |
Needed for portfolio/blog handling.
Definition at line 233 of file class.ilBlogPostingGUI.php.
References ilPageObjectGUI\preview().
ilBlogPostingGUI::previewFullscreen | ( | ) |
Needed for portfolio/blog handling.
Definition at line 243 of file class.ilBlogPostingGUI.php.
References ilPageObjectGUI\preview().
Referenced by executeCommand().
ilBlogPostingGUI::saveKeywordsForm | ( | ) |
Definition at line 681 of file class.ilBlogPostingGUI.php.
References editKeywords(), getBlogPosting(), and initKeywordsForm().
ilBlogPostingGUI::setBlogPosting | ( | ilBlogPosting | $a_posting | ) |
Set blog posting.
ilBlogPosting | $a_posting |
Definition at line 130 of file class.ilBlogPostingGUI.php.
References ilPageObjectGUI\setPageObject().
ilBlogPostingGUI::showPage | ( | ) |
Embedded posting in portfolio.
Reimplemented from ilPageObjectGUI.
Definition at line 254 of file class.ilBlogPostingGUI.php.
References ilPageObjectGUI\getAbstractOnly(), getBlogPosting(), ilPageObjectGUI\setPresentationTitle(), and ilPageObjectGUI\setTemplateOutput().
ilBlogPostingGUI::updateDate | ( | ) |
Definition at line 466 of file class.ilBlogPostingGUI.php.
References $ilCtrl, ilPageObjectGUI\$lng, editTitle(), ilPageObjectGUI\getPageObject(), IL_CAL_DATETIME, initDateForm(), and ilUtil\sendSuccess().
ilBlogPostingGUI::updateTitle | ( | ) |
Definition at line 412 of file class.ilBlogPostingGUI.php.
References $ilCtrl, ilPageObjectGUI\$lng, editTitle(), ilPageObjectGUI\getPageObject(), initTitleForm(), and ilUtil\sendSuccess().
|
protected |
Definition at line 21 of file class.ilBlogPostingGUI.php.
|
protected |
Definition at line 22 of file class.ilBlogPostingGUI.php.
|
protected |
Definition at line 23 of file class.ilBlogPostingGUI.php.
Referenced by checkAccess().
|
protected |
Definition at line 20 of file class.ilBlogPostingGUI.php.