/** * Method used to print the list of developers. * * @access public * @param resource $rpc_conn The connection resource * @param string $email The email address of the current user */ function printDeveloperList($rpc_conn, $auth) { $project_id = Command_Line::promptProjectSelection(&$rpc_conn, $auth); $msg = new XML_RPC_Message("getDeveloperList", array(new XML_RPC_Value($auth[0], 'string'), new XML_RPC_Value($auth[1], 'string'), new XML_RPC_Value($project_id, "int"))); $result = $rpc_conn->send($msg); if ($result->faultCode()) { Command_Line::quit($result->faultString()); } $developers = XML_RPC_decode($result->value()); echo "Available Developers:\n"; foreach ($developers as $name => $email) { echo "-> {$name} - {$email}\n"; } }