webmatic3.wm3Util
\core\classes\wm3Util.php at line 8

Class wm3Util

wm3Util

public class wm3Util


Constructor Summary

wm3Util()

Method Summary
static void

actionButton(mixed link, mixed img, mixed alt, mixed accept, mixed text, mixed border, mixed w, mixed h, mixed align, mixed target)

static void

checkExtension(mixed file, mixed ext)

static void

checkboxEnabled(mixed n, mixed v, mixed disabled, mixed extra)

static void

cutExtension(mixed file)

static void

delayTime()

static void

dieMessage(mixed label, mixed msg)

static void

generatePassword()

static void

getBBCodeArray()

static string

getBBCodeText(webmatic3 w3, string content, bool flag_news, string link_news, bool flag_code)

Render bbcode text (replace bbcode tags with relative html code) for a page, news and other website content

static void

getFirstFile(mixed path)

static string

getHtmlText(webmatic3 w3, string content, bool flag_news, string link_news)

Render html for a page, news and other website content

static void

getPhpInformations(mixed fl)

static string

getPlainText(webmatic3 w3, string content, bool flag_news, string link_news)

Render plain text for a page, news and other website content

static void

inputCheckbox(mixed n, mixed v, mixed ck, mixed disabled, mixed extra)

static void

inputFile(mixed n, mixed v, mixed s)

static void

inputOption(mixed n, mixed v, mixed s)

static void

inputPassword(mixed n, mixed v, mixed s, mixed m)

static void

inputRadio(mixed n, mixed v, mixed ck)

static void

inputText(mixed n, mixed v, mixed s, mixed m, mixed id, mixed js, mixed disabled)

static void

inputTextArea(mixed n, mixed v, mixed r, mixed c, mixed extra)

static void

isEmail(mixed email)

static void

isFolderWritable(mixed path)

static void

isImageUrl(mixed url)

static void

isImageUrlRelative(mixed url)

static void

isInteger(mixed num)

static void

isUrl(mixed url)

static void

isUrlRelative(mixed url)

static void

makePagesNavigator(mixed total, mixed max, mixed pg, mixed link, mixed rs, mixed field, mixed _ID)

static void

makePercentageBar(mixed w3, mixed v, mixed w, mixed h, mixed horizontal, mixed alt)

static void

makeStars(mixed w3, mixed v, mixed n)

static string

metaRefresh(string time, int url)

Refresh browser content to $url after $time seconds (using meta refresh)

static void

microtimeFloat()

static void

parseSearchFilter()

static void

quoteDB(mixed str)

static void

quoteHTML(mixed s, mixed only_quote)

static string

renderContent(webmatic3 w3, string content, int render_mode, bool flag_news, string link_news)

Render a page, news and other website contents in the right render mode

static void

renderDate(mixed w3, mixed ts, mixed languageID, mixed full, mixed msg, mixed time, mixed day)

static void

renderEditor(mixed w3, mixed form_js_obj, mixed textarea_js_obj, mixed mode_js_obj, mixed editor_type)

static void

renderImg(mixed file, mixed alt, mixed width, mixed height, mixed path, mixed border, mixed align)

static string

renderJavaScriptConstants()

Render all the constants used by java script

static void

selectAlign(mixed w3, mixed n, mixed v)

static void

selectAlignImage(mixed w3, mixed n, mixed v)

static void

selectArray(mixed n, mixed _L, mixed _V, mixed d, mixed js)

static void

selectArrayEquals(mixed n, mixed _V, mixed d, mixed js, mixed path, mixed preview_image)

static void

selectDirectory(mixed path, mixed name, mixed d, mixed js, mixed dir_only, mixed preview_image)

static void

selectGender(mixed w3, mixed n, mixed v)

static void

selectRenderMode(mixed w3, mixed n, mixed v, mixed admin)

static void

selectYesNo(mixed w3, mixed n, mixed v)

static void

setIDToInt()

static void

stripMagicQuotes()

static void

unquoteDB(mixed str)

Constructor Detail

\core\classes\wm3Util.php at line 11

wm3Util

public wm3Util()

