MCMSTools

class MCMSTools extends MCMSObject

Třída obsahující pomocné nástroje


function PrintPaging( $type, $extraparam='', $pclass='', $listing, $xtcnt='tcnt', $xlfrom='lfrom', $xlcount='lcount', $lfile='index.php', $usrcounttxt='' )


$type:
$extraparam='':
$pclass='':
$listing:
$xtcnt='tcnt':
$xlfrom='lfrom':
$xlcount='lcount':
$lfile='index.php':
$usrcounttxt='':

function CreatePaging( $type, $extraparam='', $pclass='', $listing, $xtcnt='tcnt', $xlfrom='lfrom', $xlcount='lcount', $lfile='index.php', $usrcounttxt='' )


$type:
$extraparam='':
$pclass='':
$listing:
$xtcnt='tcnt':
$xlfrom='lfrom':
$xlcount='lcount':
$lfile='index.php':
$usrcounttxt='':

function SignForm()

function SignFormCanExec( $sign )


$sign:

function SignFormExec( $sign )


$sign:

function MonthName( $id )


$id:

function DayName( $id )


$id:

function StrToLower( $str )


$str:

function StrToUpper( $str )


$str:

function UCFirstWord( $str )


$str:

function ActivateLinks( $itext, $innewwin, $protectmail )


$itext:
$innewwin:
$protectmail:

function UnicodeDecode( $code )


$code:

function Censor( $itext, $reptext='.....' )


$itext:
$reptext='.....':

function SplitURL( $url )


$url:

function CropSentence( $s, $maxchars, $postfix='', $ptitle )


$s:
$maxchars:
$postfix='':
$ptitle:

function AdjustText( $text )


$text:

function ProtectInputString( $text, $allowedtags )


$text:
$allowedtags:

function Array2XML( $a, $dprefix )


$a:
$dprefix:

function XML2Array( $data )


$data:

function DebugInfo( $msg, $type, $toemail )


$msg:
$type:
$toemail:

string function removediacritics( string $s )

Odstraní diakritiku
$s: vstup

bool function strcmpme( string $s1, string $s2 [ , int $maxerrors ] )

Porovnává dva stejně dlouhé řetězce s možným překlepem (lze použít pro hledání v druhé fázi pokud nebyla nalezena absolutní shoda)
$s1: vstup 1
$s2: vstup 2
$maxerrors: počet povolených chyb [ 1 ]

function EmptyDir( $dir, $deleteroot )


$dir:
$deleteroot:

function GoogleGeoCodingLatLng( $address )


$address:

function GoogleTranslate( $text, $source, $target )


$text:
$source:
$target:

function ValidateEmail( $email, $sender='', $debug=false )


$email:
$sender='':
$debug=false: