-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomerValidation.php
More file actions
47 lines (37 loc) · 1.29 KB
/
CustomerValidation.php
File metadata and controls
47 lines (37 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace CustomerValidation;
use Thelia\Module\BaseModule;
use Propel\Runtime\Connection\ConnectionInterface;
use Thelia\Install\Database;
/**
* Class CustomerValidation
* @package CustomerValidation
*/
class CustomerValidation extends BaseModule
{
const MESSAGE_DOMAIN = "customervalidation";
const DOMAIN_NAME = "customervalidation";
const ROUTER = "router.customervalidation";
public function postActivation(ConnectionInterface $con = null)
{
$database = new Database($con);
$database->insertSql(null, [__DIR__ . "/Config/create.sql", __DIR__ . "/Config/insert.sql"]);
}
public function destroy(ConnectionInterface $con = null, $deleteModuleData = false)
{
// If we have to delete module data, remove the media directory.
if ($deleteModuleData) {
$database = new Database($con);
$database->insertSql(null, array(__DIR__ . '/Config/destroy.sql'));
}
}
public function update($currentVersion, $newVersion, ConnectionInterface $con = null)
{
$database = new Database($con);
$database->insertSql(null, [__DIR__ . "/Config/update.sql"]);
}
}