Cheetah
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ChWallTemplate Class Reference
Inheritance diagram for ChWallTemplate:
ChWsbModuleTemplate ChWsbTemplate

Public Member Functions

 __construct (&$oConfig, &$oDb)
 
 setModule (&$oModule)
 
 getSystem ($aEvent, $sDisplayType=CH_WALL_VIEW_TIMELINE)
 
 getCommon ($aEvent)
 
 _getSystemData (&$aEvent, $sDisplayType=CH_WALL_VIEW_TIMELINE)
 
 _getCommonData ($aEvent)
 
 _getCommonMedia ($sType, $iObject)
 
 getEmpty ($bVisible)
 
 getDivider (&$iDays, &$aEvent)
 
 getDividerToday ($aEvent=array())
 
 getTimeline ($iStart, $iPerPage, $sFilter, $sTimeline, $aModules)
 
 getLoadMore ($iStart, $iPerPage, $bEnabled=true, $bVisible=true)
 
 getLoadMoreOutline ($iStart, $iPerPage, $bEnabled=true, $bVisible=true)
 
 getUploader ($iOwnerId, $sType, $sSubType='')
 
 displayProfileEdit ($aEvent)
 
 displayProfileEditStatusMessage ($aEvent)
 
 displayProfileCommentAdd ($aEvent)
 
 displayProfileCommentPost ($aEvent)
 
 displayFriendAccept ($aEvent)
 
 getOwnerThumbnail ($iOwnerId)
 
 getOwnerIcon ($iOwnerId)
 
 getComments ($aEvent, $aResult)
 
 getDefaultComments ($iEventId)
 
 getJsCode ($sType, $aParams=array(), $aRequestParams=array())
 
 getRepostElement ($iOwnerId, $sType, $sAction, $iObjectId, $aParams=array())
 
 getRepostCounter ($aEvent, $aParams=array())
 
 getRepostedBy ($iId)
 
 getRepostJsScript ()
 
 getRepostJsClick ($iOwnerId, $sType, $sAction, $mixedObjectId)
 
- Public Member Functions inherited from ChWsbModuleTemplate
 __construct (&$oConfig, &$oDb, $sRootPath=CH_DIRECTORY_PATH_ROOT, $sRootUrl=CH_WSB_URL_ROOT)
 
 addAdminCss ($mixedFiles, $bDynamic=false)
 
 addAdminJs ($mixedFiles, $bDynamic=false)
 
 pageCodeAdminStart ()
 
 pageCodeAdmin ($sTitle)
 
 pageStart ()
 
 pageEnd ($isGetContent=true)
 
 _parseAnything ($s, $sDiv, $sLinkStart, $sClassName='')
 
