phpDocumentor Testlink
[ class tree: Testlink ] [ index: Testlink ] [ all elements ]

Class: requirement_mgr

Source Location: /requirement_mgr.class.php

Class requirement_mgr

Property Summary
mixed   $cfield_mgr  
mixed   $db  
mixed   $my_node_type  
mixed   $nodes_hierarchy_table  
mixed   $object_table  
mixed   $requirement_spec_table  
mixed   $req_coverage_table  
mixed   $tree_mgr  

[ Top ]
Method Summary
requirement_mgr   requirement_mgr()  
void   assign_to_tcase()  
void   bulk_assignment()  
void   check_basic_data()  
void   check_title()  
void   create()  
void   create_tc_from_requirement()  
void   delete()  
string   exportReqToXML()   exportReqToXML
void   get_all_for_tcase()  
void   get_by_docid()  
void   get_by_id()  
void   get_by_title()  
assoc_array   get_coverage()   collect coverage of Requirement
void   get_linked_cfields()  
void   get_relationships()  
void   html_table_of_custom_field_inputs()  
void   html_table_of_custom_field_values()  
void   set_order()  
void   unassign_from_tcase()  
void   update()  
void   values_to_db()  
void   xmlToMapRequirement()   xmlToMapRequirement

[ Top ]
Properties
mixed   $cfield_mgr [line 29]

[ Top ]
mixed   $db [line 28]

Redefinition of:
tlObjectWithDB::$db

[ Top ]
mixed   $my_node_type [line 37]

[ Top ]
mixed   $nodes_hierarchy_table = "nodes_hierarchy" [line 34]

[ Top ]
mixed   $object_table = 'requirements' [line 31]

[ Top ]
mixed   $requirement_spec_table = 'req_specs' [line 32]

[ Top ]
mixed   $req_coverage_table = "req_coverage" [line 33]

[ Top ]
mixed   $tree_mgr [line 38]

[ Top ]
Methods
Constructor requirement_mgr  [line 49]

  requirement_mgr requirement_mgr( &$db  )

Parameters:
   &$db: 


[ Top ]
assign_to_tcase  [line 556]

  void assign_to_tcase( $req_id, $testcase_id  )

Parameters:
   $req_id: 
   $testcase_id: 


[ Top ]
bulk_assignment  [line 638]

  void bulk_assignment( $req_id, $testcase_id  )

Parameters:
   $req_id: 
   $testcase_id: 


[ Top ]
check_basic_data  [line 355]

  void check_basic_data( $srs_id, $title, $reqdoc_id, [ $id = null]  )

Parameters:
   $srs_id: 
   $title: 
   $reqdoc_id: 
   $id: 


[ Top ]
check_title  [line 754]

  void check_title( $title  )

Parameters:
   $title: 


[ Top ]
create  [line 125]

  void create( $srs_id, $reqdoc_id, $title, $scope, $user_id, [ $status = TL_REQ_STATUS_VALID], [ $type = TL_REQ_STATUS_NOT_TESTABLE]  )

Parameters:
   $srs_id: 
   $reqdoc_id: 
   $title: 
   $scope: 
   $user_id: 
   $status: 
   $type: 


[ Top ]
create_tc_from_requirement  [line 465]

  void create_tc_from_requirement( $mixIdReq, $srs_id, $user_id  )

Parameters:
   $mixIdReq: 
   $srs_id: 
   $user_id: 


[ Top ]
delete  [line 255]

  void delete( $id  )

Parameters:
   $id: 


[ Top ]
exportReqToXML  [line 805]

  string exportReqToXML( int $id, [ $tproject_id = null], int $tproject_id:  )

exportReqToXML

Parameters:
int   $id:  requirement id
int   $tproject_id::  optional default null. useful to get custom fields (when this feature will be developed).
   $tproject_id: 

API Tags:
Return:  with XML code


[ Top ]
get_all_for_tcase  [line 715]

  void get_all_for_tcase( $testcase_id, [ $srs_id = 'all']  )

Parameters:
   $testcase_id: 
   $srs_id: 


[ Top ]
get_by_docid  [line 408]

  void get_by_docid( $reqdoc_id, [ $srs_id = null]  )

Parameters:
   $reqdoc_id: 
   $srs_id: 


[ Top ]
get_by_id  [line 73]

  void get_by_id( $id  )

Parameters:
   $id: 


[ Top ]
get_by_title  [line 429]

  void get_by_title( $title, [ $ignore_case = 0]  )

Parameters:
   $title: 
   $ignore_case: 


[ Top ]
get_coverage  [line 324]

  assoc_array get_coverage( $id, string $req_id  )

collect coverage of Requirement

Parameters:
string   $req_id:  ID of req.
   $id: 

API Tags:
Return:  

list of test cases [id, title]

rev: 20080226 - franciscom - get test case external id



[ Top ]
get_linked_cfields  [line 922]

  void get_linked_cfields( $id, [ $parent_id = null]  )

Parameters:
   $id: 
   $parent_id: 


[ Top ]
get_relationships  [line 688]

  void get_relationships( $req_id  )

Parameters:
   $req_id: 


[ Top ]
html_table_of_custom_field_inputs  [line 966]

  void html_table_of_custom_field_inputs( $id, [ $parent_id = null], [ $name_suffix = '']  )

Parameters:
   $id: 
   $parent_id: 
   $name_suffix: 


[ Top ]
html_table_of_custom_field_values  [line 1003]

  void html_table_of_custom_field_values( $id  )

Parameters:
   $id: 


[ Top ]
set_order  [line 775]

  void set_order( $map_id_order  )

Parameters:
   $map_id_order: 


[ Top ]
unassign_from_tcase  [line 606]

  void unassign_from_tcase( $req_id, $testcase_id  )

Parameters:
   $req_id: 
   $testcase_id: 


[ Top ]
update  [line 186]

  void update( $id, $reqdoc_id, $title, $scope, $user_id, $status, $type, [ $skip_controls = 0]  )

Parameters:
   $id: 
   $reqdoc_id: 
   $title: 
   $scope: 
   $user_id: 
   $status: 
   $type: 
   $skip_controls: 


[ Top ]
values_to_db  [line 1061]

  void values_to_db( $hash, $node_id, [ $cf_map = null], [ $hash_type = null]  )

Parameters:
   $hash: 
   $node_id: 
   $cf_map: 
   $hash_type: 


[ Top ]
xmlToMapRequirement  [line 835]

  void xmlToMapRequirement( $xml_item  )

xmlToMapRequirement

Parameters:
   $xml_item: 


[ Top ]

Documentation generated on Fri, 03 Apr 2009 14:13:48 +0200 by phpDocumentor 1.4.1