Cheetah
|
Public Member Functions | |
__construct ( $sPageName) | |
checkAjaxMode () | |
createCache () | |
load () | |
isLoaded () | |
getPageTitle () | |
getPageWidth () | |
getPageClass () | |
getViewerInfo () | |
forcePageWidth ($iWidth) | |
gen () | |
genPageEmpty () | |
genOnlyBlock ( $iBlockID, $sDynamicType='tab') | |
getCode () | |
genColumnsHeader () | |
genColumnsFooter () | |
genColumn ( $iColumn) | |
getBlockCode_Topest ($iColumn) | |
genColumnHeader ( $iColumn, $fColumnWidth) | |
genColumnFooter ( $iColumn) | |
genBlock ( $iBlockID, $aBlock, $bStatic=true, $sDynamicType='tab') | |
_getBlockCaptionCode ($iBlockID, $aBlock, $aBlockCode, $bStatic=true, $sDynamicType='tab') | |
_getBlockTopCode ($iBlockID, $aBlock, $aBlockCode, $bStatic=true, $sDynamicType='tab') | |
_getBlockBottomCode ($iBlockID, $aBlock, $aBlockCode, $bStatic=true, $sDynamicType='tab') | |
isBlockVisible ( $sVisible) | |
getBlockBottomCode ( $iBlockID, $aLinks) | |
getBlockCode_MemberStat () | |
getBlockCode_Custom ( $iBlockID, $sContent) | |
getBlockCode_Echo ( $iBlockID, $sContent) | |
getBlockCode_TrueText ( $iBlockID, $sContent) | |
getBlockCode_Text ($iBlockID, $sContent) | |
getBlockCode_XML ( $iBlockID, $sContent) | |
getBlockCode_PHP ( $iBlockID, $sContent) | |
getBlockCode_Code ( $iBlockID, $sContent) | |
getBlockCode_RSS ( $iBlockID, $sContent) | |
getBlockCode_LoginSection ($iBlockID, $sParams='') | |
GenFormWrap ($sMainContent, $sPage, $sFunctionName, $iMaxThumbWidth, $iThumbsCnt) | |
getBlocksCacheObject () | |
genBlocksCacheKey ($sId) | |
Static Public Member Functions | |
static | getBlockCaptionItemCode ( $iBlockID, $aLinks) |
static | getBlockCaptionMenu ( $iBlockID, $aLinks) |
Public Attributes | |
$sPageName | |
$aPage | |
$sCode = '' | |
$sWhoViews = 'non' | |
$iMemberID = 0 | |
$bAjaxMode = false | |
$aColumnsWidth = array () | |
$sTableName = 'sys_page_compose' | |
$sCacheFile | |
$oCacher = null | |
This class used for generation content of columned pages with blocks.
Example of using. To create your own columned php page using this class you should follow these instructions:
<?php
require_once( 'inc/header.inc.php' ); require_once( CH_DIRECTORY_PATH_INC . 'design.inc.php' ); ch_import('ChWsbPageView');
class ChExamplePageView extends ChWsbPageView { function ChExamplePageView() { parent::ChWsbPageView('example'); // Attention! Here should be name which you will insert into sys_page_compose_pages in next step. }
// Here is functions that generate blocks on page. They are contain only contents of blocks. // You do not have to worry about it's title, design, etc. PageView class will make it itself.
// This function creates first block function getBlockCode_BlockOne() { return 'Hello world!'; }
// This function creates another block with dynamic menu tabs function getBlockCode_BlockTwo() { return array( 'I am Block Two. I have top menu!', array( _t('_View') => array( 'href' => $_SERVER['PHP_SELF'] . '?view=true', 'dynamic' => true, 'active' => !$this->isEditable, ), _t('_Edit') => array( 'href' => $_SERVER['PHP_SELF'] . '?edit=true', 'dynamicPopup' => true, 'active' => $this->isEditable, ) ) ); } }
$_page['name_index'] = 0; // choose your own index of template or leave if in doubt $_page['header'] = 'Example page'; $_ni = $_page['name_index'];
$oEPV = new ChExamplePageView(); $_page_cont[$_ni]['page_main_code'] = $oEPV->getCode();
?>
Definition at line 98 of file ChWsbPageView.php.
ChWsbPageView::__construct | ( | $sPageName | ) |
Reimplemented in ChWsbRate, ChWsbBrowse, ChChatPlusPage, ChAdsPageHome, ChTemplCommunicator, ChTemplCommunicator, ChTemplCommunicator, ChBaseCommunicator, and ChWsbCommunicator.
Definition at line 114 of file ChWsbPageView.php.
ChWsbPageView::_getBlockBottomCode | ( | $iBlockID, | |
$aBlock, | |||
$aBlockCode, | |||
$bStatic = true , |
|||
$sDynamicType = 'tab' |
|||
) |
Definition at line 483 of file ChWsbPageView.php.
ChWsbPageView::_getBlockCaptionCode | ( | $iBlockID, | |
$aBlock, | |||
$aBlockCode, | |||
$bStatic = true , |
|||
$sDynamicType = 'tab' |
|||
) |
Reimplemented in ChBaseProfileView.
Definition at line 452 of file ChWsbPageView.php.
ChWsbPageView::_getBlockTopCode | ( | $iBlockID, | |
$aBlock, | |||
$aBlockCode, | |||
$bStatic = true , |
|||
$sDynamicType = 'tab' |
|||
) |
Definition at line 470 of file ChWsbPageView.php.
ChWsbPageView::checkAjaxMode | ( | ) |
Definition at line 133 of file ChWsbPageView.php.
ChWsbPageView::createCache | ( | ) |
Definition at line 139 of file ChWsbPageView.php.
ChWsbPageView::forcePageWidth | ( | $iWidth | ) |
Definition at line 205 of file ChWsbPageView.php.
ChWsbPageView::gen | ( | ) |
Definition at line 210 of file ChWsbPageView.php.
ChWsbPageView::genBlock | ( | $iBlockID, | |
$aBlock, | |||
$bStatic = true , |
|||
$sDynamicType = 'tab' |
|||
) |
Reimplemented in ChBaseProfileView.
Definition at line 379 of file ChWsbPageView.php.
ChWsbPageView::genBlocksCacheKey | ( | $sId | ) |
Definition at line 836 of file ChWsbPageView.php.
ChWsbPageView::genColumn | ( | $iColumn | ) |
Definition at line 303 of file ChWsbPageView.php.
ChWsbPageView::genColumnFooter | ( | $iColumn | ) |
Definition at line 371 of file ChWsbPageView.php.
ChWsbPageView::genColumnHeader | ( | $iColumn, | |
$fColumnWidth | |||
) |
Definition at line 333 of file ChWsbPageView.php.
ChWsbPageView::genColumnsFooter | ( | ) |
Definition at line 298 of file ChWsbPageView.php.
ChWsbPageView::genColumnsHeader | ( | ) |
Reimplemented in ChPollView.
Definition at line 292 of file ChWsbPageView.php.
ChWsbPageView::GenFormWrap | ( | $sMainContent, | |
$sPage, | |||
$sFunctionName, | |||
$iMaxThumbWidth, | |||
$iThumbsCnt | |||
) |
Definition at line 810 of file ChWsbPageView.php.
ChWsbPageView::genOnlyBlock | ( | $iBlockID, | |
$sDynamicType = 'tab' |
|||
) |
Definition at line 241 of file ChWsbPageView.php.
ChWsbPageView::genPageEmpty | ( | ) |
Definition at line 232 of file ChWsbPageView.php.
ChWsbPageView::getBlockBottomCode | ( | $iBlockID, | |
$aLinks | |||
) |
Definition at line 656 of file ChWsbPageView.php.
|
static |
Definition at line 502 of file ChWsbPageView.php.
|
static |
Definition at line 586 of file ChWsbPageView.php.
ChWsbPageView::getBlockCode_Code | ( | $iBlockID, | |
$sContent | |||
) |
Definition at line 748 of file ChWsbPageView.php.
ChWsbPageView::getBlockCode_Custom | ( | $iBlockID, | |
$sContent | |||
) |
Definition at line 703 of file ChWsbPageView.php.
ChWsbPageView::getBlockCode_Echo | ( | $iBlockID, | |
$sContent | |||
) |
Definition at line 711 of file ChWsbPageView.php.
ChWsbPageView::getBlockCode_LoginSection | ( | $iBlockID, | |
$sParams = '' |
|||
) |
Definition at line 771 of file ChWsbPageView.php.
ChWsbPageView::getBlockCode_MemberStat | ( | ) |
members statistic block
Definition at line 698 of file ChWsbPageView.php.
ChWsbPageView::getBlockCode_PHP | ( | $iBlockID, | |
$sContent | |||
) |
Definition at line 740 of file ChWsbPageView.php.
ChWsbPageView::getBlockCode_RSS | ( | $iBlockID, | |
$sContent | |||
) |
Definition at line 753 of file ChWsbPageView.php.
ChWsbPageView::getBlockCode_Text | ( | $iBlockID, | |
$sContent | |||
) |
Definition at line 725 of file ChWsbPageView.php.
ChWsbPageView::getBlockCode_Topest | ( | $iColumn | ) |
Definition at line 328 of file ChWsbPageView.php.
ChWsbPageView::getBlockCode_TrueText | ( | $iBlockID, | |
$sContent | |||
) |
Definition at line 716 of file ChWsbPageView.php.
ChWsbPageView::getBlockCode_XML | ( | $iBlockID, | |
$sContent | |||
) |
Definition at line 730 of file ChWsbPageView.php.
ChWsbPageView::getBlocksCacheObject | ( | ) |
Definition at line 829 of file ChWsbPageView.php.
ChWsbPageView::getCode | ( | ) |
Reimplemented in ChWallPage, ChGroupsPageView, and ChEventsPageView.
Definition at line 261 of file ChWsbPageView.php.
ChWsbPageView::getPageClass | ( | ) |
Definition at line 192 of file ChWsbPageView.php.
ChWsbPageView::getPageTitle | ( | ) |
Definition at line 182 of file ChWsbPageView.php.
ChWsbPageView::getPageWidth | ( | ) |
Definition at line 187 of file ChWsbPageView.php.
ChWsbPageView::getViewerInfo | ( | ) |
Definition at line 197 of file ChWsbPageView.php.
ChWsbPageView::isBlockVisible | ( | $sVisible | ) |
Definition at line 494 of file ChWsbPageView.php.
ChWsbPageView::isLoaded | ( | ) |
Definition at line 177 of file ChWsbPageView.php.
ChWsbPageView::load | ( | ) |
Definition at line 146 of file ChWsbPageView.php.
ChWsbPageView::$aColumnsWidth = array () |
Definition at line 107 of file ChWsbPageView.php.
ChWsbPageView::$aPage |
Definition at line 101 of file ChWsbPageView.php.
ChWsbPageView::$bAjaxMode = false |
Definition at line 105 of file ChWsbPageView.php.
ChWsbPageView::$iMemberID = 0 |
Definition at line 104 of file ChWsbPageView.php.
ChWsbPageView::$oCacher = null |
Definition at line 112 of file ChWsbPageView.php.
ChWsbPageView::$sCacheFile |
Definition at line 110 of file ChWsbPageView.php.
ChWsbPageView::$sCode = '' |
Definition at line 102 of file ChWsbPageView.php.
ChWsbPageView::$sPageName |
Definition at line 100 of file ChWsbPageView.php.
ChWsbPageView::$sTableName = 'sys_page_compose' |
Definition at line 109 of file ChWsbPageView.php.
ChWsbPageView::$sWhoViews = 'non' |
Definition at line 103 of file ChWsbPageView.php.