mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-02 04:39:28 +00:00
ee3998f62e
- Added model system/Filters_model to manage system.tbl_filters - Removed method execQuery from model system/UDF_model - Added property executedQueryMetaData to DB_Model - Added property executedQueryListFields to DB_Model - Added method getExecutedQueryListFields to DB_Model - Added method getExecutedQueryMetaData to DB_Model - Added method execReadOnlyQuery to DB_Model to execute read only queries from outside a model - Changed DB_Model method _toPhp to store infos about an executed query into properties executedQueryMetaData and executedQueryListFields - Updated library UDFLib to use execReadOnlyQuery - Added widget FilterWidget to render and manage a filter into VileSci - Added views widgets/filter/selectFields, widgets/filter/selectFilters and widgets/filter/tableDataset used by FilterWidget
39 lines
780 B
PHP
39 lines
780 B
PHP
<?php
|
|
|
|
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
class Test extends VileSci_Controller
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
$this->load->library('WidgetLib');
|
|
}
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public function index()
|
|
{
|
|
echo $this->widgetlib->widget(
|
|
'FilterWidget',
|
|
array(
|
|
'app' => 'OpenProject',
|
|
'datasetName' => 'Arbeitspakete',
|
|
'query' => '
|
|
SELECT p.person_id AS PersonId,
|
|
p.nachname AS Nachname,
|
|
p.vorname AS Vorname,
|
|
k.kontakt AS Email
|
|
FROM public.tbl_person p INNER JOIN public.tbl_kontakt k USING(person_id)
|
|
WHERE p.aktiv = TRUE
|
|
AND p.person_id = k.person_id
|
|
AND k.kontakttyp = \'email\'
|
|
AND p.person_id < 1000
|
|
'
|
|
)
|
|
);
|
|
}
|
|
}
|