Lines Matching +full:fetch +full:- +full:depth

23 		$this->login = $login;
24 $this->password = $password;
29 * Fetch dependency tree
36 public function getBugDependencyTrees( $ids, $depth, $extras ) { argument
38 …return $this->getDependenciesRecursive( $f_ids, $depth == -1 ? $this->getConf('tree_depth') : $dep…
40 private function getDependenciesRecursive( $ids, $depth, $extras ) { argument
41 …$includeFields = array_merge( $this->includeFields, $this->extrasToIncludeFields($extras), array('…
42 …$response = $this->bugzillaRPC('Bug.get', array('ids' => $ids, 'include_fields' => $includeFields …
49 $bug['depends_on'] = $this->getDependenciesRecursive( $bug['depends_on'], $depth--, $extras );
111 if ( preg_match('/product:([A-Za-z0-9_,]+)/', $query, $m) ) {
114 if ( preg_match('/component:([A-Za-z0-9_,]+)/', $query, $m) ) {
117 if ( preg_match('/classification:([A-Za-z0-9_,]+)/', $query, $m) ) {
120 $r = $this->bugzillaRPC('Classification.get', array('names' => $c ) );
130 if ( preg_match('/status:([A-Za-z0-9,]+)/', $query, $m) ) {
133 if ( preg_match('/resolution:([A-Za-z0-9,]+)/', $query, $m) ) {
136 if ( preg_match('/summary:([A-Za-z0-9,]+)/', $query, $m) ) {
139 if ( preg_match('/assigned_to:([A-Za-z0-9_,@.]+)/', $query, $m) ) {
142 if ( preg_match('/creator:([A-Za-z0-9_,@.]+)/', $query, $m) ) {
145 if ( preg_match('/version:([A-Za-z0-9_\-\.]+)/', $query, $m) ) {
148 if ( preg_match('/target_milestone:([A-Za-z0-9_.-]+)/', $query, $m) ) {
178 …$options['include_fields'] = array_merge( $this->includeFields, $this->extrasToIncludeFields($extr…
185 $response = $this->bugzillaRPC('Bug.search', $options );
186 …$result = in_array('dependencies', $extras) ? $this->fetchDependencies( $response['bugs'] ) : $res…
193 if ( $c == 0 ) return $a['id'] < $b['id'] ? -1 : 1;
205 * Fetch info about several bugs.
215 $includeFields = array_merge( $this->includeFields, $this->extrasToIncludeFields($extras) );
220 // fetch bug infos
222 …$response = $this->bugzillaRPC('Bug.get', array('ids' => $f_ids, 'include_fields' => $includeField…
233 …$response = $this->bugzillaRPC('Bug.get', array('ids' => $f_id, 'include_fields' => $includeFields…
236 $result["$f_id"] = array( 'id' => "$f_id", 'error' => $ee->getMessage() );
241 // fetch extra dependency info?
242 return in_array('dependencies', $extras) ? $this->fetchDependencies( $result ) : $result;
286 * @param array $bugs - associative array with bug id as key
301 // fetch status of all dependencies
302 …$response = $this->bugzillaRPC('Bug.get', array('ids' => $dependencies, 'include_fields' => array(…
336 if ( !!$this->login && !!$this->password ) {
337 $params["Bugzilla_login"] = $this->login;
338 $params["Bugzilla_password"] = $this->password;
347 'header' => array("Content-Type: text/xml"),
348 'content' => $this->xmlrpc_encode_request($method, $params)
350 $response = @file_get_contents($this->getConf('bugzilla_baseurl').'/xmlrpc.cgi', false, $context);
357 $result = $this->xmlrpc_decode( $response );
360 if ( $this->xmlrpc_is_fault($result) ) {
377 $x = '<?xml version="1.0" encoding="iso-8859-1"?>' . "\n";
412 if ( $x->fault->value->struct ) {
413 return $this->xmlrpc_decode_node( $x->fault->value->struct );
415 return $this->xmlrpc_decode_node( $x->params->param->value->struct );
420 if ( $node->getName() == 'int' ) {
421 return (int) $node->__toString();
423 else if ( $node->getName() == 'string' ) {
424 return $node->__toString();
426 else if ( $node->getName() == 'array' ) {
428 foreach ( $node->data->value as $i ) {
429 $a[] = $this->xmlrpc_decode_node( $i->children()[0] );
433 else if ( $node->getName() == 'struct' ) {
435 foreach ( $node->member as $i ) {
436 $k = $i->name->__toString();
437 $v = $this->xmlrpc_decode_node( $i->value->children()[0] );