- Public Member Functions inherited from ChWsbTemplate
 __construct ($sRootPath=CH_DIRECTORY_PATH_ROOT, $sRootUrl=CH_WSB_URL_ROOT)
 
 loadTemplates ()
 
 init ()
 
 addLocation ($sKey, $sLocationPath, $sLocationUrl)
 
 addDynamicLocation ($sLocationPath, $sLocationUrl)
 
 removeLocation ($sKey)
 
 addLocationJs ($sKey, $sLocationPath, $sLocationUrl)
 
 addDynamicLocationJs ($sLocationPath, $sLocationUrl)
 
 removeLocationJs ($sKey)
 
 getCodeKey ()
 
 getCode ()
 
 getPageWidth ()
 
 setPageWidth ($sWidth)
 
 setPageTitle ($sTitle)
 
 setPageMainBoxTitle ($sTitle)
 
 setPageDescription ($sDescription)
 
 addJsOption ($mixedName)
 
 addJsTranslation ($mixedKey)
 
 addJsImage ($aImages)
 
 addJsIcon ($aIcons)
 
 addCssStyle ($sName, $sContent)
 
 addPageKeywords ($mixedKeywords, $sDevider=',')
 
 setOpenGraphInfo ($a, $sNamespace='og')
 
 getMetaInfo ()
 
 getTemplate ($sName)
 
 getIconUrl ($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH)
 
 getIconPath ($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH)
 
 getImageUrl ($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH)
 
 getImagePath ($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH)
 
 getCssUrl ($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH)
 
 getCssPath ($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH)
 
 getHtml ($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH)
 
 parseHtmlByName ($sName, $aVariables, $mixedKeyWrapperHtml=null, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH)
 
 parseHtmlByContent ($sContent, $aVariables, $mixedKeyWrapperHtml=null)
 
 parseHtmlByTemplateName ($sName, $aVariables, $mixedKeyWrapperHtml=null)
 
 parsePageByName ($sName, $aVariables)
 
 parseSystemKey ($sKey, $mixedKeyWrapperHtml=null)
 
 getTemplatesCacheObject ()
 
 getCached ($sName, &$aVariables, $mixedKeyWrapperHtml=null, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH, $bEvaluate=true)
 
 addJs ($mixedFiles, $bDynamic=false)
 
 addJsSystem ($mixedFiles)
 
 deleteJs ($mixedFiles)
 
 deleteJsSystem ($mixedFiles)
 
 _compileJs ($sAbsolutePath, &$aIncluded)
 
 _wrapInTagJs ($sFile)
 
 _wrapInTagJsCode ($sCode)
 
 addCss ($mixedFiles, $bDynamic=false)
 
 addCssAsync ($mixedFiles)
 
 includeCssAsync ()
 
 addCssSystem ($mixedFiles)
 
 deleteCss ($mixedFiles)
 
 deleteCssSystem ($mixedFiles)
 
 _compileCss ($sAbsolutePath, &$aIncluded)
 
 _minifyCss ($s)
 
 _wrapInTagCss ($sFile)
 
 _wrapInTagCssCode ($sCode)
 
 includeCssStyles ()
 
 includeFiles ($sType, $bSystem=false)
 
 _includeFiles ($sType, &$aFiles)
 
 _processFiles ($sType, $sAction, $mixedFiles, $bDynamic=false, $bSystem=false)
 
 _parseContent ($sContent, $aVariables, $mixedKeyWrapperHtml=null)
 
 _compileContent ($sContent, $aVarName, $iVarDepth, $aVarValues, $mixedKeyWrapperHtml=null)
 
 _getAbsoluteLocation ($sType, $sFolder, $sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH)
 
 _getAbsoluteLocationJs ($sType, $sName)
 
 _getAbsoluteLocationCss ($sType, $sName)
 
 _getInlineData ($sType, $sName, $sCheckIn)
 
 _getCacheFileName ($sType, $sAbsolutePath)
 
 _getKeyWrappers ($mixedKeyWrapperHtml)
 
 _processJsTranslations ()
 
 _processJsOptions ()
 
 _processJsImages ()
 
 _getLoaderUrl ($sType, $sName)
 
 displayAccessDenied ()
 
 displayNoData ()
 
 displayErrorOccured ()
 
 displayPageNotFound ()
 
 displayMsg ($s, $bTranslate=false)
 
 processInjection ($iPageIndex, $sKey, $sValue="")
 
 addInjection ($sKey, $sType, $sData, $iReplace=0)
 

Public Attributes

 $_oModule
 
- Public Attributes inherited from ChWsbModuleTemplate
 $_oDb
 
 $_oConfig
 
 $_bObStarted = 0
 
- Public Attributes inherited from ChWsbTemplate
 $_sPrefix
 
 $_sRootPath
 
 $_sRootUrl
 
 $_sInjectionsTable
 
 $_sInjectionsCache
 
 $_sCode
 
 $_sCodeKey
 
 $_sKeyWrapperHtml
 
 $_sFolderHtml
 
 $_sFolderCss
 
 $_sFolderImages
 
 $_sFolderIcons
 
 $_aTemplates
 
 $_aLocations
 
 $_aLocationsJs
 
 $_bCacheEnable
 
 $_sCacheFolderUrl
 
 $_sCachePublicFolderUrl
 
 $_sCachePublicFolderPath
 
 $_sCacheFilePrefix
 
 $_bImagesInline
 
 $_iImagesMaxSize
 
 $_bCssCache
 
 $_bCssArchive
 
 $_sCssCachePrefix
 
 $_bJsCache
 
 $_bJsArchive
 
 $_sJsCachePrefix
 

Protected Member Functions

 getOwnerImage ($sType, $iOwnerId)
 

Additional Inherited Members

- Static Public Member Functions inherited from ChWsbTemplate
static _callbackParseUrl ($sPath, $aMatches)
 

Detailed Description

Definition at line 10 of file ChWallTemplate.php.

Constructor & Destructor Documentation

◆ __construct()

ChWallTemplate::__construct ( $oConfig,
$oDb 
)

Constructor

Definition at line 17 of file ChWallTemplate.php.

Member Function Documentation

◆ _getCommonData()

ChWallTemplate::_getCommonData (   $aEvent)

Definition at line 167 of file ChWallTemplate.php.

◆ _getCommonMedia()

ChWallTemplate::_getCommonMedia (   $sType,
  $iObject 
)

Definition at line 246 of file ChWallTemplate.php.

◆ _getSystemData()

ChWallTemplate::_getSystemData ( $aEvent,
  $sDisplayType = CH_WALL_VIEW_TIMELINE 
)

Definition at line 142 of file ChWallTemplate.php.

◆ displayFriendAccept()

ChWallTemplate::displayFriendAccept (   $aEvent)

