|
|
|
@ -1,16 +1,13 @@ |
|
|
|
|
<?php |
|
|
|
|
/* For license terms, see /license.txt */ |
|
|
|
|
/** |
|
|
|
|
* Description of buy_courses_plugin |
|
|
|
|
* Plugin class for the BuyCourses plugin |
|
|
|
|
* @package chamilo.plugin.buycourses |
|
|
|
|
* @author Jose Angel Ruiz <jaruiz@nosolored.com> |
|
|
|
|
* @author Imanol Losada <imanol.losada@beeznest.com> |
|
|
|
|
* @author Alex Aragón <alex.aragon@beeznest.com> |
|
|
|
|
* @author Jose Angel Ruiz <jaruiz@nosolored.com> |
|
|
|
|
* @author Imanol Losada <imanol.losada@beeznest.com> |
|
|
|
|
* @author Alex Aragón <alex.aragon@beeznest.com> |
|
|
|
|
* @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com> |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* Plugin class for the BuyCourses plugin |
|
|
|
|
*/ |
|
|
|
|
class BuyCoursesPlugin extends Plugin |
|
|
|
|
{ |
|
|
|
|
const TABLE_PAYPAL = 'plugin_buycourses_paypal_account'; |
|
|
|
@ -72,9 +69,9 @@ class BuyCoursesPlugin extends Plugin |
|
|
|
|
self::TABLE_CURRENCY |
|
|
|
|
); |
|
|
|
|
$em = Database::getManager(); |
|
|
|
|
$cn = $em -> getConnection(); |
|
|
|
|
$sm = $cn -> getSchemaManager(); |
|
|
|
|
$tables = $sm ->tablesExist($tablesToBeCompared); |
|
|
|
|
$cn = $em->getConnection(); |
|
|
|
|
$sm = $cn->getSchemaManager(); |
|
|
|
|
$tables = $sm->tablesExist($tablesToBeCompared); |
|
|
|
|
|
|
|
|
|
if ($tables) { |
|
|
|
|
return false; |
|
|
|
|