Example #1
0
 public function links()
 {
     if ($this->total_pages < 2) {
         return '';
     }
     $view = 'Pagination.twig';
     $this->app->view()->appendData(get_object_vars($this));
     $output = $this->app->view()->render($view);
     return $output;
 }
Example #2
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     //inherit cid from datafilter
     if (isset($this->source) and is_object($this->source)) {
         $this->cid = $this->source->cid;
     } else {
         $this->cid = parent::getIdentifier();
     }
     $this->app = \Rapyd\Application::getInstance();
 }
Example #3
0
 /**
  * Slim's request object
  *
  * @return \Slim\Request
  */
 protected function request()
 {
     return $this->app->request();
 }