constructor LibertyContent [line 91]
LibertyContent LibertyContent(
)
|
|
Construct an empty LibertyBase object with a blank permissions array
method addHit [line 1102]
Increment the content item hit flag by 1
Tags:
method cacheUrl [line 1915]
bool cacheUrl(
string
$url, [string
$data = ''])
|
|
Cache given url If \c $data present (passed) it is just associated \c $url and \c $data.
Else it will request data for given URL and store it in DB. Actualy (currently) data may be proviced by TIkiIntegrator only.
Tags:
Parameters:
method copyPermissions [line 990]
bool copyPermissions(
integer
$destinationObjectId)
|
|
Copy current permissions to another object
Tags:
Parameters:
method exportHtml [line 612]
method expunge [line 364]
method expungeActionLog [line 2269]
TRUE expungeActionLog(
[array
$pTimeSpan = NULL])
|
|
expungeActionLog
Tags:
Parameters:
method expungeCacheFile [line 2064]
TRUE expungeCacheFile(
[array
$pContentId = NULL])
|
|
Delete cache file for a given content item
Tags:
Parameters:
method expungeComments [line 348]
Delete comment entries relating to the content object
method expungeVersion [line 581]
TRUE expungeVersion(
[pVersion
$pVersion = NULL], [comment
$comment = ''])
|
|
Removes a specific version of a page
Tags:
Parameters:
method getActionLogs [line 2214]
List getActionLogs(
&$pListHash, array
$pListHash)
|
|
Get a list of action log entries
Tags:
Parameters:
method getAuthorList [line 1418]
- getAuthorList(
array
&$pListHash)
|
|
Get a list of users who have created entries in the content table
Tags:
Parameters:
method getCacheBasePath [line 2003]
absolute getCacheBasePath(
)
|
|
Get the path where we store liberty cached content
Tags:
method getCacheFile [line 2049]
filename getCacheFile(
[array
$pContentId = NULL], [
$pCacheExtension = NULL])
|
|
Get the path to file where an individual cache item is stored
Tags:
Parameters:
method getCachePath [line 2014]
path getCachePath(
[array
$pContentId = NULL])
|
|
Get the path to directory where an individual cache item is stored
Tags:
Parameters:
method getContentDescription [line 1242]
string getContentDescription(
)
|
|
Return content type description for this content object.
Tags:
method getContentId [line 1229]
Access a content item type GUID
Tags:
method getContentList [line 1480]
array getContentList(
$pListHash, string
$pListHash['content_type_guid'], integer
$pListHash['max_records'], integer
$pListHash['offset'], string
$pListHash['sort_mode'], array
$pListHash['find'], integer
$pListHash[''])
|
|
Get a list of all structures this content is a member of
Tags:
Parameters:
method getContentRanking [line 1449]
- getContentRanking(
array
$pListHash)
|
|
Get a list of content ranked by certain criteria set in $pListHash['sort_mode']
Tags:
Parameters:
method getContentType [line 1202]
Access a content item type GUID
Tags:
method getContentTypeDescription [line 1216]
void getContentTypeDescription(
[
$pContentType = NULL])
|
|
Parameters:
method getDisplayLink [line 1270]
method getDisplayUrl [line 1297]
method getFilter [line 2078]
void getFilter(
$pContentTypeGuid,
&$pSql,
&$pBindVars, [
$pHash = null])
|
|
Parameters:
method getHistory [line 445]
array getHistory(
[pExistsHash
$pVersion = NULL], [
$pUserId = NULL], [
$pOffset = 0], [
$max_records = -1])
|
|
Get complete set of historical data in order to display a given wiki page version
Tags:
Parameters:
method getHistoryCount [line 428]
Get count of the number of historic records for the page
method getHits [line 1142]
Get Hits and Last Hit
Tags:
method getNumberOfPages [line 1828]
string getNumberOfPages(
string
&$data)
|
|
Special parsing for multipage articles
Temporarily remove
...
sections to protect from broke
pre
tags and leave well known
pre
behaviour (i.e. type all text inside AS IS w/o any interpretation)
Tags:
Parameters:
method getPage [line 1859]
string getPage(
string
&$data, integer
$i)
|
|
Special parsing for a particular page of a multipage article
Temporary remove <PRE></PRE> secions to protect from broke <PRE> tags and leave well known <PRE> behaviour (i.e. type all text inside AS IS w/o any interpretation)
Tags:
Parameters:
method getPreference [line 1012]
void getPreference(
string
$pPrefName, [string
$pPrefDefault = NULL], [int
$pContentId = NULL])
|
|
Returns the content preferences value for the passed in key.
Parameters:
method getRenderFile [line 1260]
method getServicesSql [line 709]
void getServicesSql(
$pServiceFunction,
&$pSelectSql,
&$pJoinSql,
&$pWhereSql,
&$pBindVars, [
$pObject = NULL], [
$pParamHash = NULL])
|
|
Set up SQL strings for services used by the object
Parameters:
method getStructures [line 1746]
Get a list of all structures this content is a member of
method getThumbnailUrl [line 1317]
string getThumbnailUrl(
[string
$pSize = 'small'], [int
$pContentId = NULL], [int
$pSecondaryId = NULL])
|
|
Not-so-pure virtual function that returns Request_URI to a content's thumbnail representation. It is up to the derived content what exactly this means If not implemented in the content's class, this class will return NULL, which is an acceptable case meaning no thumbnail is available.
FisheyeGallery, BitUser might return pictures, BitArticle might return the article topic image, etc.
Tags:
Overridden in child classes as:
- FisheyeGallery::getThumbnailUrl()
- FisheyeImage::getThumbnailUrl()
Parameters:
method getTitle [line 1184]
string getTitle(
[array
$pHash = NULL])
|
|
Create the generic title for a content item
This will normally be overwriten by extended classes to provide an appropriate title title string
Tags:
Overridden in child classes as:
- BitBlogPost::getTitle()
- BitUser::getTitle()
Parameters:
method getUserPermissions [line 904]
array getUserPermissions(
integer
$pUserId)
|
|
Get specific permissions for the specified user for this content
Tags:
Parameters:
method hasAdminPermission [line 883]
bool hasAdminPermission(
)
|
|
Determine if current user has the ability to administer this type of content
Tags:
method hasEditPermission [line 893]
bool hasEditPermission(
)
|
|
Determine if current user has the ability to edit this type of content
Tags:
method hasPermission [line 952]
bool hasPermission(
integer
$pUserId, integer
$pObjectId, string
$pObjectType, string
$pPermName)
|
|
Check is a user has permission to access the object
Tags:
Overridden in child classes as:
- BitPermUser::hasPermission()
Parameters:
method hasUserPermission [line 840]
bool hasUserPermission(
string
$pPermName, [bool
$pFatalIfFalse = FALSE], [string
$pFatalMessage = NULL])
|
|
Function that determines if this content specified permission for the current gBitUser
Tags:
Overridden in child classes as:
- FisheyeBase::hasUserPermission()
- Overloaded function that determines if this content can be edited by the current gBitUser
Parameters:
method invokeServices [line 690]
void invokeServices(
$pServiceFunction, [
$pFunctionParam = NULL])
|
|
Set up access to services used by the object
Parameters:
method isAdminable [line 650]
void isAdminable(
[
$pContentId = NULL])
|
|
Check permissions to establish if user has permission to admin the object
That would include permission to delete an object or change it's permissions Should be provided by the decendent package
Parameters:
method isCached [line 1898]
integer isCached(
string
$url)
|
|
Check if given url is currently cached locally
Tags:
Parameters:
method isContentType [line 673]
void isContentType(
$pContentGuid)
|
|
Check user_id to establish if the object that has been loaded was created by the current user
Parameters:
method isEditable [line 641]
void isEditable(
[
$pContentId = NULL])
|
|
Check permissions to establish if user has permission to edit the object
Should be provided by the decendent package
Parameters:
method isHidden [line 872]
method isInStructure [line 1961]
integer isInStructure(
[integer
$pStructureId = NULL])
|
|
Check the number of structures that the content object is being used in
Tags:
Parameters:
method isOwner [line 659]
TRUE isOwner(
[$pParamHash
$pParamHash = NULL])
|
|
Check user_id to establish if the object that has been loaded was created by the current user
Tags:
Parameters:
method isPrivate [line 862]
method isProtected [line 867]
method isValid [line 625]
method isViewable [line 633]
void isViewable(
[
$pContentId = NULL])
|
|
Check permissions to establish if user has permission to view the object
Should be provided by the decendent package
Parameters:
method load [line 103]
method loadAllObjectPermissions [line 749]
void loadAllObjectPermissions(
[
$pParamHash = NULL])
|
|
Load all permissions assigned to a given object. This is not for general consumption.
This funtions sole purpose is for displaying purposes. if you want to get all permissions assigned to a given object use LibertyContent::loadPermissions();
Tags:
Parameters:
method loadPermissions [line 778]
Check permissions for the object that has been loaded against the permission database
Tags:
Overridden in child classes as:
- BitPermUser::loadPermissions()
method loadPreferences [line 1035]
void loadPreferences(
[
$pContentId = NULL])
|
|
Parameters:
method pageExists [line 1160]
void pageExists(
pPageName
$pPageName, [pCaseSensitive
$pCaseSensitive = FALSE], [pContentId
$pContentId = NULL])
|
|
Determines if a wiki page (row in wiki_pages) exists, and returns a hash of important info. If N pages exists with $pPageName, returned existsHash has a row for each unique pPageName row.
Parameters:
method parseData [line 1778]
string parseData(
[pMixed
$pMixed = NULL], [string
$pFormatGuid = NULL], int
2, boolean
3, string
4, string
5)
|
|
Process the raw content blob using the speified content GUID processor
This is the "object like" method. It should be more object like, but for now, we'll just point to the old lib style "parse_data" - XOXO spiderr
Tags:
Parameters:
method postGetList [line 1326]
- postGetList(
array
&$pListHash)
|
|
Updates results from any getList function to provide the control set
displaying in the smarty template
Tags:
Parameters:
method registerContentType [line 1091]
void registerContentType(
string
$pContentGuid, array
$pTypeParams)
|
|
Copy current permissions to another object
Parameters:
method removeLastVersion [line 513]
void removeLastVersion(
[
$comment = ''])
|
|
Removes last version of the page (from pages) if theres some
version in the liberty_content_history then the last version becomes the actual version
Parameters:
method removePermission [line 975]
bool removePermission(
integer
$pGroupId, string
$pPermName)
|
|
Remove a permission to access the object
Tags:
Parameters:
method rollbackVersion [line 540]
TRUE rollbackVersion(
pVersion
$pVersion, [comment
$comment = ''])
|
|
Roll back to a specific version of a page
Tags:
Overridden in child classes as:
- BitPage::rollbackVersion()
- Roll back to a specific version of a page
Parameters:
method setHits [line 1123]
bool setHits(
$pHits, [
$pLastHit = 0])
|
|
Set Hits and Last Hit
Tags:
Parameters:
method setIndexData [line 1982]
void setIndexData(
[
$pContentId = 0])
|
|
This is a generic liberty content function to gather indexable words. Override this function in your BitPackage.php file if you need to add more indexable words from files other than tiki_content and users_users.
Overridden in child classes as:
- BitPage::setIndexData()
Parameters:
method setPreference [line 1050]
void setPreference(
string
$pPrefName, string
$pPrefValue)
|
|
Set a hash value in the mPrefs hash. This does *NOT* store the value in the database. It does no checking for existing or duplicate values. the main point of this function is to limit direct accessing of the mPrefs hash. I will probably make mPrefs private one day.
Parameters:
method setStructure [line 1949]
void setStructure(
integer
$pStructureId)
|
|
Set content related mStructureId
Parameters:
method store [line 273]
method storeActionLog [line 2102]
TRUE storeActionLog(
[array
$pParamHash = NULL])
|
|
storeActionLog Note: use $gBitSystem throughout that this function can be called statically if needed
Tags: