# \cge_template_utils

A class to provide some methods for managing templates.

## Summary

Methods
Properties
Constants
get_templates_by_prefix()
create_template_dropdown()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
final

File
  lib/class.cge_template_utils.php
Class hierarchy
  \cge_template_utils

## Tags

todo |

## Methods

### get_templates_by_prefix()

    get_templates_by_prefix(string $mod, string $prefix, bool $trim) : string[]

Get all of the templates for a specific (or the current moduel) that begin with a specified prefix.

#### Parameters

string | $mod | The module name. If none specified, the current module is assumed.
string | $prefix | A prefix to filter templates by.
bool | $trim | Wether the prefix should be trimmed from the output array.

#### Returns

string[]

#

static

## Tags

todo |

### create_template_dropdown()

    create_template_dropdown(string $id, string $name, string $prefix, string $selectedvalue, string $addtext)

Get a list of templates in the form of a dropdown.

#### Parameters

string | $id | The module action id.
string | $name | The name of the dropdown.
string | $prefix | The prefix for templates.
string | $selectedvalue | The item that should be currently selected.
string | $addtext | Additional text for the select element.

#

static

#### Deprecated

## Tags

todo |

### class.cge_template_utils.php