mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
063a3fa524
check - Changed the server column position in the extension manager view - Removed public method getInstalledExtensions from application/models/system/Extensions_model.php - Fixes, comments and indentations in application/libraries/ExtensionsLib.php
38 lines
558 B
PHP
38 lines
558 B
PHP
<?php
|
|
|
|
class Extensions_model extends DB_Model
|
|
{
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct('system');
|
|
$this->dbTable = 'system.tbl_extensions';
|
|
$this->pk = 'extension_id';
|
|
}
|
|
|
|
/**
|
|
* getDependencies
|
|
*/
|
|
public function getDependencies($dependencies)
|
|
{
|
|
return $this->execQuery(
|
|
'SELECT *
|
|
FROM '.$this->dbTable.'
|
|
WHERE enabled = TRUE
|
|
AND name IN ?',
|
|
array('name' => $dependencies)
|
|
);
|
|
}
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public function executeQuery($sql)
|
|
{
|
|
return $this->execQuery($sql);
|
|
}
|
|
}
|
|
|