Lines Matching defs:params
132 $params = $this->getParameters();
135 $cachekey = md5($file . serialize($params) . $conf['template'] . filemtime(__FILE__));
140 if($params['e']) {
143 $content = $this->generateSVG($file, $params);
152 * @param array $params the parameters as returned by getParameters()
155 protected function generateSVG($file, $params) {
158 $xml->addStyle($this->makeStyle($params));
198 $params = array(
208 return $params;
214 * @param array $params associative array with the given parameters
217 protected function makeStyle($params) {
220 if(empty($params['b'])) {
221 $params['b'] = $this->fixColor('00000000');
224 $style = 'g rect.' . self::BACKGROUNDCLASS . '{fill:' . $params['b'] . ';}';
226 if($params['bh']) {
227 $style .= 'g:hover rect.' . self::BACKGROUNDCLASS . '{fill:' . $params['bh'] . ';}';
230 if($params['s'] || $params['f']) {
232 if($params['s']) $style .= 'stroke:' . $params['s'] . ';';
233 if($params['f']) $style .= 'fill:' . $params['f'] . ';';
237 if($params['sh'] || $params['fh']) {
239 if($params['sh']) $style .= 'stroke:' . $params['sh'] . ';';
240 if($params['fh']) $style .= 'fill:' . $params['fh'] . ';';