34 lines
1.4 KiB
PHP
34 lines
1.4 KiB
PHP
<?php
|
|
/*************************************************************************************/
|
|
/* This file is part of the Thelia package. */
|
|
/* */
|
|
/* Copyright (c) OpenStudio */
|
|
/* email : dev@thelia.net */
|
|
/* web : http://www.thelia.net */
|
|
/* */
|
|
/* For the full copyright and license information, please view the LICENSE.txt */
|
|
/* file that was distributed with this source code. */
|
|
/*************************************************************************************/
|
|
|
|
namespace InvoiceRef;
|
|
|
|
use Propel\Runtime\Connection\ConnectionInterface;
|
|
use Thelia\Model\ConfigQuery;
|
|
use Thelia\Module\BaseModule;
|
|
|
|
class InvoiceRef extends BaseModule
|
|
{
|
|
const DOMAIN_NAME = "invoiceref";
|
|
/*
|
|
* You may now override BaseModuleInterface methods, such as:
|
|
* install, destroy, preActivation, postActivation, preDeactivation, postDeactivation
|
|
*
|
|
* Have fun !
|
|
*/
|
|
|
|
public function postActivation(ConnectionInterface $con = null)
|
|
{
|
|
ConfigQuery::write('invoiceRef', 1, true, true);
|
|
}
|
|
}
|