Files
FHC-Core/application/controllers/system/Test.php
T
Paolo ee3998f62e - Changed system/dbupdate_3.3.php to create table system.tbl_filters and what its needed
- 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
2017-11-22 12:08:54 +01:00

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
'
)
);
}
}