BxDolRssPageBlock.php 628 B

1234567891011121314151617181920212223242526272829303132
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaCore UNA Core
  7. * @{
  8. */
  9. class BxDolRssPageBlock extends BxTemplRss
  10. {
  11. public function __construct($aObject)
  12. {
  13. parent::__construct($aObject);
  14. }
  15. public function getUrl($mixedId) {
  16. $oPageQuery = new BxDolPageQuery(array());
  17. $sContent = $oPageQuery->getPageBlockContent($mixedId);
  18. if(!$sContent)
  19. return false;
  20. list($sUrl) = explode('#', $sContent);
  21. if(!$sUrl)
  22. return false;
  23. return $sUrl;
  24. }
  25. }
  26. /** @} */