Helper class

access public
package kocuj_internal_lib

 Methods

Get HTML image

getImage(string $url, array $attr = array()) : string
access public

Parameters

$url

string

Image URL

$attr

array

Additional attributes; there are available the following attributes: "class" (string type; class of HTML element), "data" (array type; values for "data-*" tags), "id" (string type; id of HTML element), "noescapeurl" (bool type; if true, link is not escaped), "style" (string type; style of HTML element), "styleclassfilter" (array type; it contains two fields: "projectobj" with object of class \KocujIL\V12a\Classes\Project for current project and "filter" with filter name which will be added to project prefix), "title" (string type; title of the image) - default: empty

Returns

stringHTML image

Get singleton instance

getInstance() : object
Static
access public

Returns

objectSingleton instance

Get beginning of link anchor

getLinkBegin(string $link, array $attr = array()) : string
access public

Parameters

$link

string

Link URL

$attr

array

Additional attributes; there are available the following attributes: "class" (string type; class of HTML element), "data" (array type; values for "data-*" tags), "external" (bool type; if true, link is external and will be opened in new tab), "externalwithouttarget" (bool type; if true, link is external, but there will be no "target" attribute; if there is also an "external" attribute in $attr array, the "external" will be used instead), "id" (string type; id of HTML element), "noescapeurl" (bool type; if true, link is not escaped), "rel" (string type; "rel" link attribute value), "style" (string type; style of HTML element), "styleclassfilter" (array type; it contains two fields: "projectobj" with object of class \KocujIL\V12a\Classes\Project for current project and "filter" with filter name which will be added to project prefix), "title" (string type; title of the link) - default: empty

Returns

stringBeginning of link anchor

Get ending of link anchor

getLinkEnd() : string
access public

Returns

stringEnding of link anchor

Disable cloning of object

__clone() : void
access private

Constructor

__construct() : void
access private

Get HTML tag attributes

getHtmlAttrs(array $attr) : string
access private

Parameters

$attr

array

Additional attributes; there are available the following attributes: "class" (string type; class of HTML element), "data" (array type; values for "data-*" tags), "id" (string type; id of HTML element), "style" (string type; style of HTML element), "styleclassfilter" (array type; it contains two fields: "projectobj" with object of class \KocujIL\V12a\Classes\Project for current project and "filter" with filter name which will be added to project prefix)

Returns

stringHTML tag attributes

 Properties

 

Singleton instance

$instance : object

Default

NULL
Static
access private