PHP Class AdminPageFramework_Utility_String

Inheritance: extends AdminPageFramework_Utility_VariableType
Datei anzeigen Open project: michaeluno/admin-page-framework Class Usage Examples

Public Methods

Method Description
fixNumber ( $nToFix, $nDefault, $nMin = '', $nMax = '' )
getCSSMinified ( $sCSSRules )
getLengthSanitized ( $sLength, $sUnit = 'px' )
getNumberFixed ( $nToFix, $nDefault, $nMin = '', $nMax = '' )
getNumberOfReadableSize ( $nSize )
getPrefixRemoved ( $sString, $sPrefix )
getReadableBytes ( $nBytes )
getStringLength ( $sString )
getSuffixRemoved ( $sString, $sSuffix )
hasPrefix ( $sNeedle, $sHaystack )
hasSuffix ( $sNeedle, $sHaystack )
sanitizeSlug ( $sSlug )
sanitizeString ( $sString )

Method Details

fixNumber() public static method

public static fixNumber ( $nToFix, $nDefault, $nMin = '', $nMax = '' )

getCSSMinified() public static method

public static getCSSMinified ( $sCSSRules )

getLengthSanitized() public static method

public static getLengthSanitized ( $sLength, $sUnit = 'px' )

getNumberFixed() public static method

public static getNumberFixed ( $nToFix, $nDefault, $nMin = '', $nMax = '' )

getNumberOfReadableSize() public static method

public static getNumberOfReadableSize ( $nSize )

getPrefixRemoved() public static method

public static getPrefixRemoved ( $sString, $sPrefix )

getReadableBytes() public static method

public static getReadableBytes ( $nBytes )

getStringLength() public static method

public static getStringLength ( $sString )

getSuffixRemoved() public static method

public static getSuffixRemoved ( $sString, $sSuffix )

hasPrefix() public static method

public static hasPrefix ( $sNeedle, $sHaystack )

hasSuffix() public static method

public static hasSuffix ( $sNeedle, $sHaystack )

sanitizeSlug() public static method

public static sanitizeSlug ( $sSlug )

sanitizeString() public static method

public static sanitizeString ( $sString )