__construct() __construct(\TriTan\Interfaces\Hooks\ActionFilterHookInterface $hook) Parameters \TriTan\Interfaces\Hooks\ActionFilterHookInterface $hook
redirect() redirect(string $location, integer $status = 302) : boolean Redirects to another page. Uses ttcms_redirect and ttcms_redirect_status filter hooks. Parameters string $location The path to redirect to integer $status Status code to use Returns boolean — False if $location is not set
shorten() shorten(string $url, integer $length = 80) : string Url shortening function. Parameters string $url URL integer $length Characters to check against. Returns string
isAdmin() isAdmin() : boolean Whether the current request is for an administrative interface. e.g. /admin/ Returns boolean — True if an admin screen, otherwise false.
isLogin() isLogin() : boolean Whether the current request is for a login interface. e.g. /login/ Returns boolean — True if login screen, otherwise false.