This chart can display its output in a number of styles

@return string[]
778663
private function chartStyles(): array
    {
        return [
            self::CHART_STYLE_TREE        => I18N::translate('Tree'),
            self::CHART_STYLE_INDIVIDUALS => I18N::translate('Individuals'),
            self::CHART_STYLE_FAMILIES    => I18N::translate('Families'),
        ];
    }
879680
public function styles()
    {
        // Obtain Arguments:
        
        $args = func_get_args();
        
        // Array Argument Passed?
        
        if (is_array($args[0])) {
            
            // Obtain Styles:
            
            $styles = $this->grid()->getStyles($args[0]);
            
            // Answer as Array or String? (2nd param is true)
            
            return (isset($args[1]) && $args[1]) ? ViewTools::singleton()->array2att($styles) : $styles;
            
        }
        
        // Answer Styles Array:
        
        return $this->grid()->getStyles($args);
    }
511146
public static function getAllPatternCacheSubkeys() : array
    {
        $subkeys = [];
        $chars = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'];

        foreach ($chars as $charOne) {
            foreach ($chars as $charTwo) {
                $subkeys[$charOne . $charTwo] = '';
            }
        }

        return $subkeys;
    }
1308816
public function stylesAll(): array
    {
        $styles = [];
        foreach ($this->getAll() as $name => $plugin) {
            $styles[$name] = $plugin->styles();
        }
        return $styles;
    }
159784
public function getChartNames()
    {
        $chartNames = array();
        foreach ($this->chartCollection as $chart) {
            $chartNames[] = $chart->getName();
        }
        return $chartNames;
    }
492415
public function styles()
	{
		$assets = array();
		
		foreach ($this->assets as $asset) {
			if ('css' !== $asset['ext'] && 'less' !== $asset['ext']) {
				continue;
			}
			
			$assets[] = $this->route ? $asset : $this->process($asset);
		}
		
		if (empty($assets)) {
			return '';
		}
		
		if ($this->route) {
			return $this->prepareForController($assets, 'style');
		}
		
		if ($this->combine) {
			$assets = $this->combine($assets, 'style');
		}
		
		$links = array();
		foreach ($assets as $asset) {
			$url = $this->cdn ? $this->cdn . $asset['url'] : $asset['url'];
			$links[] = HTML::style($url, $asset['attributes']);
		}
		
		return implode('', $links);
	}
753623
public function html() {
        global $OUTPUT;

        $options = $this->options;
        $selected = $this->selected;

        $context = array(
            'name' => $this->name,
            'value' => $this->selected,
            'tabindex' => 1,
            'disabled' => !empty($this->isdisabled),
            'options' => array_map(function($option) use ($options, $selected) {
                return [
                    'name' => $options[$option],
                    'value' => $option,
                    'selected' => $selected == $option
                ];
            }, array_keys($options))
        );

        return $OUTPUT->render_from_template('gradereport_singleview/dropdown_attribute', $context);
    }
211039
public function getCssClasses() {
		$the_array = $this->icons_array;

		if ( is_array( $the_array ) ) {
			$temp = array();

			foreach ( $the_array as $class => $unicode ) {
				$temp[ $class ] = $class;
			}

			$the_array = $temp;
		}

		return $the_array;
	}
1366248
public function getCustomStylesOptions()
    {
        $keys = array_keys($this->owner->getCustomStylesConfig());
        
        return ArrayLib::valuekey($keys, $keys);
    }
451890
public function getStylesAttribute()
    {
        if (!$this->isImage)
            return null;

        $styles = [];
        foreach ($this->image_styles as $style)
            $styles[$style->style->name] = $style->file;

        return $styles;
    }
959884
public function svgSetStyle($styles)
    {
        // init the PDF style
        $style = '';

        // Style : fill
        if ($styles['fill']) {
            $this->setFillColorArray($styles['fill']);
            $style.= 'F';
        }

        // Style : stroke
        if ($styles['stroke'] && $styles['stroke-width']) {
            $this->SetDrawColorArray($styles['stroke']);
            $this->SetLineWidth($styles['stroke-width']);
            $style.= 'D';
        }

        // Style : opacity
        if ($styles['fill-opacity']) {
            $this->SetAlpha($styles['fill-opacity']);
        }

        return $style;
    }
904715
public function getCss()
    {
        if (isset($this->_themeConfig['css'])) {
            return array_merge($this->_themeConfig['css'], $this->_data['css']);
        } else {
            return $this->_data['css'];
        }
    }
426229
public function getStyles($names = [])
    {
        $styles = [];
        
        foreach ($names as $name) {
            $styles[] = $this->getStyle($name);
        }
        
        return array_filter($styles);
    }
17107
public function getAllThemes()
    {
        $return = [];
        $themes = $this->Database->prepare("SELECT id,name FROM tl_c4g_map_themes ORDER BY name")
            ->execute();
        while ($themes->next()) {
            $return[$themes->id] = $themes->name;
        }
        return $return;
    }
290599
public function formatStylesJs()
    {
        $options = [];

        $options[] = $this->formatStyle('Arial,Arial,Helvetica,sans-serif', 'Arial');
        $options[] = $this->formatStyle('Arial Black,Arial Black,Gadget,sans-serif', 'Arial Black');
        $options[] = $this->formatStyle('Comic Sans MS,Comic Sans MS,cursive', 'Comic Sans MS');
        $options[] = $this->formatStyle('Courier New,Courier New,Courier,monospace', 'Courier New');
        $options[] = $this->formatStyle('Georgia,Georgia,serif', 'Georgia');
        $options[] = $this->formatStyle('Impact,Charcoal,sans-serif', 'Impact');
        $options[] = $this->formatStyle('Lucida Console,Monaco,monospace', 'Lucida Console');
        $options[] = $this->formatStyle('Lucida Sans Unicode,Lucida Grande,sans-serif', 'Lucida Sans');
        $options[] = $this->formatStyle('Palatino Linotype,Book Antiqua,Palatino,serif', 'Palatino Linotype');
        $options[] = $this->formatStyle('Tahoma,Geneva,sans-serif', 'Tahoma');
        $options[] = $this->formatStyle('Times New Roman,Times,serif', 'Times New Roman');
        $options[] = $this->formatStyle('Trebuchet MS,Helvetica,sans-serif', 'Trebuchet');
        $options[] = $this->formatStyle('Verdana,Geneva,sans-serif', 'Verdana');

        return 'aoTypes: ['.implode(', ', $options).']';
    }
798750
public function getStyle(string $s): array
    {
        if (!isset($this->styles[$s])) {
            return current($this->styles);
        }

        return $this->styles[$s];
    }
1240451
protected function makeStyles($styles = array())
        {
            $styles = array_merge($this->styles, $styles);
            $output = '';
            foreach ($styles as $property => $value) {
                $output .= $property . ':' . $value . ';';
            }

            return $output;
        }