| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup UnaCore UNA Core
- * @{
- */
- class BxDolContentInfoCmts extends BxDolContentInfo
- {
- protected $_oCmts;
- protected function __construct($sSystem)
- {
- parent::__construct($sSystem);
- $this->_oCmts = BxDolCmts::getObjectInstance($this->_aSystem['alert_unit'], 0, false);
- }
- public function getContentAuthor ($iContentId)
- {
- return $this->_oCmts->serviceGetAuthor($iContentId);
- }
- public function getContentDateAdded ($iContentId)
- {
- return $this->_oCmts->serviceGetDateAdded($iContentId);
- }
- public function getContentDateChanged ($iContentId)
- {
- return $this->_oCmts->serviceGetDateChanged($iContentId);
- }
- public function getContentTitle ($iContentId)
- {
- return $this->_oCmts->serviceGetTitle($iContentId);
- }
- public function getContentThumb ($iContentId)
- {
- return $this->_oCmts->serviceGetThumb($iContentId);
- }
- public function getContentLink ($iContentId)
- {
- return $this->_oCmts->serviceGetLink($iContentId);
- }
- public function getContentText ($iContentId)
- {
- return $this->_oCmts->serviceGetText($iContentId);
- }
- public function getContentInfo ($iContentId, $bSearchableFieldsOnly = true)
- {
- return $this->_oCmts->serviceGetInfo($iContentId, $bSearchableFieldsOnly);
- }
-
- public function getContentInfoAPI ($iContentId, $bExtendedUnits = false)
- {
- return $this->_oCmts->serviceGetInfoApi($iContentId, $bExtendedUnits);
- }
- public function getContentSearchResultUnit ($iContentId, $sUnitTemplate = '')
- {
- $this->_oCmts->addCssJs();
- return '<ul class="cmts">' . $this->_oCmts->serviceGetSearchResultUnit($iContentId, $sUnitTemplate) . '</ul>';
- }
- public function getAll ($aParams = array())
- {
- return $this->_oCmts->serviceGetAll($aParams);
- }
-
- public function getSearchableFieldsExtended ()
- {
- return $this->_oCmts->serviceGetSearchableFieldsExtended();
- }
- public function getSearchResultExtended ($aParams, $iStart = 0, $iPerPage = 0, $bFilterMode = false)
- {
- return $this->_oCmts->serviceGetSearchResultExtended($aParams, $iStart, $iPerPage, $bFilterMode);
- }
- }
- /** @} */
|