1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/DataMapper/DefaultSettings.php
2019-01-19 21:34:58 +11:00

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
]
]
];
}
}