Source of file Limit.php
Size: 0,526 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/Grid/Helper/Limit.php
1234567891011121314151617181920212223242526272829303132 | <?php /** * Bluz Framework Component * * @copyright Bluz PHP Team * @link https://github.com/bluzphp/framework */ declare(strict_types=1); namespace Bluz\Grid\Helper; use Bluz\Grid; return /** * @return string */ function ($limit = 25) { /** * @var Grid\Grid $this */ $rewrite = []; $rewrite['limit'] = (int)$limit; if ($limit != $this->getLimit()) { $rewrite['page'] = 1; } return $this->getUrl($rewrite); }; |