PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 5.2.8
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v5.2.8
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / app / Models / Model.php

Model.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 5.2.8, at app/Models/Model.php

30 lines 564 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentForm\App\Models;
4
5 use FluentForm\Framework\Database\Orm\Model as BaseModel;
6
7 class Model extends BaseModel
8 {
9 /**
10 * The attributes that aren't mass assignable.
11 *
12 * @var array
13 */
14 protected $guarded = ['id', 'ID'];
15
16 /**
17 * Get the number of models to return per page.
18 *
19 * @return int
20 */
21 public function getPerPage()
22 {
23 $request = wpFluentForm('request');
24
25 return intval(
26 $request->get('per_page', $request->get('perPage', $this->perPage))
27 );
28 }
29 }
30