Method Detail

\core\classes\wm3Util.php at line 453

actionButton

public static void actionButton(mixed link, mixed img, mixed alt, mixed accept, mixed text, mixed border, mixed w, mixed h, mixed align, mixed target)

\core\classes\wm3Util.php at line 663

checkExtension

public static void checkExtension(mixed file, mixed ext)

\core\classes\wm3Util.php at line 325

checkboxEnabled

public static void checkboxEnabled(mixed n, mixed v, mixed disabled, mixed extra)

\core\classes\wm3Util.php at line 671

cutExtension

public static void cutExtension(mixed file)

\core\classes\wm3Util.php at line 774

delayTime

public static void delayTime()

\core\classes\wm3Util.php at line 817

dieMessage

public static void dieMessage(mixed label, mixed msg)

\core\classes\wm3Util.php at line 611

generatePassword

public static void generatePassword()

\core\classes\wm3Util.php at line 13

getBBCodeArray

public static void getBBCodeArray()

\core\classes\wm3Util.php at line 105

getBBCodeText

public static string getBBCodeText(webmatic3 w3, string content, bool flag_news, string link_news, bool flag_code)

Render bbcode text (replace bbcode tags with relative html code) for a page, news and other website content

Parameters:
w3 - webmatic3 instance
content - the content to render
flag_news - if true the first occurrence of tag [more] will be parsed (used for the news)
link_news - the link to the news used for "read more" link
flag_code - if true its used to render correctly [code]...[/code] tag when html and bbcode are both used

\core\classes\wm3Util.php at line 603

getFirstFile

public static void getFirstFile(mixed path)

\core\classes\wm3Util.php at line 67

getHtmlText

public static string getHtmlText(webmatic3 w3, string content, bool flag_news, string link_news)

Render html for a page, news and other website content

Parameters:
w3 - webmatic3 instance
content - the content to render
flag_news - if true the first occurrence of tag [more] will be parsed (used for the news)
link_news - the link to the news used for "read more" link

\core\classes\wm3Util.php at line 799

getPhpInformations

public static void getPhpInformations(mixed fl)

\core\classes\wm3Util.php at line 85

getPlainText

public static string getPlainText(webmatic3 w3, string content, bool flag_news, string link_news)

Render plain text for a page, news and other website content

Parameters:
w3 - webmatic3 instance
content - the content to render
flag_news - if true the first occurrence of tag [more] will be parsed (used for the news)
link_news - the link to the news used for "read more" link

\core\classes\wm3Util.php at line 282

inputCheckbox

public static void inputCheckbox(mixed n, mixed v, mixed ck, mixed disabled, mixed extra)

\core\classes\wm3Util.php at line 319

inputFile

public static void inputFile(mixed n, mixed v, mixed s)

\core\classes\wm3Util.php at line 307

inputOption

public static void inputOption(mixed n, mixed v, mixed s)

\core\classes\wm3Util.php at line 301

inputPassword

public static void inputPassword(mixed n, mixed v, mixed s, mixed m)

\core\classes\wm3Util.php at line 288

inputRadio

public static void inputRadio(mixed n, mixed v, mixed ck)

\core\classes\wm3Util.php at line 294

inputText

public static void inputText(mixed n, mixed v, mixed s, mixed m, mixed id, mixed js, mixed disabled)

\core\classes\wm3Util.php at line 313

inputTextArea

public static void inputTextArea(mixed n, mixed v, mixed r, mixed c, mixed extra)

\core\classes\wm3Util.php at line 623

isEmail

public static void isEmail(mixed email)

\core\classes\wm3Util.php at line 652

isFolderWritable

public static void isFolderWritable(mixed path)

\core\classes\wm3Util.php at line 640

isImageUrl

public static void isImageUrl(mixed url)

\core\classes\wm3Util.php at line 646

isImageUrlRelative

public static void isImageUrlRelative(mixed url)

\core\classes\wm3Util.php at line 618

isInteger

public static void isInteger(mixed num)

\core\classes\wm3Util.php at line 628

isUrl

public static void isUrl(mixed url)

\core\classes\wm3Util.php at line 634

