/** * child classes can then call this function with * return parent::renderListData($data, $oAllRowsData); * to perform rendering that is applicable to all plugins * * shows the data formatted for the table view * @param string data * @param object all the data in the tables current row * @return string formatted value */ function renderListData($data, $oAllRowsData ) { $params = $this->getParams(); $groupModel = $this->getGroup(); if (!$groupModel->isJoin() && $groupModel->canRepeat()) { $name = $this->getFullName(false, true, false) ."_raw"; //if coming from fabrikemail plugin oAllRowsdata is empty if (isset($oAllRowsData->$name)) { $data = $oAllRowsData->$name; } if (!is_array($data)) { //$data = explode(GROUPSPLITTER, $data); $data = json_decode($data); } $labeldata = array(); $aAllRowsData = JArrayHelper::fromObject($oAllRowsData); $repeatCounter = 0; $this->_resetCache(); foreach ($data as $d) { $opts = $this->_getOptionVals($aAllRowsData, $repeatCounter); $repeatCounter++; foreach ($opts as $opt) { if ($opt->value == $d) { $labeldata[] = $opt->text; break; } } } } else { $labeldata[] = $data; } //$data = implode(GROUPSPLITTER, $labeldata); $data = json_encode($labeldata); // $$$ rob add links and icons done in parent::renderListData(); return parent::renderListData($data, $oAllRowsData); }
/** * shows the data formatted for the table view * @param string data * @param object all the data in the tables current row * @return string formatted value */ function renderListData($data, $oAllRowsData) { return parent::renderListData($data, $oAllRowsData); }
/** * Shows the data formatted for the list view * * @param string $data elements data * @param object &$thisRow all the data in the lists current row * * @return string formatted value */ public function renderListData($data, &$thisRow) { return parent::renderListData($data, $thisRow); }