ILIAS
release_4-4 Revision
◀ ilDoc Overview
class.ilCallback.php
Go to the documentation of this file.
1
<?php
2
/*
3
+-----------------------------------------------------------------------------+
4
| ILIAS open source |
5
+-----------------------------------------------------------------------------+
6
| Copyright (c) 1998-2009 ILIAS open source, University of Cologne |
7
| |
8
| This program is free software; you can redistribute it and/or |
9
| modify it under the terms of the GNU General Public License |
10
| as published by the Free Software Foundation; either version 2 |
11
| of the License, or (at your option) any later version. |
12
| |
13
| This program is distributed in the hope that it will be useful, |
14
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
15
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16
| GNU General Public License for more details. |
17
| |
18
| You should have received a copy of the GNU General Public License |
19
| along with this program; if not, write to the Free Software |
20
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21
+-----------------------------------------------------------------------------+
22
*/
23
35
chdir(dirname(__FILE__));
36
chdir(
'../../..'
);
37
require_once
'Services/Authentication/classes/class.ilAuthFactory.php'
;
38
ilAuthFactory::setContext
(
ilAuthFactory::CONTEXT_CRON
);
39
require_once
'Services/Payment/classes/class.ilPurchase.php'
;
40
$usr_id
=
$_REQUEST
[
'ilUser'
];
41
$pay_method
=
$_REQUEST
[
'pay_method'
];
42
try
43
{
44
$buy =
new
ilPurchase
(
$usr_id
,
$pay_method
);
45
$buy->purchase(
$_REQUEST
[
'tid'
]);
46
}
47
catch
(
Exception
$e)
48
{
49
die($e->getMessage());
50
}
51
?>
$pay_method
$pay_method
Definition:
class.ilCallback.php:41
ilAuthFactory\setContext
static setContext($a_context)
set context
Definition:
class.ilAuthFactory.php:106
ilAuthFactory\CONTEXT_CRON
const CONTEXT_CRON
Definition:
class.ilAuthFactory.php:42
ilPurchase
Class ilPurchase.
Definition:
class.ilPurchase.php:20
Exception
$_REQUEST
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
Definition:
index.php:7
$usr_id
$usr_id
Definition:
class.ilCallback.php:40
Services
Payment
erp
class.ilCallback.php
Generated on Mon Dec 21 2020 19:01:20 for ILIAS by
1.8.13 (using
Doxyfile
)