Definition at line 576 of file ChWallTemplate.php.

◆ displayProfileCommentAdd()

ChWallTemplate::displayProfileCommentAdd (   $aEvent)

Definition at line 486 of file ChWallTemplate.php.

◆ displayProfileCommentPost()

ChWallTemplate::displayProfileCommentPost (   $aEvent)

DEPRICATED, saved for backward compatibility

Definition at line 533 of file ChWallTemplate.php.

◆ displayProfileEdit()

ChWallTemplate::displayProfileEdit (   $aEvent)

Definition at line 423 of file ChWallTemplate.php.

◆ displayProfileEditStatusMessage()

ChWallTemplate::displayProfileEditStatusMessage (   $aEvent)

Definition at line 452 of file ChWallTemplate.php.

◆ getComments()

ChWallTemplate::getComments (   $aEvent,
  $aResult 
)

Definition at line 626 of file ChWallTemplate.php.

◆ getCommon()

ChWallTemplate::getCommon (   $aEvent)

Definition at line 99 of file ChWallTemplate.php.

◆ getDefaultComments()

ChWallTemplate::getDefaultComments (   $iEventId)

Definition at line 654 of file ChWallTemplate.php.

◆ getDivider()

ChWallTemplate::getDivider ( $iDays,
$aEvent 
)

Definition at line 285 of file ChWallTemplate.php.

◆ getDividerToday()

ChWallTemplate::getDividerToday (   $aEvent = array())

Definition at line 312 of file ChWallTemplate.php.

◆ getEmpty()

ChWallTemplate::getEmpty (   $bVisible)

Definition at line 278 of file ChWallTemplate.php.

◆ getJsCode()

ChWallTemplate::getJsCode (   $sType,
  $aParams = array(),
  $aRequestParams = array() 
)

Definition at line 660 of file ChWallTemplate.php.

◆ getLoadMore()

ChWallTemplate::getLoadMore (   $iStart,
  $iPerPage,
  $bEnabled = true,
  $bVisible = true 
)

Definition at line 347 of file ChWallTemplate.php.

◆ getLoadMoreOutline()

ChWallTemplate::getLoadMoreOutline (   $iStart,
  $iPerPage,
  $bEnabled = true,
  $bVisible = true 
)

Definition at line 364 of file ChWallTemplate.php.

◆ getOwnerIcon()

ChWallTemplate::getOwnerIcon (   $iOwnerId)

Definition at line 608 of file ChWallTemplate.php.

◆ getOwnerImage()

ChWallTemplate::getOwnerImage (   $sType,
  $iOwnerId 
)
protected

Definition at line 613 of file ChWallTemplate.php.

◆ getOwnerThumbnail()

ChWallTemplate::getOwnerThumbnail (   $iOwnerId)

Definition at line 603 of file ChWallTemplate.php.

◆ getRepostCounter()

ChWallTemplate::getRepostCounter (   $aEvent,
  $aParams = array() 
)

Definition at line 768 of file ChWallTemplate.php.

◆ getRepostedBy()

ChWallTemplate::getRepostedBy (   $iId)

Definition at line 790 of file ChWallTemplate.php.

◆ getRepostElement()

ChWallTemplate::getRepostElement (   $iOwnerId,
  $sType,
  $sAction,
  $iObjectId,
  $aParams = array() 
)

Repost functions.

Definition at line 683 of file ChWallTemplate.php.

◆ getRepostJsClick()

ChWallTemplate::getRepostJsClick (   $iOwnerId,
  $sType,
  $sAction,
  $mixedObjectId 
)

Definition at line 825 of file ChWallTemplate.php.

◆ getRepostJsScript()

ChWallTemplate::getRepostJsScript ( )

Definition at line 815 of file ChWallTemplate.php.

◆ getSystem()

ChWallTemplate::getSystem (   $aEvent,
  $sDisplayType = CH_WALL_VIEW_TIMELINE 
)

Common public methods. Is used to display events on the Wall.

Definition at line 33 of file ChWallTemplate.php.

◆ getTimeline()

ChWallTemplate::getTimeline (   $iStart,
  $iPerPage,
  $sFilter,
  $sTimeline,
  $aModules 
)

Definition at line 320 of file ChWallTemplate.php.

◆ getUploader()

ChWallTemplate::getUploader (   $iOwnerId,
  $sType,
  $sSubType = '' 
)

Definition at line 382 of file ChWallTemplate.php.

◆ setModule()

ChWallTemplate::setModule ( $oModule)

Definition at line 24 of file ChWallTemplate.php.

Member Data Documentation

◆ $_oModule

ChWallTemplate::$_oModule

Definition at line 12 of file ChWallTemplate.php.


The documentation for this class was generated from the following file: