Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @param Norm\Cursor $entries Entries that we want to page
  */
 public function __construct(Cursor $entries)
 {
     $this->entries = $entries;
     $this->app = App::getInstance();
     $configCollection = $this->app->config('norm.collections');
     if (isset($configCollection['default'])) {
         if (isset($configCollection['default']['limit'])) {
             $this->limit = $configCollection['default']['limit'];
         }
     }
     $this->baseUrl = URL::current();
 }