array_diff_byId [line 881]
map: array_diff_byId(
$testcase_id: $arrAll, $tree_manager: $arrPart, $cfield_manager: 2
)
|
|
Initiate the execution of a testcase through XML Server RPCs.
All the object instantiations are done here. XML-RPC Server Settings need to be configured using the custom fields feature. Three fields each for testcase level and testsuite level are required. The fields are: server_host, server_port and server_path. Precede 'tc_' for custom fields assigned to testcase level.
Parameters:
|
$cfield_manager: |
2: |
Custom Field manager object, to read the XML-RPC server params. |
|
$testcase_id: |
$arrAll: |
The testcase id of the testcase to be executed |
|
$tree_manager: |
$arrPart: |
The tree manager object to read node values and testcase and parent ids. |
API Tags:
| Return: | keys: 'result','notes','message' values: 'result' -> (Pass, Fail or Blocked) 'notes' -> Notes text 'message' -> Message from server |
checkSessionValid [line 230]
void checkSessionValid(
&$db
)
|
|
Verify if user is log in. Redirect to login page if not.
Parameters:
checkUserRightsFor [line 1051]
void checkUserRightsFor(
&$db, $pfn
)
|
|
Parameters:
check_string [line 557]
1: check_string(
string $str2check, $ereg_forbidden_chars, string $ereg_forbidden_chars:
)
|
|
Parameters:
|
string |
$str2check: |
|
|
string |
$ereg_forbidden_chars:: |
regular expression |
|
|
$ereg_forbidden_chars: |
|
API Tags:
| Return: | check ok, 0:check KO |
config_get [line 608]
void config_get(
$config_id
)
|
|
Parameters:
doDBConnect [line 126]
assoc doDBConnect(
&$db
)
|
|
TestLink connects to the database
Parameters:
API Tags:
| Return: | array aa['status'] = 1 -> OK , 0 -> KO aa['dbms_msg''] = 'ok', or $db->error_msg(). 20050416 - fm |
doSessionStart [line 281]
downloadContentsToFile [line 655]
void downloadContentsToFile(
string $content, string $fileName
)
|
|
Builds the header needed to make the content available for downloading
Parameters:
|
string |
$content: |
the content which should be downloaded |
|
string |
$fileName: |
the filename |
getFileUploadErrorMessage [line 966]
string getFileUploadErrorMessage(
array $fInfo
)
|
|
Checks $_FILES for errors while uploading
Parameters:
|
array |
$fInfo: |
an array used by uploading files ($_FILES) |
API Tags:
| Return: | containing an error message (if any) |
init_labels [line 750]
void init_labels(
$map_code_label
)
|
|
Parameters:
ini_get_bool [line 765]
void ini_get_bool(
$p_name
)
|
|
Get the named php ini variable but return it as a bool
Parameters:
Information Tags:
| Author: | Copyright (C) 2000 - 2004 Mantis Team, Kenzaburo Ito |
isValidISODateTime [line 1038]
void isValidISODateTime(
$ISODateTime
)
|
|
Parameters:
is_blank [line 636]
Return true if the parameter is an empty string or a string
containing only whitespace, false otherwise
Parameters:
Information Tags:
| Author: | Copyright (C) 2000 - 2004 Mantis Team, Kenzaburo Ito |
localize_dateOrTimeStamp [line 534]
void localize_dateOrTimeStamp(
$params, &$smarty, $what, $value
)
|
|
Parameters:
|
|
$params: |
|
|
|
&$smarty: |
|
|
|
$what: |
|
|
|
$value: |
|
localize_date_smarty [line 502]
void localize_date_smarty(
$params, &$smarty
)
|
|
Parameters:
localize_timestamp_smarty [line 514]
void localize_timestamp_smarty(
$params, &$smarty
)
|
|
Parameters:
microtime_float [line 733]
my_array_intersect_keys [line 713]
void my_array_intersect_keys(
$array1, $array2
)
|
|
Parameters:
Information Tags:
printPageStatistics [line 85]
void printPageStatistics(
$startupMemory, $startupTime
)
|
|
Parameters:
|
|
$startupMemory: |
|
|
|
$startupTime: |
|
redirect [line 424]
void redirect(
string $path, [string $level = 'location']
)
|
|
Redirect page to another one
Parameters:
|
string |
$path: |
URL of required page |
|
string |
$level: |
Browser location - use for redirection or refresh of another frame Default: 'location' |
setPaths [line 221]
Set home URL path
Information Tags:
| Todo: | solve problems after session expires 200806 - havlatm - removed rpath |
setSessionTestPlan [line 198]
void setSessionTestPlan(
array $tplan_info
)
|
|
Set session data related to the current test plan
Parameters:
|
array |
$tplan_info: |
result of DB query |
setSessionTestProject [line 164]
void setSessionTestProject(
array $tproject_info
)
|
|
Set session data related to the current test project
Parameters:
|
array |
$tproject_info: |
result of DB query |
set_dt_formats [line 578]
show_instructions [line 995]
N/A show_instructions(
string $key, [ $refreshTree = 0]
)
|
|
Parameters:
|
string |
$key: |
keyword for finding exact html text in definition array |
|
|
$refreshTree: |
|
API Tags:
| Abstract: | redirect to a page with static html defined in locale/en_GB/texts.php |
strings_stripSlashes [line 440]
string strings_stripSlashes(
string $parameter, [ $bGPC = true]
)
|
|
Security parser for input strings
Parameters:
|
string |
$parameter: |
|
|
|
$bGPC: |
|
API Tags:
| Return: | cleaned parameter |
templateConfiguration [line 1013]
void templateConfiguration(
)
|
|
testlinkInitPage [line 379]
void testlinkInitPage(
&$db, [boolean $initProject = FALSE], [boolean $bDontCheckSession = false], [ $userRightsCheckFunction = null], integer $db
)
|
|
General page initialization procedure
- init session
- init database
- check rights
Parameters:
|
integer |
$db: |
DB connection identifier |
|
boolean |
$initProject: |
(optional) Set true if adjustment of Product or Test Plan is required; default is FALSE |
|
boolean |
$bDontCheckSession: |
(optional) Set to true if no session should be started |
|
|
&$db: |
|
|
|
$userRightsCheckFunction: |
|
to_boolean [line 466]
void to_boolean(
$alt_boolean
)
|
|
Parameters:
transform_nodes_order [line 941]
void transform_nodes_order(
$nodes_order, [ $node_to_exclude = null]
)
|
|
Parameters:
|
|
$nodes_order: |
|
|
|
$node_to_exclude: |
|
translate_tc_status [line 675]
void translate_tc_status(
$status_code
)
|
|
Parameters:
Information Tags:
| TODO: | martin: move the next two functions to appropriate class + describe |
translate_tc_status_smarty [line 692]
void translate_tc_status_smarty(
$params, &$smarty
)
|
|
Parameters:
trim_and_limit [line 927]
string trim_and_limit(
string $s, [int $len = 100]
)
|
|
trim string and limit to N chars
Parameters:
|
string |
$s: |
|
|
int |
$len: |
[len]: how many chars return |
API Tags:
Information Tags:
| Author: | Francisco Mancardi - 20050905 - refactoring |
upd_session_tplan_tproject [line 301]
void upd_session_tplan_tproject(
&$db, $hash_user_sel
)
|
|
Parameters:
__autoload [line 109]
void __autoload(
$class_name
)
|
|
Parameters: