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

getFileExists(mixed first_file, mixed second_file)

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

helpButton(mixed file, mixed help, mixed alt, mixed width, mixed height, mixed path, mixed border, mixed align)

static void

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

static void

inputFile(mixed n, mixed v, mixed s)

static void

inputHidden(mixed n, mixed v, mixed id, mixed js)

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

inputReset(mixed n, mixed v, mixed id, mixed js, mixed disabled)

static void

inputSubmit(mixed n, mixed v, mixed id, mixed js, mixed disabled)

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

isAlphanumeric(mixed str, mixed n)

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

isLogin(mixed login)

static void

isUrl(mixed url)

static void

isUrlRelative(mixed url)

static void

makeLink(mixed w3, mixed url, mixed text, mixed target)

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(mixed w3)

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, mixed extra)

static void

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

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 515

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 766

checkExtension

public static void checkExtension(mixed file, mixed ext)

\core\classes\wm3Util.php at line 387

checkboxEnabled

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

\core\classes\wm3Util.php at line 774

cutExtension

public static void cutExtension(mixed file)

\core\classes\wm3Util.php at line 884

delayTime

public static void delayTime()

\core\classes\wm3Util.php at line 927

dieMessage

public static void dieMessage(mixed label, mixed msg)

\core\classes\wm3Util.php at line 695

generatePassword

public static void generatePassword()

\core\classes\wm3Util.php at line 13

getBBCodeArray

public static void getBBCodeArray()

\core\classes\wm3Util.php at line 125

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 759

getFileExists

public static void getFileExists(mixed first_file, mixed second_file)

\core\classes\wm3Util.php at line 687

getFirstFile

public static void getFirstFile(mixed path)

\core\classes\wm3Util.php at line 87

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 909

getPhpInformations

public static void getPhpInformations(mixed fl)

\core\classes\wm3Util.php at line 105

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 524

helpButton

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

\core\classes\wm3Util.php at line 315

inputCheckbox

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

\core\classes\wm3Util.php at line 352

inputFile

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

\core\classes\wm3Util.php at line 372

inputHidden

public static void inputHidden(mixed n, mixed v, mixed id, mixed js)

\core\classes\wm3Util.php at line 340

inputOption

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

\core\classes\wm3Util.php at line 334

inputPassword

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

\core\classes\wm3Util.php at line 321

inputRadio

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

\core\classes\wm3Util.php at line 365

inputReset

public static void inputReset(mixed n, mixed v, mixed id, mixed js, mixed disabled)

\core\classes\wm3Util.php at line 358

inputSubmit

public static void inputSubmit(mixed n, mixed v, mixed id, mixed js, mixed disabled)

\core\classes\wm3Util.php at line 327

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 346

inputTextArea

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

\core\classes\wm3Util.php at line 718

isAlphanumeric

public static void isAlphanumeric(mixed str, mixed n)

\core\classes\wm3Util.php at line 707

isEmail

public static void isEmail(mixed email)

\core\classes\wm3Util.php at line 748

isFolderWritable

public static void isFolderWritable(mixed path)

\core\classes\wm3Util.php at line 736

isImageUrl

public static void isImageUrl(mixed url)

\core\classes\wm3Util.php at line 742

isImageUrlRelative

public static void isImageUrlRelative(mixed url)

\core\classes\wm3Util.php at line 702

isInteger

public static void isInteger(mixed num)

\core\classes\wm3Util.php at line 712

isLogin

public static void isLogin(mixed login)

\core\classes\wm3Util.php at line 724

isUrl

public static void isUrl(mixed url)

\core\classes\wm3Util.php at line 730

isUrlRelative

public static void isUrlRelative(mixed url)

\core\classes\wm3Util.php at line 379

makeLink

public static void makeLink(mixed w3, mixed url, mixed text, mixed target)

\core\classes\wm3Util.php at line 530

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 592

makePercentageBar

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

\core\classes\wm3Util.php at line 576

makeStars

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

\core\classes\wm3Util.php at line 310

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 877

microtimeFloat

public static void microtimeFloat()

\core\classes\wm3Util.php at line 786

parseSearchFilter

public static void parseSearchFilter()

\core\classes\wm3Util.php at line 891

quoteDB

public static void quoteDB(mixed str)

\core\classes\wm3Util.php at line 284

quoteHTML

public static void quoteHTML(mixed s, mixed only_quote)

\core\classes\wm3Util.php at line 72

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 627

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 637

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 393

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(mixed w3)

Render all the constants used by java script


\core\classes\wm3Util.php at line 433

selectAlign

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

\core\classes\wm3Util.php at line 442

selectAlignImage

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

\core\classes\wm3Util.php at line 451

selectArray

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

\core\classes\wm3Util.php at line 464

selectArrayEquals

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

\core\classes\wm3Util.php at line 479

selectDirectory

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

\core\classes\wm3Util.php at line 424

selectGender

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

\core\classes\wm3Util.php at line 399

selectRenderMode

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

\core\classes\wm3Util.php at line 415

selectYesNo

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

\core\classes\wm3Util.php at line 811

setIDToInt

public static void setIDToInt()

\core\classes\wm3Util.php at line 842

stripMagicQuotes

public static void stripMagicQuotes()

\core\classes\wm3Util.php at line 900

unquoteDB

public static void unquoteDB(mixed str)