_locale = $locale; } /** * Get the locale * @return string */ function getLocale() { return $this->_locale; } // // Template methods from GridCellProvider // /** * This implementation assumes an element that is a * DataObject. It will retrieve an element in the * configured locale. * @see GridCellProvider::getTemplateVarsFromRowColumn() * @param $row GridRow * @param $column GridColumn * @return array */ function getTemplateVarsFromRowColumn(&$row, $column) { $element =& $row->getData(); $columnId = $column->getId(); assert(is_a($element, 'DataObject') && !empty($columnId)); return array('label' => $element->getData($columnId, $this->getLocale())); } } ?>