Last change
on this file was 8, checked in by chronos, 19 months ago |
- Modified: Updated Common package.
- Modified: Form types made as separate FormManager package.
- Fixed: PHP 8.1 support.
|
File size:
672 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | include_once(dirname(__FILE__).'/Base.php');
|
---|
4 |
|
---|
5 | class TypeOneToMany2 extends TypeBase
|
---|
6 | {
|
---|
7 | function OnView(array $Item): ?string
|
---|
8 | {
|
---|
9 | $Output = '<a href="?Action=ShowList&TableId='.$Item['TypeDefinition'].'&ParentTable='.$Item['SourceTable'].'&ParentColumn='.$Item['SourceItemId'].'">Seznam</a>';
|
---|
10 | return $Output;
|
---|
11 | }
|
---|
12 |
|
---|
13 | function OnEdit(array $Item): string
|
---|
14 | {
|
---|
15 | $Output = '<a href="?Action=ShowList&TableId='.$Item['TypeDefinition'].'&ParentTable='.$Item['SourceTable'].'&ParentColumn='.$Item['SourceItemId'].'">Seznam</a>';
|
---|
16 | return $Output;
|
---|
17 | }
|
---|
18 |
|
---|
19 | function OnLoad(array $Item): ?string
|
---|
20 | {
|
---|
21 | return $_POST[$Item['Name']];
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.