mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
7daac696b3
- Renamed view system/udf.php to system/fas_udf.php - Adapted code with new names - Added model system/FAS_UDF_model with only FAS functionalities - Removed FAS functionalities from model system/UDF_model - Fixed session problems in controller system/FAS_UDF
34 lines
585 B
PHP
34 lines
585 B
PHP
<?php
|
|
|
|
class UDF_model extends DB_Model
|
|
{
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->dbTable = 'system.tbl_udf';
|
|
$this->pk = array('schema', 'table');
|
|
$this->hasSequence = false;
|
|
}
|
|
|
|
/**
|
|
* Returns all the UDF for this table
|
|
*/
|
|
public function getUDFsDefinitions($schemaAndTable)
|
|
{
|
|
$st = $this->getSchemaAndTable($schemaAndTable);
|
|
|
|
$this->addSelect(UDFLib::COLUMN_JSON_DESCRIPTION);
|
|
$udfResults = $this->loadWhere(
|
|
array(
|
|
'schema' => $st->schema,
|
|
'table' => $st->table
|
|
)
|
|
);
|
|
|
|
return $udfResults;
|
|
}
|
|
}
|