for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yajra\DataTables\Html\Options\Languages;
trait Paginate
{
/**
* Set language aria paginate option value.
*
* @param array $value
* @return $this
* @see https://datatables.net/reference/option/language.paginate
*/
public function languagePaginate(array $value)
$this->attributes['language']['paginate'] = $value;
attributes
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
class MyClass { } $x = new MyClass(); $x->foo = true;
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:
class MyClass { public $foo; } $x = new MyClass(); $x->foo = true;
return $this;
}
* Set language aria paginate first option value.
* @param string $value
* @see https://datatables.net/reference/option/language.paginate.first
public function languagePaginateFirst($value)
$this->attributes['language']['paginate']['first'] = $value;
* Set language aria paginate last option value.
* @see https://datatables.net/reference/option/language.paginate.last
public function languagePaginateLast($value)
$this->attributes['language']['paginate']['last'] = $value;
* Set language aria paginate next option value.
* @see https://datatables.net/reference/option/language.paginate.next
public function languagePaginateNext($value)
$this->attributes['language']['paginate']['next'] = $value;
* Set language aria paginate previous option value.
* @see https://datatables.net/reference/option/language.paginate.previous
public function languagePaginatePrevious($value)
$this->attributes['language']['paginate']['previous'] = $value;
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: