PHP Class Ip\Internal\Design\Helper

Show file Open project: impresspages/impresspages Class Usage Examples

Public Methods

Method Description
cpDir ( $source, $destination )
generateAdminUrl ( $moduleId )
getConfigurationBoxHtml ( )
getFirstDir ( $path )
instance ( ) : Helper
json_clean_decode ( string $json, boolean $assoc = false, integer $depth = 512, integer $options ) : string Clean comments of json content and decode it with json_decode().

Protected Methods

Method Description
__construct ( )

Private Methods

Method Description
backendSecurityToken ( )
removeTrailingSlash ( $path )

Method Details

__construct() protected method

protected __construct ( )

cpDir() public method

public cpDir ( $source, $destination )

generateAdminUrl() public method

public generateAdminUrl ( $moduleId )

getConfigurationBoxHtml() public static method

public static getConfigurationBoxHtml ( )

getFirstDir() public method

public getFirstDir ( $path )

instance() public static method

public static instance ( ) : Helper
return Helper

json_clean_decode() public method

Work like the original php json_decode() function with the same params
public json_clean_decode ( string $json, boolean $assoc = false, integer $depth = 512, integer $options ) : string
$json string The json string being decoded
$assoc boolean When TRUE, returned objects will be converted into associative arrays.
$depth integer User specified recursion depth. (>=5.3)
$options integer Bitmask of JSON decode options. (>=5.4)
return string