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 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

selectVisibility(mixed w3, mixed group)

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 456

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 721

checkExtension

public static void checkExtension(mixed file, mixed ext)

\core\classes\wm3Util.php at line 672

checkMinimumVersion

public static void checkMinimumVersion(mixed v1, mixed v2)

\core\classes\wm3Util.php at line 729

cutExtension

public static void cutExtension(mixed file)

\core\classes\wm3Util.php at line 839

delayTime

public static void delayTime()

\core\classes\wm3Util.php at line 882

dieMessage

public static void dieMessage(mixed label, mixed msg)

\core\classes\wm3Util.php at line 591

generatePassword

public static void generatePassword()

\core\classes\wm3Util.php at line 13

getBBCodeArray

public static void getBBCodeArray()

\core\classes\wm3Util.php at line 143

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 714

getFileExists

public static void getFileExists(mixed first_file, mixed second_file)

\core\classes\wm3Util.php at line 583

getFirstFile

public static void getFirstFile(mixed path)

\core\classes\wm3Util.php at line 105

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 864

getPhpInformations

public static void getPhpInformations(mixed fl)

\core\classes\wm3Util.php at line 123

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 465

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 616

isAlphanumeric

public static void isAlphanumeric(mixed str, mixed n)

\core\classes\wm3Util.php at line 665

isApacheModuleLoaded

public static void isApacheModuleLoaded(mixed module)

\core\classes\wm3Util.php at line 646

isDate

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

\core\classes\wm3Util.php at line 604

isEmail

public static void isEmail(mixed email)

\core\classes\wm3Util.php at line 654

isFolderWritable

public static void isFolderWritable(mixed path)

\core\classes\wm3Util.php at line 634

isImageUrl

public static void isImageUrl(mixed url)

\core\classes\wm3Util.php at line 640

isImageUrlRelative

public static void isImageUrlRelative(mixed url)

\core\classes\wm3Util.php at line 598

isInteger

public static void isInteger(mixed num)

\core\classes\wm3Util.php at line 610

isLogin

public static void isLogin(mixed login)

\core\classes\wm3Util.php at line 622

isUrl

public static void isUrl(mixed url)

\core\classes\wm3Util.php at line 628

isUrlRelative

public static void isUrlRelative(mixed url)

\core\classes\wm3Util.php at line 333

makeLink

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

\core\classes\wm3Util.php at line 487

makePercentageBar

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

\core\classes\wm3Util.php at line 471

makeStars

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

\core\classes\wm3Util.php at line 328

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 832

microtimeFloat

public static void microtimeFloat()

\core\classes\wm3Util.php at line 741

parseSearchFilter

public static void parseSearchFilter()

\core\classes\wm3Util.php at line 846

quoteDB

public static void quoteDB(mixed str)

\core\classes\wm3Util.php at line 302

quoteHTML

public static void quoteHTML(mixed s, mixed only_quote)

\core\classes\wm3Util.php at line 90

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 522

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 532

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 341

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 390

selectAlign

public static void selectAlign(mixed w3)

\core\classes\wm3Util.php at line 397

selectAlignImage

public static void selectAlignImage(mixed w3)

\core\classes\wm3Util.php at line 404

selectArray

public static void selectArray(mixed _L, mixed _V)

\core\classes\wm3Util.php at line 413

selectArrayEquals

public static void selectArrayEquals(mixed _V)

\core\classes\wm3Util.php at line 422

selectDirectory

public static void selectDirectory(mixed path, mixed dir_only)

\core\classes\wm3Util.php at line 383

selectGender

public static void selectGender(mixed w3)

\core\classes\wm3Util.php at line 351

selectRenderMode

public static void selectRenderMode(mixed w3, mixed admin)

\core\classes\wm3Util.php at line 367

selectVisibility

public static void selectVisibility(mixed w3, mixed group)

\core\classes\wm3Util.php at line 376

selectYesNo

public static void selectYesNo(mixed w3)

\core\classes\wm3Util.php at line 766

setIDToInt

public static void setIDToInt()

\core\classes\wm3Util.php at line 797

stripMagicQuotes

public static void stripMagicQuotes()

\core\classes\wm3Util.php at line 855

unquoteDB

public static void unquoteDB(mixed str)

\core\classes\wm3Util.php at line 577

useTinyMCE

public static void useTinyMCE()