|
|
@@ -144,10 +144,42 @@ class Schema_TestPermsStorageAcl extends Core_AclBase {
|
|
|
|
|
|
public function getInstanceList() {
|
|
|
return [
|
|
|
- 'TestPermsOczekujący',
|
|
|
- 'TestPermsAktywny',
|
|
|
- 'TestPermsUsunięty',
|
|
|
+ 'TestPermsDoUzgodnienia',
|
|
|
+ 'TestPermsUzgodniony',
|
|
|
+ 'TestPermsOdrzucony',
|
|
|
+ 'TestPermsAktywny', // test `matching`
|
|
|
];
|
|
|
}
|
|
|
|
|
|
+ public function getInstanceSchema($instance) {
|
|
|
+ switch ($instance) {
|
|
|
+ case 'TestPermsDoUzgodnienia': return [
|
|
|
+ '@extension' => [
|
|
|
+ '@base' => 'TEST_PERMS',
|
|
|
+ 'KorespDoUzg' => [ '@ref' => 'default_db/IN7_DZIENNIK_KORESP/KorespDoUzg', '@minOccurs' => 1 ],
|
|
|
+ ]
|
|
|
+ ];
|
|
|
+ case 'TestPermsUzgodniony': return [
|
|
|
+ '@extension' => [
|
|
|
+ '@base' => 'TestPermsDoUzgodnienia',
|
|
|
+ 'KorespDoUzg' => [ '@ref' => 'default_db/IN7_DZIENNIK_KORESP/KorespDoUzg', '@minOccurs' => 0 ],
|
|
|
+ 'KorespUzg' => [ '@ref' => 'default_db/IN7_DZIENNIK_KORESP/KorespUzg', '@minOccurs' => 1 ],
|
|
|
+ ]
|
|
|
+ ];
|
|
|
+ case 'TestPermsOdrzucony': return [
|
|
|
+ '@extension' => [
|
|
|
+ '@base' => 'TestPermsDoUzgodnienia',
|
|
|
+ 'KorespDoUzg' => [ '@ref' => 'default_db/IN7_DZIENNIK_KORESP/KorespDoUzg', '@minOccurs' => 0 ],
|
|
|
+ 'KorespOdrzucony' => [ '@ref' => 'default_db/IN7_DZIENNIK_KORESP/KorespOdrzucony', '@minOccurs' => 1 ],
|
|
|
+ ]
|
|
|
+ ];
|
|
|
+ case 'TestPermsAktywny': return [
|
|
|
+ '@restriction' => [
|
|
|
+ '@base' => 'TEST_PERMS',
|
|
|
+ 'A_STATUS' => [ '@fixed' => "NORMAL" ],
|
|
|
+ ]
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|