2015-12-01 05:06:34 +00:00
|
|
|
<?php
|
|
|
|
/*----------------------------------------------------------------------------------| www.giz.de |----/
|
|
|
|
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
|
|
|
|
/-------------------------------------------------------------------------------------------------------/
|
|
|
|
|
2018-05-05 13:43:04 +00:00
|
|
|
@version 3.4.3
|
2018-05-17 05:06:41 +00:00
|
|
|
@build 17th May, 2018
|
2015-12-01 05:06:34 +00:00
|
|
|
@created 15th June, 2012
|
|
|
|
@package Cost Benefit Projection
|
|
|
|
@subpackage publishing.php
|
|
|
|
@author Llewellyn van der Merwe <http://www.vdm.io>
|
|
|
|
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
|
|
|
|
@copyright Copyright (C) 2015. All Rights Reserved
|
|
|
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
|
|
|
|
/-------------------------------------------------------------------------------------------------------/
|
|
|
|
Cost Benefit Projection Tool.
|
|
|
|
/------------------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
// No direct access to this file
|
|
|
|
|
|
|
|
defined('_JEXEC') or die('Restricted access');
|
|
|
|
|
|
|
|
$app = JFactory::getApplication();
|
|
|
|
$form = $displayData->getForm();
|
|
|
|
|
|
|
|
$fields = $displayData->get('fields') ?: array(
|
|
|
|
'created',
|
|
|
|
'created_by',
|
|
|
|
'modified',
|
|
|
|
'modified_by'
|
|
|
|
);
|
|
|
|
|
|
|
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
|
|
|
|
|
|
|
foreach ($fields as $field)
|
|
|
|
{
|
|
|
|
$field = is_array($field) ? $field : array($field);
|
|
|
|
foreach ($field as $f)
|
|
|
|
{
|
|
|
|
if ($form->getField($f))
|
|
|
|
{
|
|
|
|
if (in_array($f, $hiddenFields))
|
|
|
|
{
|
|
|
|
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
|
|
}
|
|
|
|
|
|
|
|
echo $form->renderField($f);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|