mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
17 lines
316 B
PHP
17 lines
316 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Utils\Traits;
|
||
|
|
||
|
trait UserSettings
|
||
|
{
|
||
|
|
||
|
public function getEntity(string $entity) : \stdClass
|
||
|
{
|
||
|
return $this->settings()->{$entity};
|
||
|
}
|
||
|
|
||
|
public function getColumnVisibility(string $entity) : \stdClass
|
||
|
{
|
||
|
return $this->settings()->{class_basename($entity)}->datatable->column_visibility;
|
||
|
}
|
||
|
}
|