log =& LoggerManager::getLogger(__CLASS__); } /** * * @return array */ static public function computeUrl($tableId, $columnId, $inputValues) { $reg = $inputValues['REGLEMENT']; $url = ''; if ($reg != '') { $url = ''.substr($reg, strrpos($reg, '\\')+1).''; } return $url; } /** * Sets tables rules. */ public function initialize() { $tablesPlugin = $this->cartoclient->getPluginManager()->tables; $registry = $tablesPlugin->getTableRulesRegistry(); $outputType = $this->cartoclient->getOutputType(); $registry->addCellFilter('query', 'zones_et_perimetres', 'REGLEMENT', array('REGLEMENT'), array('ClientYourprojectnameTableRules', 'computeUrl')); } } ?>