ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilObjPaymentSettings.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
14 require_once "./classes/class.ilObject.php";
15 
17 {
18  public $payment_vendors_obj = null;
19 
26  public function ilObjPaymentSettings($a_id = 0,$a_call_by_reference = true)
27  {
28  #define("ILIAS_MODULE","payment");
29  #define("KEEP_IMAGE_PATH",1);
30 
31  $this->type = "pays";
32  $this->ilObject($a_id,$a_call_by_reference);
33 
34  $this->lng->loadLanguageModule('crs');
35  $this->lng->loadLanguageModule('payment');
36  }
37 
44  public function update()
45  {
46  if (!parent::update())
47  {
48  return false;
49  }
50 
51  // put here object specific stuff
52 
53  return true;
54  }
55 
56  public function initPaymentVendorsObject()
57  {
58  if(!is_object($this->payment_vendors_obj))
59  {
60  include_once "./Services/Payment/classes/class.ilPaymentVendors.php";
61 
62  $this->payment_vendors_obj = new ilPaymentVendors();
63  }
64  return true;
65  }
66 } // END class.ilObjPaymentSettings
67 ?>