46 lines
1014 B
PHP
46 lines
1014 B
PHP
<?php
|
|
/**
|
|
* Since 2013 Ovidiu Cimpean.
|
|
*
|
|
* Ovidiu Cimpean - Newsletter Pro © All rights reserved.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit, modify or copy this file.
|
|
* If you wish to customize it, contact us at addons4prestashop@gmail.com.
|
|
*
|
|
* @author Ovidiu Cimpean <addons4prestashop@gmail.com>
|
|
* @copyright Since 2013 Ovidiu Cimpean
|
|
* @license Do not edit, modify or copy this file
|
|
*
|
|
* @version Release: 4
|
|
*/
|
|
|
|
class NewsletterProDefaultNewsletterTable
|
|
{
|
|
public function __construct()
|
|
{
|
|
}
|
|
|
|
public static function newInstance()
|
|
{
|
|
return new self();
|
|
}
|
|
|
|
public static function getTableName()
|
|
{
|
|
if (NewsletterProTools::tableExists('newsletter')) {
|
|
return 'newsletter';
|
|
} elseif (NewsletterProTools::tableExists('emailsubscription')) {
|
|
return 'emailsubscription';
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
public static function hasIdLang()
|
|
{
|
|
return NewsletterProTools::columnExists(self::getTableName(), 'id_lang');
|
|
}
|
|
}
|