WebbuildersGroup\GitHubShortCode\GitHubShortCode
Synopsis
class GitHubShortCode
{
- // methods
- public static void parse()
- protected final static {stdObject} getFromAPI()
- protected static {string} shortHandNumber()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
Methods
protected
- getFromAPI() — Loads the data from the github api
- shortHandNumber() — Gets the short hand of the given number so 1000 becomes 1k, 2000 becomes 2k, and 1000000 becomes 1m etc