/** * Returns the label of the record, defined in the tca. * * @return int */ public function getTcaLabel() { $label = ''; $tableName = $this->getTableName(); if (!empty($tableName)) { $labelField = tx_rnbase_util_TCA::getLabelFieldForTable($tableName); if (!$this->isPropertyEmpty($labelField)) { $label = (string) $this->getProperty($labelField); } } return $label; }
/** * Adds the column 'uid' to the be list. * * @param array $columns * @param tx_rnbase_mod_IDecorator $oDecorator * @return tx_mklib_mod1_searcher_abstractBase */ protected function addDecoratorColumnLabel(array &$columns, tx_rnbase_mod_IDecorator &$oDecorator = NULL) { if (!empty($this->options['baseTableName'])) { tx_rnbase::load('tx_rnbase_util_TCA'); $labelField = tx_rnbase_util_TCA::getLabelFieldForTable($this->options['baseTableName']); if (!empty($labelField)) { $columns['label'] = array('title' => 'label_tableheader_title', 'decorator' => &$oDecorator); } } // fallback, the uid column if (!isset($columns['label']) && !isset($columns['uid'])) { $this->addDecoratorColumnUid($columns, $oDecorator); } return $this; }