31 lines
925 B
PHP
31 lines
925 B
PHP
<?php
|
|
|
|
namespace PlanificationLivraison;
|
|
|
|
use Propel\Runtime\Connection\ConnectionInterface;
|
|
use Thelia\Install\Database;
|
|
use Thelia\Module\BaseModule;
|
|
|
|
class PlanificationLivraison extends BaseModule
|
|
{
|
|
/** @var string */
|
|
const DOMAIN_NAME = 'planificationlivraison';
|
|
|
|
const CONFIG_API_KEY = 'googlemap_api_key';
|
|
const CONFIG_MAP_CENTER_LAT = 'map_center_latitude';
|
|
const CONFIG_MAP_CENTER_LNG = 'map_center_longitude';
|
|
const CONFIG_RED_ALERT = 'delay_red_alert';
|
|
const CONFIG_ORANGE_ALERT = 'delay_orange_alert';
|
|
const CONFIG_PREPARATION_DELAY = 'orders_preparation_delay';
|
|
|
|
/**
|
|
* @param ConnectionInterface|null $con
|
|
*/
|
|
public function postActivation(ConnectionInterface $con = null)
|
|
{
|
|
$database = new Database($con->getWrappedConnection());
|
|
$database->insertSql(null, array(__DIR__ . '/Config/thelia.sql'));
|
|
}
|
|
|
|
}
|