public function __construct() { parent::__construct(); $this->add_js('https://maps.googleapis.com/maps/api/js?sensor=false'); $this->add_waterfall_js(); }
public function __construct() { parent::__construct(); $this->page = $this->get_page_number(); $this->offset = ($this->page - 1) * self::$POSTS_PER_PAGE; }
public function __construct() { parent::__construct(); $this->page = $this->get_page_number(); $this->total_pages = ceil($this->get_total_post_count() / self::$POSTS_PER_PAGE); $this->offset = ($this->page - 1) * self::$POSTS_PER_PAGE; }
public function __construct() { parent::__construct(); $this->page = $this->get_page_number(); $this->page_count = ceil($this->get_item_count() / $this->get_item_count_per_page()); $this->offset = ($this->page - 1) * $this->get_item_count_per_page(); $items = $this->get_items(); if(count($items) < 1) $this->eject(); }
public function __construct() { parent::__construct(); $id = URLDecode::getPiece(2); if(!$id || !is_numeric($id)) $this->eject(); $post = $this->activityRepository->getActivityById($id); if(!$post) $this->eject(); if(URLDecode::getPiece(1) != $post['type']) $this->eject(); $this->post = $post; }
public function __construct() { parent::__construct(); $log_path = URLDecode::getPiece(2); $this->log = LogCollector::getByAlias($log_path); if(!$this->log) $this->eject(); $this->parent_navigation_item = 'journal'; $this->handle_comment_submit( self::$WATERFALL_SITE_ID, $this->log->alias, Loader::getRootUrl('waterfalls') . self::$JOURNAL_DIRECTORY . '/' . $this->log->alias . '/', $this->log->title); $this->add_waterfall_js(); }
public function __construct() { parent::__construct(); $path_watercourse = URLDecode::getPiece(1); $path_fall = URLDecode::getPiece(2); $this->waterfall = WaterfallCollector::getByAlias($path_watercourse, $path_fall); if (!$this->waterfall) { $this->eject(); } $this->handle_comment_submit( self::$WATERFALL_SITE_ID, "{$this->waterfall->watercourse_alias}/{$this->waterfall->alias}", Loader::getRootUrl('waterfalls') . "{$this->waterfall->watercourse_alias}/{$this->waterfall->alias}/", $this->waterfall->name); $this->add_waterfall_js(); }
public function __construct() { parent::__construct(); global $container; $repository = new Jacobemerick\Web\Domain\Blog\Post\MysqlPostRepository($container['db_connection_locator']); $this->post = $repository->findPostByPath(URLDecode::getPiece(2)); if($this->post == null) $this->eject(); $this->handle_comment_submit( self::$BLOG_SITE_ID, $this->post['path'], Loader::getRootUrl('blog') . $this->post['category'] . '/' . $this->post['path'] . '/', $this->post['title']); global $container; $repository = new Jacobemerick\Web\Domain\Blog\Tag\MysqlTagRepository($container['db_connection_locator']); $this->tags = $repository->getTagsForPost($this->post['id']); }