21 lines
390 B
PHP
Executable File
21 lines
390 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Libraries;
|
|
|
|
class ListHelper
|
|
{
|
|
/**
|
|
* Validate if pagination variables are correct
|
|
* @param integer $start
|
|
* @param integer $limit
|
|
* @return boolean
|
|
*/
|
|
public static function validatePagination($page_size = 0, $page = 0)
|
|
{
|
|
if ($page_size > 0 && $page > 0) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|