/sources/override_api.php

Description
Functions
get_function_hash (line 28)

Find the MD5 hash of the space-stripped copy of function within the given code.

  • return: The MD5 hash (blank: no such function).
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).

  • return: Success status.
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).

  • return: Success status.
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).

  • return: Success status.
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).

  • return: Success status.
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.

  • return: Success status.
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.

Documentation generated on Sun, 02 Jan 2011 23:20:41 +0000 by phpDocumentor 1.4.3