\CleanUtils
Helpers.
- Author: arillo
Synopsis
class CleanUtils
{
- // members
- public static string $module = "silverstripe-cleanutilities";
- // methods
- public static void add_required_css()
- public static GridField create_gridfield_for()
- public static void create_uploadfield_for()
- public static bool instance_of()
- public static string generate_urlsegment()
- public static string get_ip()
- public static void setup_locale()
Members
public
- $module
—
string
Define the foldername for this module.
Methods
public
- add_required_css() — Helper function, which adds the given $cssClass to all $form fields specified by its requiredfields
- create_gridfield_for() — A simple Gridfield factory
- create_uploadfield_for()
- generate_urlsegment() — Generates an Url segment by a given string.
- get_ip() — Return current users IP
- instance_of() — Like instanceof but the SS way of doing it.
- setup_locale() — Sets i18n locale and adds Content-language to meta tags.