public function __construct() { $this->session = get_http_var('session'); $this->bill = str_replace('_', ' ', get_http_var('bill')); $this->list = new \StandingCommittee($this->session, $this->bill); parent::__construct(); }
protected function display_front() { if (get_http_var('more')) { return parent::display_front(); } else { return $this->display_front_ni(); } }
protected function display_front() { global $DATA, $this_page; if (get_http_var('type') == 'wrans') { return parent::display_front(); } $data = array(); $args = array('months' => 1); $WRANSLIST = new \WRANSLIST(); $wrans = array(); $wrans['data'] = $WRANSLIST->display('recent_wrans', array('days' => 7, 'num' => 5), 'none'); $wrans['calendar'] = $WRANSLIST->display('calendar', $args, 'none'); $WMSLIST = new \WMSLIST(); $wms = array(); $wms['data'] = $WMSLIST->display('recent_wms', array('days' => 7, 'num' => 20), 'none'); $wms['calendar'] = $WMSLIST->display('calendar', $args, 'none'); $wms['rssurl'] = $DATA->page_metadata('wmsfront', 'rss'); $data['wrans'] = $wrans; $data['wms'] = $wms; $data['template'] = 'section/wrans_index'; return $data; }