phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/inc/class.bopricebook.inc.php, 1.3


From: nomail
Subject: [Phpgroupware-cvs] property/inc/class.bopricebook.inc.php, 1.3
Date: Fri, 20 Aug 2004 17:15:21 +0200

Update of /property/inc
Modified Files:
        Branch: 
          class.bopricebook.inc.php

date: 2004/08/20 15:15:21;  author: sigurdne;  state: Exp;  lines: +31 -31

Log Message:
no message
=====================================================================
Index: property/inc/class.bopricebook.inc.php
diff -u property/inc/class.bopricebook.inc.php:1.2 
property/inc/class.bopricebook.inc.php:1.3
--- property/inc/class.bopricebook.inc.php:1.2  Wed Jun  2 18:54:28 2004
+++ property/inc/class.bopricebook.inc.php      Fri Aug 20 15:15:21 2004
@@ -180,12 +180,12 @@
                        return $pricebook;
                }
 
-               function read_agreement()
+               function read_agreement_group()
                {
-                       $agreement = $this->so->read_agreement(array('start' => 
$this->start,'query' => $this->query,'sort' => $this->sort,'order' => 
$this->order,
+                       $agreement_group = 
$this->so->read_agreement_group(array('start' => $this->start,'query' => 
$this->query,'sort' => $this->sort,'order' => $this->order,
                                                                                
        'filter' => $this->filter,'cat_id' => 
$this->cat_id,'allrows'=>$this->allrows));
                        $this->total_records = $this->so->total_records;
-                       return $agreement;
+                       return $agreement_group;
                }
 
                function read_activity_prize($activity_id,$vendor_id)
@@ -197,9 +197,9 @@
                }
 
 
-               function read_activities_pr_aggreement()
+               function read_activities_pr_agreement_group()
                {
-                       $pricebook = 
$this->so->read_activities_pr_aggreement(array('start' => $this->start,'query' 
=> $this->query,'sort' => $this->sort,'order' => $this->order,
+                       $pricebook = 
$this->so->read_activities_pr_agreement_group(array('start' => 
$this->start,'query' => $this->query,'sort' => $this->sort,'order' => 
$this->order,
                                                                                
        'filter' => $this->filter,'cat_id' => 
$this->cat_id,'allrows'=>$this->allrows));
                        $this->total_records = $this->so->total_records;
                        return $pricebook;
@@ -223,9 +223,9 @@
                        return $this->so->read_single_activity($id);
                }
 
-               function read_single_agreement($id='')
+               function read_single_agreement_group($id='')
                {
-                       return $this->so->read_single_agreement($id);
+                       return $this->so->read_single_agreement_group($id);
                }
 
 
@@ -461,7 +461,7 @@
                        return $branch_list;
                }
 
-               function get_agreement_list($format='',$selected='')
+               function get_agreement_group_list($format='',$selected='')
                {
                        switch($format)
                        {
@@ -473,39 +473,39 @@
                                        break;
                        }
 
-                       $agreements= $this->so->get_agreement_list();
+                       $agreement_groups= 
$this->so->get_agreement_group_list();
 
-                       while (is_array($agreements) && list(,$agreement_entry) 
= each($agreements))
+                       while (is_array($agreement_groups) && 
list(,$agreement_group_entry) = each($agreement_groups))
                        {
-                               $sel_agreement_entry = '';
-                               if ($agreement_entry['id']==$selected)
+                               $sel_agreement_group_entry = '';
+                               if ($agreement_group_entry['id']==$selected)
                                {
-                                       $sel_agreement_entry = 'selected';
+                                       $sel_agreement_group_entry = 'selected';
                                }
 
-                               $agreement_list[] = array
+                               $agreement_group_list[] = array
                                (
-                                       'cat_id'        => 
$agreement_entry['id'],
-                                       'name'          => 
$agreement_entry['name'],
-                                       'selected'      => $sel_agreement_entry
+                                       'cat_id'        => 
$agreement_group_entry['id'],
+                                       'name'          => 
$agreement_group_entry['name'],
+                                       'selected'      => 
$sel_agreement_group_entry
                                );
                        }
 
-                       for ($i=0;$i<count($agreement_list);$i++)
+                       for ($i=0;$i<count($agreement_group_list);$i++)
                        {
-                               if ($agreement_list[$i]['selected'] != 
'selected')
+                               if ($agreement_group_list[$i]['selected'] != 
'selected')
                                {
-                                       unset($agreement_list[$i]['selected']);
+                                       
unset($agreement_group_list[$i]['selected']);
                                }
                        }
 
-                       return $agreement_list;
+                       return $agreement_group_list;
                }
 
 
-               function check_activity_num($num='',$agreement_id='')
+               function check_activity_num($num='',$agreement_group_id='')
                {
-                       return 
$this->so->check_activity_num($num,$agreement_id);
+                       return 
$this->so->check_activity_num($num,$agreement_group_id);
                }
 
                function save_activity($values,$action='')
@@ -522,21 +522,21 @@
                        return $receipt;
                }
 
-               function check_agreement_num($num='')
+               function check_agreement_group_num($num='')
                {
-                       return $this->so->check_agreement_num($num);
+                       return $this->so->check_agreement_group_num($num);
                }
 
-               function save_agreement($values,$action='')
+               function save_agreement_group($values,$action='')
                {
                        if ($action=='edit')
                        {
-                               $receipt = $this->so->edit_agreement($values);
+                               $receipt = 
$this->so->edit_agreement_group($values);
                        }
                        else
                        {
-                               
$values['agreement_id']=$this->socommon->next_id('fm_agreement');
-                               $receipt = $this->so->add_agreement($values);
+                               
$values['agreement_group_id']=$this->socommon->next_id('fm_agreement_group');
+                               $receipt = 
$this->so->add_agreement_group($values);
                        }
                        return $receipt;
                }
@@ -556,9 +556,9 @@
                        
$this->so->delete_prize_index($activity_id,$vendor_id,$index_count);
                }
 
-               function delete_agreement($agreement_id)
+               function delete_agreement_group($agreement_group_id)
                {
-                       $this->so->delete_agreement($agreement_id);
+                       $this->so->delete_agreement_group($agreement_group_id);
                }
        }
 ?>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]