Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**
3
 * @package PayPal
4
 */
5
 
6
/**
7
 * Include SDK base class.
8
 */
9
require_once 'PayPal.php';
10
 
11
/**
12
 * The base class for all Profile handlers
13
 *
14
 * @package PayPal
15
 * @abstract
16
 */
17
class ProfileHandler
18
{
19
    /**
20
     * @access private
21
     */
22
    var $_params;
23
 
24
    function ProfileHandler($parameters)
25
    {
26
        $this->_params = $parameters;
27
    }
28
 
29
    function listProfiles()
30
    {
31
        return PayPal::raiseError("Cannot call this method from the base ProfileHandler class");
32
    }
33
 
34
    function loadProfile($id)
35
    {
36
        return PayPal::raiseError("Cannot call this method from the base ProfileHandler class");
37
    }
38
 
39
    function saveProfile($data)
40
    {
41
        return PayPal::raiseError("Cannot call this method from the base ProfileHandler class");
42
    }
43
 
44
    function getParamInfo()
45
    {
46
        return null;
47
    }
48
 
49
    function deleteProfile($id)
50
    {
51
        return PayPal::raiseError("Cannot call this method from the base ProfileHandler class");
52
    }
53
 
54
    function generateID()
55
    {
56
        return md5(uniqid(mt_rand(), true));
57
    }
58
 
59
    function validateParams()
60
    {
61
        return true;
62
    }
63
 
64
    function &getInstance($params)
65
    {
66
        return PayPal::raiseError("Cannot call this method from the base ProfileHandler class");
67
    }
68
 
69
    function initialize()
70
    {
71
        return true;
72
    }
73
 
74
}