@@ 44-70 (lines=27) @@ | ||
41 | * @copyright EFQ Consultancy (c) 2008 |
|
42 | * @version 1.1.0 |
|
43 | */ |
|
44 | class efqDataType extends XoopsObject |
|
45 | { |
|
46 | ||
47 | /** |
|
48 | * efqSubscriptionOffer::efqSubscriptionOffer() |
|
49 | * |
|
50 | * @param bool $offer |
|
51 | * @internal param bool $itemtype |
|
52 | */ |
|
53 | public function __construct($offer = false) |
|
54 | { |
|
55 | global $moddir; |
|
56 | $this->db = XoopsDatabaseFactory::getDatabaseConnection(); |
|
57 | $this->initVar('dtypeid', XOBJ_DTYPE_INT, 0, false); |
|
58 | $this->initVar('title', XOBJ_DTYPE_TXTBOX, null, true, 255); |
|
59 | $this->initVar('section', XOBJ_DTYPE_INT, 0, false); |
|
60 | $this->initVar('fieldtypeid', XOBJ_DTYPE_INT, 0, false); |
|
61 | $this->initVar('uid', XOBJ_DTYPE_INT, 0, true, 5); |
|
62 | $this->initVar('defaultyn', XOBJ_DTYPE_INT, 0, true, 2); |
|
63 | $this->initVar('created', XOBJ_DTYPE_INT, 0, true, 10); |
|
64 | $this->initVar('seq', XOBJ_DTYPE_INT, 0, true, 5); |
|
65 | $this->initVar('options', XOBJ_DTYPE_TXTBOX, null, false, 10); |
|
66 | $this->initVar('activeyn', XOBJ_DTYPE_INT, 0, true, 2); |
|
67 | $this->initVar('custom', XOBJ_DTYPE_TXTBOX, null, false, 10); |
|
68 | $this->initVar('icons', XOBJ_DTYPE_TXTBOX, null, false, 50); |
|
69 | } |
|
70 | } |
|
71 | ||
72 | /** |
|
73 | * Class efqFieldTypeHandler |
@@ 44-70 (lines=27) @@ | ||
41 | * @copyright EFQ Consultancy (c) 2008 |
|
42 | * @version 1.1.0 |
|
43 | */ |
|
44 | class efqSubscriptionOffer extends XoopsObject |
|
45 | { |
|
46 | ||
47 | /** |
|
48 | * efqSubscriptionOffer::efqSubscriptionOffer() |
|
49 | * |
|
50 | * @param bool $offer |
|
51 | * @internal param bool $itemtype |
|
52 | */ |
|
53 | public function __construct($offer = false) |
|
54 | { |
|
55 | global $moddir; |
|
56 | $this->db = XoopsDatabaseFactory::getDatabaseConnection(); |
|
57 | $this->initVar('offerid', XOBJ_DTYPE_INT, 0, false); |
|
58 | $this->initVar('dirid', XOBJ_DTYPE_INT, 0, false); |
|
59 | $this->initVar('typeid', XOBJ_DTYPE_INT, 0, false); |
|
60 | $this->initVar('title', XOBJ_DTYPE_TXTBOX, null, true, 255); |
|
61 | $this->initVar('duration', XOBJ_DTYPE_INT, 0, true, 5); |
|
62 | $this->initVar('count', XOBJ_DTYPE_INT, 0, true, 5); |
|
63 | $this->initVar('price', XOBJ_DTYPE_CURRENCY, 0.00, true); |
|
64 | $this->initVar('activeyn', XOBJ_DTYPE_INT, 0, true, 2); |
|
65 | $this->initVar('currency', XOBJ_DTYPE_TXTBOX, null, false, 10); |
|
66 | $this->initVar('descr', XOBJ_DTYPE_OTHER, 0); |
|
67 | $this->initVar('typename', XOBJ_DTYPE_TXTBOX, null, false, 50); |
|
68 | $this->initVar('level', XOBJ_DTYPE_INT, null, false, 10); |
|
69 | } |
|
70 | } |
|
71 | ||
72 | /** |
|
73 | * Class efqFieldTypeHandler |