Code formatting
This commit is contained in:
@ -11,9 +11,12 @@
|
||||
|
||||
class PagerAction extends Action
|
||||
{
|
||||
public $page = 1;
|
||||
public $page = 1;
|
||||
|
||||
public $last_page = 1;
|
||||
|
||||
protected $offset = 0;
|
||||
|
||||
protected $limit;
|
||||
|
||||
public function __construct($limit = 20)
|
||||
@ -45,10 +48,10 @@ class PagerAction extends Action
|
||||
{
|
||||
return (int) $this->limit;
|
||||
}
|
||||
|
||||
|
||||
protected function getTemplate()
|
||||
{
|
||||
$template = ($this->template) ? $this->template : substr(get_class($this), 0, -6/*strlen('Action')*/);
|
||||
$template = ($this->template) ? $this->template : substr(get_class($this), 0, -6 /*strlen('Action')*/);
|
||||
return '/actions/' . $template;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user