isUrlRelative

public static void isUrlRelative(mixed url)

\core\classes\wm3Util.php at line 462

makePagesNavigator

public static void makePagesNavigator(mixed total, mixed max, mixed pg, mixed link, mixed rs, mixed field, mixed _ID)

\core\classes\wm3Util.php at line 524

makePercentageBar

public static void makePercentageBar(mixed w3, mixed v, mixed w, mixed h, mixed horizontal, mixed alt)

\core\classes\wm3Util.php at line 508

makeStars

public static void makeStars(mixed w3, mixed v, mixed n)

\core\classes\wm3Util.php at line 277

metaRefresh

public static string metaRefresh(string time, int url)

Refresh browser content to $url after $time seconds (using meta refresh)

Parameters:
time - time in seconds to wait
url - the url to follow

\core\classes\wm3Util.php at line 767

microtimeFloat

public static void microtimeFloat()

\core\classes\wm3Util.php at line 683

parseSearchFilter

public static void parseSearchFilter()

\core\classes\wm3Util.php at line 781

quoteDB

public static void quoteDB(mixed str)

\core\classes\wm3Util.php at line 251

quoteHTML

public static void quoteHTML(mixed s, mixed only_quote)

\core\classes\wm3Util.php at line 52

renderContent

public static string renderContent(webmatic3 w3, string content, int render_mode, bool flag_news, string link_news)

Render a page, news and other website contents in the right render mode

Parameters:
w3 - webmatic3 instance
content - the content to render
render_mode - content will be render in different mode (passing WM3_cRENDER_MODE_HTML, WM3_cRENDER_MODE_PLAIN_TEXT, WM3_cRENDER_MODE_BB_CODE or WM3_cRENDER_MODE_HTML_BB_CODE)
flag_news - if true the first occurrence of tag [more] will be parsed for any render_mode (used for the news)
link_news - the link to the news used for "read more" link

\core\classes\wm3Util.php at line 543

renderDate

public static void renderDate(mixed w3, mixed ts, mixed languageID, mixed full, mixed msg, mixed time, mixed day)

\core\classes\wm3Util.php at line 553

renderEditor

public static void renderEditor(mixed w3, mixed form_js_obj, mixed textarea_js_obj, mixed mode_js_obj, mixed editor_type)

\core\classes\wm3Util.php at line 331

renderImg

public static void renderImg(mixed file, mixed alt, mixed width, mixed height, mixed path, mixed border, mixed align)

\core\classes\wm3Util.php at line 22

renderJavaScriptConstants

public static string renderJavaScriptConstants()

Render all the constants used by java script


\core\classes\wm3Util.php at line 371

selectAlign

public static void selectAlign(mixed w3, mixed n, mixed v)

\core\classes\wm3Util.php at line 380

selectAlignImage

public static void selectAlignImage(mixed w3, mixed n, mixed v)

\core\classes\wm3Util.php at line 389

selectArray

public static void selectArray(mixed n, mixed _L, mixed _V, mixed d, mixed js)

\core\classes\wm3Util.php at line 402

selectArrayEquals

public static void selectArrayEquals(mixed n, mixed _V, mixed d, mixed js, mixed path, mixed preview_image)

\core\classes\wm3Util.php at line 417

selectDirectory

public static void selectDirectory(mixed path, mixed name, mixed d, mixed js, mixed dir_only, mixed preview_image)

\core\classes\wm3Util.php at line 362

selectGender

public static void selectGender(mixed w3, mixed n, mixed v)

\core\classes\wm3Util.php at line 337

selectRenderMode

public static void selectRenderMode(mixed w3, mixed n, mixed v, mixed admin)

\core\classes\wm3Util.php at line 353

selectYesNo

public static void selectYesNo(mixed w3, mixed n, mixed v)

\core\classes\wm3Util.php at line 704

setIDToInt

public static void setIDToInt()

\core\classes\wm3Util.php at line 735

stripMagicQuotes

public static void stripMagicQuotes()

\core\classes\wm3Util.php at line 790

unquoteDB

public static void unquoteDB(mixed str)