Cheetah
ChWsbTextPageView.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChWsbPageView');
9 ch_import('ChTemplConfig');
10 
12 {
14  var $_sName;
15  var $_oObject;
16 
17  function __construct($sPageName, $sName, &$oObject)
18  {
19  parent::__construct($sPageName);
20 
21  $this->_sName = process_db_input($sName, CH_TAGS_STRIP);
22  $this->_oObject = $oObject;
23  }
25  {
26  return $this->_oObject->getBlockView($this->_sName);
27  }
29  {
30  return $this->_oObject->getBlockComment($this->_sName);
31  }
32  function getBlockCode_Vote()
33  {
34  $sContent = $this->_oObject->getBlockVote($this->_sName);
35  return !empty($sContent) ? array($sContent, array(), array(), false) : '';
36  }
37  function getBlockCode_Info()
38  {
39  return $this->_oObject->getBlockInfo($this->_sName);
40  }
42  {
43  return $this->_oObject->getBlockAction($this->_sName);
44  }
46  {
47  return $this->_oObject->getBlockSocialSharing($this->_sName);
48  }
49 }
process_db_input
process_db_input($sText, $iStripTags=0)
Definition: utils.inc.php:256
ChWsbPageView
Definition: ChWsbPageView.php:99
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
ChWsbTextPageView\$_sName
$_sName
Definition: ChWsbTextPageView.php:14
ChWsbTextPageView\__construct
__construct($sPageName, $sName, &$oObject)
Definition: ChWsbTextPageView.php:17
php
ChWsbTextPageView\getBlockCode_Action
getBlockCode_Action()
Definition: ChWsbTextPageView.php:41
ChWsbTextPageView\getBlockCode_Info
getBlockCode_Info()
Definition: ChWsbTextPageView.php:37
ChWsbTextPageView\$_oObject
$_oObject
Definition: ChWsbTextPageView.php:15
ChWsbTextPageView\getBlockCode_Vote
getBlockCode_Vote()
Definition: ChWsbTextPageView.php:32
ChWsbTextPageView\$_sPageName
$_sPageName
Definition: ChWsbTextPageView.php:13
$sContent
$sContent
Definition: bottom_menu_compose.php:169
ChWsbTextPageView
Definition: ChWsbTextPageView.php:12
ChWsbTextPageView\getBlockCode_Comment
getBlockCode_Comment()
Definition: ChWsbTextPageView.php:28
CH_TAGS_STRIP
const CH_TAGS_STRIP
Definition: utils.inc.php:22
ChWsbPageView\$sPageName
$sPageName
Definition: ChWsbPageView.php:100
ChWsbTextPageView\getBlockCode_Content
getBlockCode_Content()
Definition: ChWsbTextPageView.php:24
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7
$sName
$sName
Definition: ChWsbAdminTools.php:853
ChWsbTextPageView\getBlockCode_SocialSharing
getBlockCode_SocialSharing()
Definition: ChWsbTextPageView.php:45