Backend\Helpers\Backend

Backend Helper

See also:

Public methods

public void assetVersion()

assetVersion returns a unique identifier to cache bust backend assets. A salted hash is used to prevent guessing of the current build number

public void baseUrl($path=NULL)

baseUrl returns the base backend URL

Parameters
  • $path

public string date($dateTime, $options=array())

date is a proxy method for dateTime() using "date" format alias

Parameters
  • $dateTime
  • $options

public string dateTime($dateTime, $options=array())

dateTime returns the HTML for a date formatted in the backend

Supported for formatAlias: time -> 6:28 AM timeLong -> 6:28:01 AM date -> 04/23/2016 dateMin -> 4/23/2016 dateLong -> April 23, 2016 dateLongMin -> Apr 23, 2016 dateTime -> April 23, 2016 6:28 AM dateTimeMin -> Apr 23, 2016 6:28 AM dateTimeLong -> Saturday, April 23, 2016 6:28 AM dateTimeLongMin -> Sat, Apr 23, 2016 6:29 AM

Parameters
  • $dateTime
  • $options

public static Carbon\Carbon makeCarbon($value, $throwException=true)

makeCarbon converts mixed inputs to a Carbon object and sets the backend timezone

Parameters
  • $value
  • $throwException

public void redirect($path, $status=302, $headers=array(), $secure=NULL)

redirect creates a new redirect response to a given backend path

Parameters
  • $path
  • $status
  • $headers
  • $secure

public void redirectGuest($path, $status=302, $headers=array(), $secure=NULL)

redirectGuest creates a new backend redirect response, placing current URL in the session

Parameters
  • $path
  • $status
  • $headers
  • $secure

public void redirectIntended($path, $status=302, $headers=array(), $secure=NULL)

redirectIntended creates a new redirect response to the previously intended backend location

Parameters
  • $path
  • $status
  • $headers
  • $secure

public void skinAsset($path=NULL)

skinAsset returns a URL in context of the active Backend skin

Parameters
  • $path

public void uri()

uri returns the backend URI segment

public void url($path=NULL, $parameters=array(), $secure=NULL)

url returns a URL in context of the backend

Parameters
  • $path
  • $parameters
  • $secure