/** * With element_chain it's possible to get specific array data from a mutliple array * - Chaining elements with element1.element2.element3... * - If a element isn't found - method returns FALSE * * @example Arrays::element_chain('DEEP.OF.ARRAY', TARGET_ARRAY); * * @param $sIndexChain * @param $aArray * * @return bool */ public static function element_chain($sIndexChain, $aArray) { $aIndexChain = explode('.', $sIndexChain); foreach ($aIndexChain as $sElement) { $aArray = Arrays::element($sElement, $aArray); if (!$aArray) { return false; } } return $aArray; }
if (isset($tableCustomFieldList)) { ?> <table id="<?php echo $tableId; ?> " class="table table-striped table-bordered table-hover" width="100%"> <thead> <tr> <?php foreach ($tableCustomFieldList as $key) { ?> <?php if (!isset($tableIgnoreFields) || !in_array($key, $tableIgnoreFields)) { ?> <th><?php echo !isset($tableKeyMappings) ? $key : (!Arrays::element($key, $tableKeyMappings) ? $key : $tableKeyMappings[$key]); ?> </th> <?php } ?> <?php } ?> <?php $tableIncludeList->renderHeader(); ?> </tr> </thead> </table>