1: <?php
2:
3: /**
4: * This class models a Tld and holds information such as price,
5: * registration length and capabilities.
6: *
7: * @package Transip
8: * @class Tld
9: * @author TransIP (support@transip.nl)
10: */
11: class Transip_Tld
12: {
13: const CAPABILITY_REQUIRESAUTHCODE = 'requiresAuthCode';
14: const CAPABILITY_CANREGISTER = 'canRegister';
15: const CAPABILITY_CANTRANSFERWITHOWNERCHANGE = 'canTransferWithOwnerChange';
16: const CAPABILITY_CANTRANSFERWITHOUTOWNERCHANGE = 'canTransferWithoutOwnerChange';
17: const CAPABILITY_CANSETLOCK = 'canSetLock';
18: const CAPABILITY_CANSETOWNER = 'canSetOwner';
19: const CAPABILITY_CANSETCONTACTS = 'canSetContacts';
20: const CAPABILITY_CANSETNAMESERVERS = 'canSetNameservers';
21:
22: /**
23: * The name of this TLD, including the starting dot. E.g. .nl or .com.
24: *
25: * @var string
26: */
27: public $name;
28:
29: /**
30: * Price of the TLD in Euros
31: *
32: * @var float
33: */
34: public $price;
35:
36: /**
37: * Price for renewing the TLD in Euros
38: *
39: * @var float
40: */
41: public $renewalPrice;
42:
43: /**
44: * A list of the capabilities that this Tld has (the things that can be
45: * done with a domain under this tld).
46: * All capabilities are one of CAPABILITY_* constants.
47: *
48: * @var string[]
49: */
50: public $capabilities;
51:
52: /**
53: * Length in months of each registration or renewal period.
54: *
55: * @var int
56: */
57: public $registrationPeriodLength;
58:
59: /**
60: * Number of days a domain needs to be canceled before the renewal date.
61: * E.g., If the renewal date is 10-Dec-2011 and the cancelTimeFrame is 4 days,
62: * the domain has to be canceled before 6-Dec-2011, otherwise it will be
63: * renewed already.
64: *
65: * @var int
66: */
67: public $cancelTimeFrame;
68: }
69:
70: ?>
71: