Current Path : /storage/v11800/weinfluence-new/public_html/wp-content/plugins/fluentform/app/Models/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/weinfluence-new/public_html/wp-content/plugins/fluentform/app/Models/Model.php |
<?php
namespace FluentForm\App\Models;
use FluentForm\Framework\Database\Orm\Model as BaseModel;
class Model extends BaseModel
{
/**
* The attributes that aren't mass assignable.
*
* @var array
*/
protected $guarded = ['id', 'ID'];
/**
* Get the number of models to return per page.
*
* @return int
*/
public function getPerPage()
{
$request = wpFluentForm('request');
return intval(
$request->get('per_page', $request->get('perPage', $this->perPage))
);
}
}