for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yajra\DataTables\Html\Options\Languages;
trait Select
{
/**
* Set language select option value.
*
* @param array $value
* @return $this
* @see https://datatables.net/reference/option/language.select
*/
public function languageSelect($value)
$this->attributes['language']['select'] = $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 select cells option value.
* @param string|array $value
* @see https://datatables.net/reference/option/language.select.cells
public function languageSelectCells($value)
$this->attributes['language']['select']['cells'] = $value;
* Set language select columns option value.
* @see https://datatables.net/reference/option/language.select.columns
public function languageSelectColumns($value)
$this->attributes['language']['select']['columns'] = $value;
* Set language select rows option value.
* @see https://datatables.net/reference/option/language.select.rows
public function languageSelectRows($value)
$this->attributes['language']['select']['rows'] = $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: