ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilTermsCondition.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
13 {
14  var $tpl = null;
15  var $user_obj = null;
16 
18  {
19  global $tpl;
20 
21  define('DEFAULT_LANG','de');
22 
23  $this->user_obj = $user_obj;
24  $this->tpl = $tpl;
25  }
26 
27  function show()
28  {
29  $lang = $this->user_obj->getLanguage();
30 
31  if(file_exists($this->tpl->getTemplatePath('tpl.pay_terms_conditions_'.$lang.'.html',false)))
32  {
33  $this->tpl->addBlockFile("CONTENT", "content",'tpl.pay_terms_conditions_'.$lang.'.html','Services/Payment');
34  $this->tpl->touchBlock('tc');
35  }
36  else
37  {
38  $this->tpl->addBlockFile("CONTENT", "content",'tpl.pay_terms_conditions_'.DEFAULT_LANG.'.html','Services/Payment');
39  $this->tpl->touchBlock('tc');
40  }
41  }
42 }
43 ?>