root/trunk/setups/katrin/classes/kdbfileidentifier.php

Revision trunk,171, 0.9 kB (checked in by Suren A. Chilingaryan <csa@dside.dyndns.org>, 1 year ago)

KATRIN code by Sebastian and few fixes to integrate it

Line 
1 <?php
2 // $Id: kdbrunidentifier.php 973 2009-08-19 09:40:28Z s_voec01 $
3 // Author: Sebastian Voecking <sebastian.voecking@uni-muenster.de>
4
5 ADEI::RequireClass("KDBRunIdentifier", true);
6
7 class KDBFileIdentifier
8 {
9     public $self = 0;
10     
11     function __construct($arg1, $arg2 = null)
12     {
13         switch (func_num_args()) {
14         case 1:
15             $r = new_KDBFileIdentifier($arg1);
16             break;
17         default:
18             $r = new_KDBFileIdentifier($arg1->GetName() . "/" . $arg2);
19         }
20         $this->self = $r;
21     }
22     
23     function GetRun()
24     {
25         $run = KDBFileIdentifier_GetRun($this->self);
26         return new KDBRunIdentifier($run);
27     }
28     
29     function GetFileName()
30     {
31         return KDBFileIdentifier_GetFileName($this->self);
32     }
33     
34     function AsString()
35     {
36         return KDBFileIdentifier_AsString($this->self);
37     }
38 }
39
40 ?>
41
Note: See TracBrowser for help on using the browser.