mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
77969243fa
This reverts commit b635f3b32e
.
40 lines
710 B
PHP
40 lines
710 B
PHP
<?php
|
|
|
|
namespace App\DataMapper;
|
|
|
|
use App\Models\Client;
|
|
|
|
class DefaultSettings
|
|
{
|
|
|
|
public static $per_page = 20;
|
|
|
|
public static function userSettings() : \stdClass
|
|
{
|
|
return (object)[
|
|
class_basename(Client::class) => self::clientSettings(),
|
|
];
|
|
}
|
|
|
|
private static function clientSettings() : \stdClass
|
|
{
|
|
|
|
return (object)[
|
|
'datatable' => (object) [
|
|
'per_page' => self::$per_page,
|
|
'column_visibility' => (object)[
|
|
'__checkbox' => true,
|
|
'name' => true,
|
|
'contact' => true,
|
|
'email' => true,
|
|
'client_created_at' => true,
|
|
'last_login' => true,
|
|
'balance' => true,
|
|
'__component:client-actions' => true
|
|
]
|
|
]
|
|
];
|
|
|
|
}
|
|
|
|
} |