[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/core/ -> prepare_api.php (summary)

Prepare API Handles preparation of strings prior to be printed or stored.

Copyright: Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
Copyright: Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net
File Size: 106 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  prepare_email_link()
  prepare_user_name()
  prepare_version_string()

Functions
Functions that are not part of a class:

prepare_email_link( $p_email, $p_text )   X-Ref
return the mailto: href string link

param: string $p_email
param: string $p_text
return: string

prepare_user_name( $p_user_id )   X-Ref
prepares the name of the user given the id.  also makes it an email link.

param: int $p_user_id
return: string

prepare_version_string( $p_project_id, $p_version_id )   X-Ref
A function that prepares the version string for outputting to the user on view / print issue pages.
This function would add the version date, if appropriate.

param: integer $p_project_id  The project id.
param: integer $p_version_id  The version id.  If false then this method will return an empty string.
return: The formatted version string.



Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7