Adds the customcode extractor class
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -3678,30 +3678,34 @@ abstract class ComponentbuilderHelper
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* prepare base64 string for url
|
||||
**/
|
||||
public static function base64_urlencode($string, $encode = false)
|
||||
{
|
||||
if ($encode)
|
||||
{
|
||||
$string = base64_encode($string);
|
||||
}
|
||||
return str_replace(array('+', '/'), array('-', '_'), $string);
|
||||
}
|
||||
|
||||
/**
|
||||
* prepare base64 string form url
|
||||
**/
|
||||
public static function base64_urldecode($string, $decode = false)
|
||||
{
|
||||
$string = str_replace(array('-', '_'), array('+', '/'), $string);
|
||||
if ($decode)
|
||||
{
|
||||
$string = base64_decode($string);
|
||||
}
|
||||
return $string;
|
||||
}
|
||||
/**
|
||||
* prepare base64 string for url
|
||||
*
|
||||
* @deprecate Use urlencode();
|
||||
*/
|
||||
public static function base64_urlencode($string, $encode = false)
|
||||
{
|
||||
if ($encode)
|
||||
{
|
||||
$string = base64_encode($string);
|
||||
}
|
||||
return str_replace(array('+', '/'), array('-', '_'), $string);
|
||||
}
|
||||
|
||||
/**
|
||||
* prepare base64 string form url
|
||||
*
|
||||
* @deprecate
|
||||
*/
|
||||
public static function base64_urldecode($string, $decode = false)
|
||||
{
|
||||
$string = str_replace(array('-', '_'), array('+', '/'), $string);
|
||||
if ($decode)
|
||||
{
|
||||
$string = base64_decode($string);
|
||||
}
|
||||
return $string;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user