CoreAPI
[ class tree: CoreAPI ] [ index: CoreAPI ] [ all elements ]

Procedural File: prepare_api.php

Source Location: /core/prepare_api.php



Page Details:

this file handles preparing of strings like to be printed or stored. print_api.php will gradually be replaced by think calls to echo the results of functions implemented here.



Tags:

copyright:  Copyright (C) 2002 - 2010 MantisBT Team - mantisbt-dev@lists.sourceforge.net
copyright:  Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
link:  http://www.mantisbt.org








prepare_email_link [line 34]

string prepare_email_link( string $p_email, string $p_text)

return the mailto: href string link



Parameters

string   $p_email  
string   $p_text  
[ Top ]



prepare_user_name [line 53]

string prepare_user_name( int $p_user_id)

prepares the name of the user given the id. also makes it an email link.



Parameters

int   $p_user_id  
[ Top ]



prepare_version_string [line 79]

The prepare_version_string( integer $p_project_id, integer $p_version_id)

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.




Tags:

return:  formatted version string.


Parameters

integer   $p_project_id   The project id.
integer   $p_version_id   The version id. If false then this method will return an empty string.
[ Top ]



Documentation generated on Sun, 12 Dec 2010 23:50:45 +0900 by phpDocumentor 1.4.3
inserted by FC2 system