class Urls (View source)

\@package Helpers

Methods

string
getPackageIconURL(Package $pkg)

Gets a full URL to an icon for a particular application.

mixed
getPackageURL(Package $pkg)

Get the package's URL.

string
getToolsURL(string $tool, string $pkgHandle = null) deprecated

No description

string
getBlockTypeIconURL(BlockType $bt)

Gets a full URL to an icon for a particular block type.

string
getBlockTypeAssetsURL(BlockType $bt, bool|string $file = false)

Gets a full URL to the directory containing all of a block's items, including JavaScript, tools, icons, etc.

string
getBlockTypeJavaScriptURL(BlockType $bt)

Gets a full URL to a block's JavaScript file (if one exists).

string
getBlockTypeToolsURL(BlockType $bt) deprecated

No description

Details

string getPackageIconURL(Package $pkg)

Gets a full URL to an icon for a particular application.

Parameters

Package $pkg

Return Value

string

URL to the package's icon

mixed getPackageURL(Package $pkg)

Get the package's URL.

Parameters

Package $pkg

Return Value

mixed

string getToolsURL(string $tool, string $pkgHandle = null) deprecated

deprecated Gets a URL to reference a script in the tools directory

No description

Parameters

string $tool
string $pkgHandle

Return Value

string

Relative url to tool

string getBlockTypeIconURL(BlockType $bt)

Gets a full URL to an icon for a particular block type.

Parameters

BlockType $bt

Return Value

string

string getBlockTypeAssetsURL(BlockType $bt, bool|string $file = false)

Gets a full URL to the directory containing all of a block's items, including JavaScript, tools, icons, etc.

..

Parameters

BlockType $bt
bool|string $file

If provided will get the assets url for a file in a block

Return Value

string

$url

string getBlockTypeJavaScriptURL(BlockType $bt)

Gets a full URL to a block's JavaScript file (if one exists).

Parameters

BlockType $bt

Return Value

string

$url

string getBlockTypeToolsURL(BlockType $bt) deprecated

deprecated Gets a full URL to a block's tools directory

No description

Parameters

BlockType $bt

Return Value

string

$url