HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
YFormatter Class Reference

Public Member Functions

 formatShortText ($value, $shortTextLimit=100, $defaultValue= '-')
 createLinkForEachUrlInString ($urlsString, $splitter= ',')
 arrayUrlsToStringUrls ($urls, $arrayKey= 'url', $limit=64, $splitter= ',')

Detailed Description

Definition at line 2 of file YFormatter.php.

Member Function Documentation

YFormatter::arrayUrlsToStringUrls (   $urls,
  $arrayKey = 'url',
  $limit = 64,
  $splitter = ',' 
)

Convert array urls to single string url

Parameters
array$urls
string$arrayKey
integer$limit
string$splitter
Returns
string

Definition at line 49 of file YFormatter.php.

Here is the call graph for this function:

Here is the caller graph for this function:

YFormatter::createLinkForEachUrlInString (   $urlsString,
  $splitter = ',' 
)

Create link for each url in string urls

Parameters
string$urlsString
string$splitter
Returns
string

Definition at line 29 of file YFormatter.php.

Here is the caller graph for this function:

YFormatter::formatShortText (   $value,
  $shortTextLimit = 100,
  $defaultValue = '-' 
)

Text formatter shortening long texts and displaying the full text as the span title.

To be used in GridViews for instance.

Parameters
string$value
string$shortTextLimit
Returns
string Encoded and possibly html formatted string ('span' if the text is long).

Definition at line 13 of file YFormatter.php.


The documentation for this class was generated from the following file: