source: branches/mvc/Base/Types/PointerOneToMany.php

Last change on this file was 47, checked in by chronos, 10 years ago
  • Odstraněno: Zbytečná PHP ukončovací značka "?>" z konce všech souborů.
File size: 773 bytes
Line 
1<?php
2
3include_once(dirname(__FILE__).'/Base.php');
4
5class TypePointerOneToMany extends TypeBase
6{
7 function OnView($Item)
8 {
9 $Type = $this->System->Type->TypeDefinitionList[$Item['Type']];
10 $Output = '<a href="?Action=ShowList&amp;TableId='.$Type['TypeDefinition'].'&amp;ParentTable='.$Item['SourceTable'].'&amp;ParentColumn='.$Item['SourceItemId'].'">Seznam</a>';
11 return($Output);
12 }
13
14 function OnEdit($Item)
15 {
16 $Type = $this->System->Type->TypeDefinitionList[$Item['Type']];
17 $Output = '<a href="?Action=ShowList&amp;TableId='.$Type['TypeDefinition'].'&amp;ParentTable='.$Item['SourceTable'].'&amp;ParentColumn='.$Item['SourceItemId'].'">Seznam</a>';
18 return($Output);
19 }
20
21 function OnLoad($Item)
22 {
23 return($_POST[$Item['Name']]);
24 }
25}
Note: See TracBrowser for help on using the repository browser.