Skip to content

Commit bb8bcb3

Browse files
committed
1.0.0 rc1
1 parent b112b28 commit bb8bcb3

11 files changed

+87
-144
lines changed

_build/build.transport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function getSnippetContent($filename = '') {
2424
define('PKG_NAME', 'Commerce_ProjectName');
2525
define('PKG_NAMESPACE', 'commerce_digitalproduct');
2626
define('PKG_VERSION', '1.0.0');
27-
define('PKG_RELEASE', 'dev');
27+
define('PKG_RELEASE', 'rc1');
2828

2929
/* load modx */
3030
require_once dirname(dirname(__FILE__)) . '/config.core.php';
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
<?php
2-
/**
3-
* Digitalproduct for Commerce.
4-
*
5-
* Copyright 2018 by Tony Klapatch <[email protected]>
6-
*
7-
* This file is meant to be used with Commerce by modmore. A valid Commerce license is required.
8-
*
9-
* @package commerce_digitalproduct
10-
* @license See core/components/commerce_digitalproduct/docs/license.txt
11-
*/
122
require_once (dirname(__DIR__) . '/digitalproduct.class.php');
133
class Digitalproduct_mysql extends Digitalproduct {}

core/components/commerce_digitalproduct/model/commerce_digitalproduct/mysql/digitalproduct.map.inc.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
<?php
2-
/**
3-
* Digitalproduct for Commerce.
4-
*
5-
* Copyright 2018 by Tony Klapatch <[email protected]>
6-
*
7-
* This file is meant to be used with Commerce by modmore. A valid Commerce license is required.
8-
*
9-
* @package commerce_digitalproduct
10-
* @license See core/components/commerce_digitalproduct/docs/license.txt
11-
*/
12-
132
$xpdo_meta_map['Digitalproduct']= array (
143
'package' => 'commerce_digitalproduct',
154
'version' => '1.1',
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
<?php
2-
/**
3-
* Digitalproduct for Commerce.
4-
*
5-
* Copyright 2018 by Tony Klapatch <[email protected]>
6-
*
7-
* This file is meant to be used with Commerce by modmore. A valid Commerce license is required.
8-
*
9-
* @package commerce_digitalproduct
10-
* @license See core/components/commerce_digitalproduct/docs/license.txt
11-
*/
122
require_once (dirname(__DIR__) . '/digitalproductfile.class.php');
133
class DigitalproductFile_mysql extends DigitalproductFile {}

core/components/commerce_digitalproduct/model/commerce_digitalproduct/mysql/digitalproductfile.map.inc.php

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
<?php
2-
/**
3-
* Digitalproduct for Commerce.
4-
*
5-
* Copyright 2018 by Tony Klapatch <[email protected]>
6-
*
7-
* This file is meant to be used with Commerce by modmore. A valid Commerce license is required.
8-
*
9-
* @package commerce_digitalproduct
10-
* @license See core/components/commerce_digitalproduct/docs/license.txt
11-
*/
12-
132
$xpdo_meta_map['DigitalproductFile']= array (
143
'package' => 'commerce_digitalproduct',
154
'version' => '1.1',
@@ -23,9 +12,11 @@
2312
array (
2413
'digitalproduct_id' => NULL,
2514
'secret' => '',
26-
'resource' => NULL,
15+
'name' => '',
16+
'resource' => 0,
2717
'file' => NULL,
2818
'download_count' => 0,
19+
'download_limit' => 0,
2920
'download_expiry' => 0,
3021
),
3122
'fieldMeta' =>
@@ -46,11 +37,21 @@
4637
'null' => false,
4738
'default' => '',
4839
),
49-
'resource' =>
40+
'name' =>
5041
array (
51-
'dbtype' => 'text',
42+
'dbtype' => 'varchar',
43+
'precision' => '190',
5244
'phptype' => 'string',
53-
'null' => true,
45+
'null' => false,
46+
'default' => '',
47+
),
48+
'resource' =>
49+
array (
50+
'dbtype' => 'int',
51+
'attributes' => 'unsigned',
52+
'phptype' => 'int',
53+
'null' => false,
54+
'default' => 0,
5455
),
5556
'file' =>
5657
array (
@@ -67,6 +68,15 @@
6768
'null' => false,
6869
'default' => 0,
6970
),
71+
'download_limit' =>
72+
array (
73+
'dbtype' => 'int',
74+
'attributes' => 'unsigned',
75+
'precision' => '10',
76+
'phptype' => 'int',
77+
'null' => false,
78+
'default' => 0,
79+
),
7080
'download_expiry' =>
7181
array (
7282
'dbtype' => 'int',
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
<?php
2-
/**
3-
* Digitalproduct for Commerce.
4-
*
5-
* Copyright 2018 by Tony Klapatch <[email protected]>
6-
*
7-
* This file is meant to be used with Commerce by modmore. A valid Commerce license is required.
8-
*
9-
* @package commerce_digitalproduct
10-
* @license See core/components/commerce_digitalproduct/docs/license.txt
11-
*/
122
require_once (dirname(__DIR__) . '/digitalproductordershipment.class.php');
133
class DigitalproductOrderShipment_mysql extends DigitalproductOrderShipment {}

core/components/commerce_digitalproduct/model/commerce_digitalproduct/mysql/digitalproductordershipment.map.inc.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
<?php
2-
/**
3-
* Digitalproduct for Commerce.
4-
*
5-
* Copyright 2018 by Tony Klapatch <[email protected]>
6-
*
7-
* This file is meant to be used with Commerce by modmore. A valid Commerce license is required.
8-
*
9-
* @package commerce_digitalproduct
10-
* @license See core/components/commerce_digitalproduct/docs/license.txt
11-
*/
12-
132
$xpdo_meta_map['DigitalproductOrderShipment']= array (
143
'package' => 'commerce_digitalproduct',
154
'version' => '1.1',
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
<?php
2-
/**
3-
* Digitalproduct for Commerce.
4-
*
5-
* Copyright 2018 by Tony Klapatch <[email protected]>
6-
*
7-
* This file is meant to be used with Commerce by modmore. A valid Commerce license is required.
8-
*
9-
* @package commerce_digitalproduct
10-
* @license See core/components/commerce_digitalproduct/docs/license.txt
11-
*/
122
require_once (dirname(__DIR__) . '/digitalproductproduct.class.php');
133
class DigitalproductProduct_mysql extends DigitalproductProduct {}

core/components/commerce_digitalproduct/model/commerce_digitalproduct/mysql/digitalproductproduct.map.inc.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
<?php
2-
/**
3-
* Digitalproduct for Commerce.
4-
*
5-
* Copyright 2018 by Tony Klapatch <[email protected]>
6-
*
7-
* This file is meant to be used with Commerce by modmore. A valid Commerce license is required.
8-
*
9-
* @package commerce_digitalproduct
10-
* @license See core/components/commerce_digitalproduct/docs/license.txt
11-
*/
12-
132
$xpdo_meta_map['DigitalproductProduct']= array (
143
'package' => 'commerce_digitalproduct',
154
'version' => '1.1',

core/components/commerce_digitalproduct/model/schema/commerce_digitalproduct.mysql.schema.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@
1717

1818
<object class="DigitalproductFile" table="commerce_digitalproduct_file" extends="comSimpleObject">
1919
<field key="digitalproduct_id" dbtype="int" attributes="unsigned" precision="10" phptype="int" null="false" />
20-
<!-- Used in URLs for tracking and viewing -->
2120
<field key="secret" dbtype="varchar" precision="190" phptype="string" null="false" default="" />
21+
<field key="name" dbtype="varchar" precision="190" phptype="string" null="false" default="" />
2222

23-
<field key="resource" dbtype="text" phptype="string" null="true" />
23+
<field key="resource" dbtype="int" attributes="unsigned" phptype="int" null="false" default="0" />
2424
<field key="file" dbtype="text" phptype="string" null="true" />
2525

2626
<field key="download_count" dbtype="int" attributes="unsigned" precision="10" phptype="int" null="false" default="0" />
27+
<field key="download_limit" dbtype="int" attributes="unsigned" precision="10" phptype="int" null="false" default="0" />
2728
<field key="download_expiry" dbtype="int" attributes="unsigned" precision="10" phptype="int" null="false" default="0" />
2829

2930
<aggregate alias="resource" class="modResource" local="resource" foreign="id" cardinality="one" owner="foreign" />

0 commit comments

Comments
 (0)