Ejemplo n.º 1
0
 /**
  * Constructs a new content mapper for a forum post
  * @return null
  */
 public function __construct()
 {
     parent::__construct(ForumProfileModel::NAME);
     $nodes = $this->getNodesForWidget('joppa', 'forumProfile');
     foreach ($nodes as $node) {
         $this->route = $node->getRoute();
         break;
     }
 }
Ejemplo n.º 2
0
 /**
  * Constructs a new content mapper for the podcast model
  * @return null
  */
 public function __construct()
 {
     parent::__construct(PodcastModel::NAME);
     $this->url = $this->getBaseUrl();
     $node = $this->getNodesForWidget('joppa', 'podcast', 1);
     if ($node) {
         $node = array_pop($node);
         $this->url .= '/' . $node->getRoute();
     }
 }
Ejemplo n.º 3
0
 /**
  * Constructs a new content mapper for a forum post
  * @return null
  */
 public function __construct()
 {
     parent::__construct(ForumPostModel::NAME);
     $nodes = $this->getNodesForWidget('joppa', 'forum');
     foreach ($nodes as $node) {
         $this->postsPerPage = $node->widgetProperties->getWidgetProperty(ForumWidget::PROPERTY_TOPICS_PER_PAGE, ForumWidget::DEFAULT_TOPICS_PER_PAGE);
         $this->route = $node->getRoute();
         break;
     }
 }