/dev/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/trunk

« back to all changes in this revision

Viewing changes to classes/common.php

  • Committer: Suren A. Chilingaryan
  • Date: 2008-04-02 10:23:22 UTC
  • Revision ID: csa@dside.dyndns.org-20080402102322-okib92sicg2dx3o3
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
 
 
4
interface DataInterface {
 
5
    public function GetData($from, $to);
 
6
}
 
7
 
 
8
 
 
9
function CopyObjectProperties(&$dst, &$src) {
 
10
    foreach ($src as $key => $value) {
 
11
        $dst->$key = $value;
 
12
    }
 
13
}
 
14
 
 
15
 
 
16
 
 
17
/*
 
18
    $this->gid = $props["db_group"];
 
19
    $this->group_table = "log" . $this->gid;
 
20
 
 
21
        // Handle names
 
22
    $this->mask = $props["db_mask"];
 
23
 
 
24
    
 
25
    $this->interval_initialized = false;
 
26
    if (isset($props['interval_start'])) $this->interval_start = $props['interval_start'];
 
27
    else $this->interval_start = 0;
 
28
    if (isset($props['interval_end'])) $this->interval_end = $props['interval_end'];
 
29
    else $this->interval_end = 0;
 
30
 
 
31
    $this->window_initialized = false;
 
32
    if (isset($props['window_start'])) $this->window_start = $props['window_start'];
 
33
    else $this->window_start = 0;
 
34
    if (isset($props['window_size'])) $this->window_size = $props['window_size'];
 
35
    else $this->window_size = 0;
 
36
 
 
37
 
 
38
    if (!$this->connected) throw new ADEIException(_("The ZEUS database is not specified"));
 
39
 
 
40
 
 
41
 function GetWindowSize() {     
 
42
    if (!$this->window_initialized) $this->SetupWindow();
 
43
    return $this->window_size;
 
44
 }
 
45
 
 
46
*/    
 
47
 
 
48
?>
 
 
b'\\ No newline at end of file'