UNA
|
Public Member Functions | |
getObjectName () | |
getUri () | |
getBlockContent ($iBlockId, $sLang=false, $iRevision=false) | |
getContents ($sAllExceptSpecified='', $sOnlySpecified='') | |
getMissingTranslations ($sLang=false) | |
getOutdatedTranslations ($sLang=false) | |
isAllowed ($sType, $iProfileId=false) | |
addPage ($sPageUri, $sTitleLangKey) | |
actionGetTranslation () | |
actionDeleteVersion () | |
actionAddPage () | |
actionAdd () | |
actionDeleteBlock () | |
actionHistory () | |
actionTranslate () | |
actionEdit ($bTranslate=false) | |
actionConvertLinks () | |
updateBlockIndexingData ($iBlockId) | |
getVarsForHistory ($iBlockId, $sLang) | |
Static Public Member Functions | |
static | getObjectInstanceByUri ($sUri, $oTemplate=false) |
static | getObjectInstance ($sObject, $oTemplate=false) |
static | onModuleUninstall ($sModule) |
static | onBlockDelete ($mixedBlockIds) |
![]() | |
static | getObjectInstance ($sObject) |
Protected Member Functions | |
__construct ($aObject) | |
getPageUrl ($sPageUri, $bPermalink=true, $bAddRootUrl=true) | |
isContentChanged ($iBlockId, $sLang, $sContent) | |
getFieldRev ($oForm, $sLang, $aWikiVer) | |
getFieldMainLangFlag ($oForm, $sLang, $aWikiVer) | |
getFieldUnsafeFlag ($oForm, $sLang, $aWikiVer) | |
getLangsForInput ($iBlockId, $bTranslateForm, &$sMainLangLabel, &$aWikiVerMain, &$sLangForTranslate) | |
Protected Attributes | |
$_sObject | |
$_aObject | |
$_oQuery | |
$_sLangCateg = 'Wiki' | |
$_sACLprefix = 'wiki ' | |
$_bProcessMarkdown = true | |
WIKI object.
It's possble to create different WIKI object which will different URLs, Menus and permissions. For example it's possible to create http://example.com/wiki/somepageshere and http://example.com/docs/anotherpageshere
Add record to 'sys_objects_wiki' table:
Add record to 'sys_rewrite_rules' table:
Add record to 'sys_permalinks' table:
|
protected |
Constructor
$aObject | array of WIKI options |
BxDolWiki::getBlockContent | ( | $iBlockId, | |
$sLang = false, | |||
$iRevision = false ) |
Get WIKI block content
$iBlockId | block ID |
$sLang | optional language name |
BxDolWiki::getContents | ( | $sAllExceptSpecified = '', | |
$sOnlySpecified = '' ) |
Generate wiki contents - list of all wiki pages
BxDolWiki::getMissingTranslations | ( | $sLang = false | ) |
Generate list of wiki blocks with missing translations for the given language
|
static |
Get WIKI object instance by object name
$sObject | object name |
|
static |
Get WIKI object instance by object URI
$sObject | object name |
BxDolWiki::getObjectName | ( | ) |
Get object name
BxDolWiki::getOutdatedTranslations | ( | $sLang = false | ) |
Generate list of wiki blocks with outdated translations for the given language
BxDolWiki::getUri | ( | ) |
Get URI
BxDolWiki::isAllowed | ( | $sType, | |
$iProfileId = false ) |
Check if partucular action is allowed
$sType | action type: add, edit, delete, translate |
$sProfileId | profile to check, if not provided then current profile is used |