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

static void

checkExtension(mixed file, mixed ext)

static void

checkMinimumVersion(mixed v1, mixed v2)

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

isAlphanumeric(mixed str, mixed n)

static void

isApacheModuleLoaded(mixed module)

static void

isDate(mixed date, mixed year_from, mixed year_to)

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

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

static void

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

static String

renderJavaScriptConstants(webmatic3 w3)

Render all the constants used by java script

static void

selectAlign(mixed w3)

static void

selectAlignImage(mixed w3)

static void

selectArray(mixed _L, mixed _V)

static void

selectArrayEquals(mixed _V)

static void

selectDirectory(mixed path, mixed dir_only)

static void

selectGender(mixed w3)

static void

selectRenderMode(mixed w3, mixed admin)

static void

selectYesNo(mixed w3)

static void

setIDToInt()

static void

stripMagicQuotes()

static void

unquoteDB(mixed str)

static void

useTinyMCE()

Constructor Detail

\core\classes\wm3Util.php at line 11

wm3Util

public wm3Util()

Method Detail

\core\classes\wm3Util.php at line 439

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

\core\classes\wm3Util.php at line 703

checkExtension

public static void checkExtension(mixed file, mixed ext)

\core\classes\wm3Util.php at line 654

checkMinimumVersion

public static void checkMinimumVersion(mixed v1, mixed v2)

\core\classes\wm3Util.php at line 711

cutExtension

public static void cutExtension(mixed file)

\core\classes\wm3Util.php at line 821

delayTime

public static void delayTime()

\core\classes\wm3Util.php at line 864

dieMessage

public static void dieMessage(mixed label, mixed msg)

\core\classes\wm3Util.php at line 574

generatePassword

public static void generatePassword()

\core\classes\wm3Util.php at line 13

getBBCodeArray

public static void getBBCodeArray()

\core\classes\wm3Util.php at line 135

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 696

getFileExists

public static void getFileExists(mixed first_file, mixed second_file)

\core\classes\wm3Util.php at line 566

getFirstFile

public static void getFirstFile(mixed path)

\core\classes\wm3Util.php at line 97

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 846

getPhpInformations

public static void getPhpInformations(mixed fl)

\core\classes\wm3Util.php at line 115

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 448

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 598

isAlphanumeric

public static void isAlphanumeric(mixed str, mixed n)

\core\classes\wm3Util.php at line 647

isApacheModuleLoaded

public static void isApacheModuleLoaded(mixed module)

\core\classes\wm3Util.php at line 628

isDate

public static void isDate(mixed date, mixed year_from, mixed year_to)

\core\classes\wm3Util.php at line 587

isEmail

public static void isEmail(mixed email)

\core\classes\wm3Util.php at line 636

isFolderWritable

public static void isFolderWritable(mixed path)

\core\classes\wm3Util.php at line 616

isImageUrl

public static void isImageUrl(mixed url)

\core\classes\wm3Util.php at line 622

isImageUrlRelative

public static void isImageUrlRelative(mixed url)

\core\classes\wm3Util.php at line 581

isInteger

public static void isInteger(mixed num)

\core\classes\wm3Util.php at line 592

isLogin

public static void isLogin(mixed login)

\core\classes\wm3Util.php at line 604

isUrl

public static void isUrl(mixed url)

\core\classes\wm3Util.php at line 610

isUrlRelative

public static void isUrlRelative(mixed url)

\core\classes\wm3Util.php at line 325

makeLink

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

\core\classes\wm3Util.php at line 470

makePercentageBar

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

\core\classes\wm3Util.php at line 454

makeStars

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

\core\classes\wm3Util.php at line 320

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 814

microtimeFloat

public static void microtimeFloat()

\core\classes\wm3Util.php at line 723

parseSearchFilter

public static void parseSearchFilter()

\core\classes\wm3Util.php at line 828

quoteDB

public static void quoteDB(mixed str)

\core\classes\wm3Util.php at line 294

quoteHTML

public static void quoteHTML(mixed s, mixed only_quote)

\core\classes\wm3Util.php at line 82

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 505

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 515

renderEditor

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

\core\classes\wm3Util.php at line 333

renderImg

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

\core\classes\wm3Util.php at line 23

renderJavaScriptConstants

public static String renderJavaScriptConstants(webmatic3 w3)

Render all the constants used by java script

Parameters:
w3 - a webmatic3 instance

\core\classes\wm3Util.php at line 373

selectAlign

public static void selectAlign(mixed w3)

\core\classes\wm3Util.php at line 380

selectAlignImage

public static void selectAlignImage(mixed w3)

\core\classes\wm3Util.php at line 387

selectArray

public static void selectArray(mixed _L, mixed _V)

\core\classes\wm3Util.php at line 396

selectArrayEquals

public static void selectArrayEquals(mixed _V)

\core\classes\wm3Util.php at line 405

selectDirectory

public static void selectDirectory(mixed path, mixed dir_only)

\core\classes\wm3Util.php at line 366

selectGender

public static void selectGender(mixed w3)

\core\classes\wm3Util.php at line 343

selectRenderMode

public static void selectRenderMode(mixed w3, mixed admin)

\core\classes\wm3Util.php at line 359

selectYesNo

public static void selectYesNo(mixed w3)

\core\classes\wm3Util.php at line 748

setIDToInt

public static void setIDToInt()

\core\classes\wm3Util.php at line 779

stripMagicQuotes

public static void stripMagicQuotes()

\core\classes\wm3Util.php at line 837

unquoteDB

public static void unquoteDB(mixed str)

\core\classes\wm3Util.php at line 560

useTinyMCE

public static void useTinyMCE()