Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
AjxpMailer now has SqlTableProvider interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Mar 10, 2016
1 parent df43929 commit 7a94179
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion core/src/plugins/core.mailer/class.AjxpMailer.php
Expand Up @@ -25,7 +25,7 @@
* @package AjaXplorer_Plugins
* @subpackage Core
*/
class AjxpMailer extends AJXP_Plugin
class AjxpMailer extends AJXP_Plugin implements SqlTableProvider
{

public $mailCache;
Expand Down Expand Up @@ -402,4 +402,14 @@ public function validateEmail($email)
return filter_var($email, FILTER_VALIDATE_EMAIL) !== false;
}

/**
* Install SQL table using a dibi driver data
* @param $param array("SQL_DRIVER" => $dibiDriverData)
* @return mixed
*/
public function installSQLTables($param)
{
$p = AJXP_Utils::cleanDibiDriverParameters($param["SQL_DRIVER"]);
return AJXP_Utils::runCreateTablesQuery($p, $this->getBaseDir()."/create.sql");
}
}

0 comments on commit 7a94179

Please sign in to comment.