/**
* createTracker - Create a specific tracker from data in the specified group
- * @param string Tracker type (bugs, support, ...)
- * @param Group The group which the tracker belongs to
- * @param array Tracker data from JSON
- * @return ArtifactType the tracker created
+ * @param string $tracker Tracker type (bugs, support, ...)
+ * @param Group $group The group which the tracker belongs to
+ * @param array $data Tracker data from JSON
+ * @return ArtifactType the tracker created
*/
function createTracker($tracker, $group, $data){
/**
* deleteTrackers - Delete all existing default trackers from a projet
- * @param Group A Group object
+ * @param Group $group A Group object
*/
function deleteTrackers($group){
$res = db_query_params ('SELECT group_artifact_id FROM artifact_group_list
/**
* addComments - Add followup comments to an Artifact Object
- * @param Artifact the artifact object where history should be added
- * @param array the artifact's data in json format (an array)
+ * @param Artifact $artifact the artifact object where history should be added
+ * @param array $jsonArtifact the artifact's data in json format (an array)
*/
function addComments($artifact, $jsonArtifact){
foreach($jsonArtifact['comments'] as $c){
/**
* addHistory - Add history of changes to an Artifact Object
- * @param Artifact the artifact object where history should be added
- * @param array the artifact's data in json format (an array)
+ * @param Artifact $artifact the artifact object where history should be added
+ * @param array $jsonArtifact the artifact's data in json format (an array)
*/
function addHistory($artifact, $jsonArtifact){
foreach($jsonArtifact['history'] as $h){
/**
* createArtifacts - Create all the artifacts for an ArtifactType from an array of data.
- * @param ArtifactType The ArtifactType object which the artifacts to be added belong to.
- * @param array The data of all the artifacts of the current Type (dictionary)
+ * @param ArtifactType $at The ArtifactType object which the artifacts to be added belong to.
+ * @param array $data The data of all the artifacts of the current Type (dictionary)
* @param $hashrn
* @param $hashlogin
*/
$assigned_to = 100;
} else {
$m = $hashrn[$artifact['assigned_to']];
- $assigned_to = user_get_object_by_mail($m)->getID();
+ $assigned_to = user_get_object_by_email($m)->getID();
//new dBug(array($m,$assigned_to));
}