get_function_hash (line 28)
Find the MD5 hash of the space-stripped copy of function within the given code.
MD5
get_function_hash
(string $code, string $function)
-
string
$code: The code.
-
string
$function: Name of the function.
insert_code_after__by_command (line 116)
Insert some code into a function in the given code snippet, by command (after command).
boolean
insert_code_after__by_command
(string &$code, string $function, string $command, string $newcode, [integer $instance_of_command = 1])
-
string
&$code: The code.
-
string
$function: Name of the function.
-
string
$command: The command we're searching to insert by.
-
string
$newcode: Code to insert.
-
integer
$instance_of_command: We are inserting at this instance of the line (i.e. takes into account a literal line of code may exist in other places in a function).
insert_code_after__by_linenum (line 74)
Insert some code into a function in the given code snippet, by line number (after line number).
boolean
insert_code_after__by_linenum
(string &$code, string $function, integer $linenum, string $newcode)
-
string
&$code: The code.
-
string
$function: Name of the function.
-
integer
$linenum: Line number relative to start of function.
-
string
$newcode: Code to insert.
insert_code_before__by_command (line 89)
Insert some code into a function in the given code snippet, by command (before command).
boolean
insert_code_before__by_command
(string &$code, string $function, string $command, string $newcode, [integer $instance_of_command = 1])
-
string
&$code: The code.
-
string
$function: Name of the function.
-
string
$command: The command we're searching to insert by.
-
string
$newcode: Code to insert.
-
integer
$instance_of_command: We are inserting at this instance of the line (i.e. takes into account a literal line of code may exist in other places in a function).
insert_code_before__by_linenum (line 48)
Insert some code into a function in the given code snippet, by line number (before line number).
boolean
insert_code_before__by_linenum
(string &$code, string $function, integer $linenum, string $newcode)
-
string
&$code: The code.
-
string
$function: Name of the function.
-
integer
$linenum: Line number relative to start of function.
-
string
$newcode: Code to insert.
remove_code (line 142)
Remove some code from a function in the given code snippet.
boolean
remove_code
(string &$code, string $function, string $command, [integer $instance_of_command = 1])
-
string
&$code: The code.
-
string
$function: Name of the function.
-
string
$command: The command we're searching to insert by.
-
integer
$instance_of_command: We remove the nth instance of this command.