Ubiquity
2.5.2
php rapid development framework
Loading...
Searching...
No Matches
ResourceAnnotation.php
Go to the documentation of this file.
1
<?php
2
namespace
Ubiquity\annotations\items\acl
;
3
4
5
use
Ubiquity\annotations\items\BaseAnnotation
;
6
17
class
ResourceAnnotation
extends
BaseAnnotation
{
18
19
public
$name
;
20
24
public
function
initAnnotation
(array $properties) {
25
if
(isset($properties[0])) {
26
$this->name = $properties[0];
27
unset($properties[0]);
28
}
else
if
(isset($properties[
'name'
])) {
29
$this->name = $properties[
'name'
];
30
}
else
{
31
throw
new \Exception(
'Resource annotation must have a name'
);
32
}
33
}
34
}
Ubiquity\annotations\items\BaseAnnotation
Base class for annotations.
Definition
BaseAnnotation.php:13
Ubiquity\annotations\items\acl\ResourceAnnotation
Annotation Resource.
Definition
ResourceAnnotation.php:17
Ubiquity\annotations\items\acl\ResourceAnnotation\initAnnotation
initAnnotation(array $properties)
Initialize the annotation.
Definition
ResourceAnnotation.php:24
Ubiquity\annotations\items\acl\ResourceAnnotation\$name
$name
Definition
ResourceAnnotation.php:19
Ubiquity\annotations\items\acl
Definition
AllowAnnotation.php:2
C:
Users
myadd
Documents
GitHub
ubiquity-doc-api
vendor
phpmv
ubiquity-annotations
src
Ubiquity
annotations
items
acl
ResourceAnnotation.php
Generated on Sun Dec 10 2023 15:04:02 for
Ubiquity
by
doxygen
1.9.8