1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
// ------------------------------------------------------------------------- |
4
|
|
|
// OVIDENTIA http://www.ovidentia.org |
5
|
|
|
// Ovidentia is free software; you can redistribute it and/or modify |
6
|
|
|
// it under the terms of the GNU General Public License as published by |
7
|
|
|
// the Free Software Foundation; either version 2, or (at your option) |
8
|
|
|
// any later version. |
9
|
|
|
// |
10
|
|
|
// This program is distributed in the hope that it will be useful, but |
11
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of |
12
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
13
|
|
|
// See the GNU General Public License for more details. |
14
|
|
|
// |
15
|
|
|
// You should have received a copy of the GNU General Public License |
16
|
|
|
// along with this program; if not, write to the Free Software |
17
|
|
|
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
18
|
|
|
// USA. |
19
|
|
|
// ------------------------------------------------------------------------- |
20
|
|
|
/** |
21
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) |
22
|
|
|
* @copyright Copyright (c) 2022 by SI4YOU ({@link https://www.siforyou.com}) |
23
|
|
|
*/ |
24
|
|
|
namespace Capwelton\LibApp\Set; |
25
|
|
|
|
26
|
|
|
use Capwelton\LibApp\Func_App; |
27
|
|
|
use Capwelton\LibOrm\MySql\ORMMySqlIterator; |
|
|
|
|
28
|
|
|
|
29
|
|
|
use function Capwelton\LibOrm\ORM_StringField; |
|
|
|
|
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @property ORMStringField $object |
33
|
|
|
* @property ORMStringField $action |
34
|
|
|
* @property ORMStringField $criterion |
35
|
|
|
* @property AppRoleSet $role |
36
|
|
|
* @method AppRoleSet role() |
37
|
|
|
* @method AppRoleAccess get(mixed $criteria) |
38
|
|
|
* @method AppRoleAccess request(mixed $criteria) |
39
|
|
|
* @method AppRoleAccess[]|ORMMySqlIterator select(ORMCriteria $criteria = null) |
40
|
|
|
* @method AppRoleAccess newRecord() |
41
|
|
|
*/ |
42
|
|
|
class AppRoleAccessSet extends AppRecordSet |
43
|
|
|
{ |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @param Func_App $App |
47
|
|
|
*/ |
48
|
|
|
public function __construct(Func_App $App) |
49
|
|
|
{ |
50
|
|
|
parent::__construct($App); |
51
|
|
|
|
52
|
|
|
$App = $this->App(); |
53
|
|
|
|
54
|
|
|
$this->setPrimaryKey('id'); |
55
|
|
|
|
56
|
|
|
$this->addFields( |
57
|
|
|
ORM_StringField('object')->setDescription('Object'), |
58
|
|
|
ORM_StringField('action')->setDescription('Action'), |
59
|
|
|
ORM_StringField('criterion')->setDescription('Criterion') |
60
|
|
|
); |
61
|
|
|
|
62
|
|
|
$this->hasOne('role', $App->RoleSetClassName()); |
|
|
|
|
63
|
|
|
} |
64
|
|
|
} |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths