\jomres_toolbar

* @package Jomres\Core\Classes Creates the Jomres menu bar icons and the toolbar icons. These have been replaced because the standard Joomla toolbar doesn't return a value, simply outputting the toolbar when the method is called, no use when you want to use patTemplates.

Summary

Methods
Properties
Constants
__construct()
spacer()
makeImageValid()
customToolbarItem()
toolbarItem()
startTable()
endTable()
makeCell()
getStandardActivityImagesArray()
getMenubarImagesArray()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

Constructor. Generates the images based on hard coded arrays, and sets the livesite and icon sizes.

spacer()

spacer(  $width = 40) 

Inserts a spacer cell into the toolbar. Pass in a width to set your width.

Parameters

$width

makeImageValid()

makeImageValid(  $imageName = '') 

Inserts a spacer cell into the toolbar. Pass in a width to set your width.

Parameters

$imageName

customToolbarItem()

customToolbarItem(  $targetTask,   $link,   $text,   $submitOnClick,   $submitTask,   $image,   $concat = false) 

Allows for custom toolbar items. Set $image to the full path from the root of livesite.

Parameters

$targetTask
$link
$text
$submitOnClick
$submitTask
$image
$concat

toolbarItem()

toolbarItem(  $targetTask,   $link,   $text = '',   $submitOnClick = false,   $submitTask = '',   $concat = false) 

Creates a cell with a standard toolbar item.

Parameters

$targetTask
$link
$text
$submitOnClick
$submitTask
$concat

startTable()

startTable() 

Starts the table and inserts css to the rendered page if it hasn't been done before.

endTable()

endTable() 

Ends the toolbar table.

makeCell()

makeCell(  $image,   $targetTask,   $link,   $text,   $submitOnClick = false,   $submitTask = '') 

The various toolbar item type methods refer to this to actually finish the construction of the cell.

Parameters

$image
$targetTask
$link
$text
$submitOnClick
$submitTask

getStandardActivityImagesArray()

getStandardActivityImagesArray() 

Returns an array of all the standard images, with default text that is used for the button hint if nothing was supplied.

getMenubarImagesArray()

getMenubarImagesArray() 

Returns an array of all the menubar images.