PHP Class Yab\Quarx\Services\QuarxService

Show file Open project: YABhq/Quarx

Public Methods

Method Description
__construct ( )
addToPackages ( string $dir ) Add these views to the packages.
asset ( string $path, string $contentType = 'null', $fullURL = true ) : string Get a module's asset.
assignArrayByPath ( &$arr, string $path ) : mixed Assign a value to the path.
breadcrumbs ( array $locations ) : string Creates a breadcrumb trail.
config ( string $key ) : mixed Get Module Config.
convertToURL ( string $string ) : string Convert a string to a URL.
defaultModules ( )
editBtn ( string $type = null, integer $id = null ) : string Edit button.
images ( string $tag = null ) : collection Get images.
menu ( string $slug, Illuminate\Support\Facades\View $view = null ) : string Get a view.
moduleAsset ( string $module, string $path, string $contentType = 'null' ) : string Module Assets.
moduleConfig ( string $module, string $path ) : string Module Config.
notification ( string $string, string $type = null ) : void Generates a notification for the app.
packageMenus ( ) : string Quarx package Menus.
widget ( string $slug ) : widget Get a widget.

Method Details

__construct() public method

public __construct ( )

addToPackages() public method

Add these views to the packages.
public addToPackages ( string $dir )
$dir string

asset() public method

Get a module's asset.
public asset ( string $path, string $contentType = 'null', $fullURL = true ) : string
$path string Path to module asset
$contentType string Asset type
return string

assignArrayByPath() public method

Assign a value to the path.
public assignArrayByPath ( &$arr, string $path ) : mixed
$path string Array as path string
return mixed

breadcrumbs() public method

Creates a breadcrumb trail.
public breadcrumbs ( array $locations ) : string
$locations array Locations array
return string

config() public method

Get Module Config.
public config ( string $key ) : mixed
$key string Config key
return mixed

convertToURL() public method

Convert a string to a URL.
public convertToURL ( string $string ) : string
$string string
return string

defaultModules() public method

public defaultModules ( )

editBtn() public method

Edit button.
public editBtn ( string $type = null, integer $id = null ) : string
$type string
$id integer
return string

images() public method

Get images.
public images ( string $tag = null ) : collection
$tag string
return collection

menu() public method

Get a view.
public menu ( string $slug, Illuminate\Support\Facades\View $view = null ) : string
$slug string
$view Illuminate\Support\Facades\View
return string

moduleAsset() public method

Module Assets.
public moduleAsset ( string $module, string $path, string $contentType = 'null' ) : string
$module string Module name
$path string Asset path
$contentType string Content type
return string

moduleConfig() public method

Module Config.
public moduleConfig ( string $module, string $path ) : string
$module string Module name
$path string Asset path
return string

notification() public method

Generates a notification for the app.
public notification ( string $string, string $type = null ) : void
$string string Notification string
$type string Notification type
return void

packageMenus() public method

Quarx package Menus.
public packageMenus ( ) : string
return string

widget() public method

Get a widget.
public widget ( string $slug ) : widget
$slug string
return widget