Drush: includes/backend.inc File Reference

  1. 7.x doxygen/html/backend_8inc.html
  2. master doxygen/html/backend_8inc.html
backend.inc File Reference

Go to the source code of this file.

Functions

 drush_backend_set_result ($value)
 drush_backend_get_result ()
 drush_backend_output ()
 drush_backend_output_collect ($string)
 drush_backend_output_discard ($string)
 drush_backend_packet ($packet, $data)
 drush_backend_parse_output ($string, $backend_options=array(), $outputted=FALSE)
 _drush_backend_integrate ($data, $backend_options, $outputted)
 _drush_backend_integrate_log ($entry)
 _drush_backend_proc_open ($cmds, $process_limit, $context=NULL)
 _drush_backend_print_output ($output_string, $backend_options)
 drush_backend_parse_packets (&$string, &$remainder, $backend_options)
 drush_backend_packet_set_error ($data, $backend_options)
 _drush_backend_adjust_options ($site_record, $command, $command_options, $backend_options)
 drush_backend_invoke_concurrent ($invocations, $common_options=array(), $common_backend_options=array(), $default_command=NULL, $default_site=NULL, $context=NULL)
 _drush_backend_get_global_contexts ($site_record)
 _drush_backend_classify_options ($site_record, $command_options, &$backend_options)
 _drush_backend_invoke ($cmds, $common_backend_options=array(), $context=NULL)
 drush_backend_generate_sitealias ($backend_options)
 _drush_backend_generate_command ($site_record, $command, $args=array(), $command_options=array(), $backend_options=array())
 _drush_backend_argument_string ($data, $os=NULL)
 _drush_escape_option ($key, $value=TRUE, $os=NULL)
 _drush_backend_get_stdin ()

Variables

const DRUSH_BACKEND_OUTPUT_START = 'DRUSH_BACKEND_OUTPUT_START>>>'
const DRUSH_BACKEND_OUTPUT_DELIMITER = DRUSH_BACKEND_OUTPUT_START . '%s<<<DRUSH_BACKEND_OUTPUT_END'
const DRUSH_BACKEND_PACKET_START = "DRUSH_BACKEND:"
const DRUSH_BACKEND_PACKET_PATTERN = "\0" . DRUSH_BACKEND_PACKET_START . "%s\n\0"

Detailed Description

Drush backend API

When a drush command is called with the –backend option, it will buffer all output, and instead return a JSON encoded string containing all relevant information on the command that was just executed.

Through this mechanism, it is possible for Drush commands to invoke each other.

There are many cases where a command might wish to call another command in its own process, to allow the calling command to intercept and act on any errors that may occur in the script that was called.

A simple example is if there exists an 'update' command for running update.php on a specific site. The original command might download a newer version of a module for installation on a site, and then run the update script in a separate process, so that in the case of an error running a hook_update_n function, the module can revert to a previously made database backup, and the previously installed code.

By calling the script in a separate process, the calling script is insulated from any error that occurs in the called script, to the level that if a php code error occurs (ie: misformed file, missing parenthesis, whatever), it is still able to reliably handle any problems that occur.

This is nearly a RESTful API.

See Also
http://en.wikipedia.org/wiki/REST

Instead of : http://[server]/[apipath]/[command]?[arg1]=[value1],[arg2]=[value2]

It will call : [apipath] [command] –[arg1]=[value1] –[arg2]=[value2] –backend

[apipath] in this case will be the path to the drush.php file. [command] is the command you would call, for instance 'status'.

GET parameters will be passed as options to the script. POST parameters will be passed to the script as a JSON encoded associative array over STDIN.

Because of this standard interface, Drush commands can also be executed on external servers through SSH pipes, simply by prepending, 'ssh usern.nosp@m.ame@.nosp@m.serve.nosp@m.r.co.nosp@m.m' in front of the command.

If the key-based ssh authentication has been set up between the servers, this will just work. By default, drush is configured to disallow password authentication; if you would like to enter a password for every connection, then in your drushrc.php file, set $options['ssh-options'] so that it does NOT include '-o PasswordAuthentication=no'. See examples/example.drushrc.php.

The results from backend API calls can be fetched via a call to drush_backend_get_result().

Definition in file backend.inc.

Function Documentation

_drush_backend_adjust_options (   $site_record,
  $command,
  $command_options,
  $backend_options 
)

Default options for backend_invoke commands.

Definition at line 598 of file backend.inc.

Referenced by drush_backend_invoke_concurrent().

Here is the caller graph for this function:

_drush_backend_argument_string (   $data,
  $os = NULL 
)

Map the options to a string containing all the possible arguments and options.

Parameters
dataOptional. An array containing options to pass to the remote script. Array items with a numeric key are treated as optional arguments to the command. This parameter is a reference, as any options that have been represented as either an option, or an argument will be removed. This allows you to pass the left over options as a JSON encoded string, without duplicating data.
methodOptional. Defaults to 'GET'. If this parameter is set to 'POST', the $data array will be passed to the script being called as a JSON encoded string over the STDIN pipe of that process. This is preferable if you have to pass sensitive data such as passwords and the like. For any other value, the $data array will be collapsed down into a set of command line options to the script.
Returns
A properly formatted and escaped set of arguments and options to append to the drush.php shell command.

Definition at line 1180 of file backend.inc.

References _drush_escape_option().

Referenced by _drush_backend_generate_command(), and drush_backend_invoke_concurrent().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_backend_classify_options (   $site_record,
  $command_options,
$backend_options 
)

Take all of the values in the $command_options array, and place each of them into one of the following result arrays:

- $post_options: options to be encoded as JSON and written to the
  standard input of the drush subprocess being executed.
- $commandline_options: options to be placed on the command line of the drush
  subprocess.
- $drush_global_options: the drush global options also go on the command
  line, but appear before the drush command name rather than after it.

Also, this function may modify $backend_options.

Definition at line 887 of file backend.inc.

References drush_get_global_options(), and drush_sitealias_site_selection_keys().

Referenced by drush_backend_invoke_concurrent().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_backend_generate_command (   $site_record,
  $command,
  $args = array(),
  $command_options = array(),
  $backend_options = array() 
)

Generate a command to execute.

Parameters
site_recordAn array containing information used to generate the command. 'remote-host' Optional. A remote host to execute the drush command on. 'remote-user' Optional. Defaults to the current user. If you specify this, you can choose which module to send. 'ssh-options' Optional. Defaults to "-o PasswordAuthentication=no" 'path-aliases' Optional; contains paths to folders and executables useful to the command. 'drush-script' Optional. Defaults to the current drush.php file on the local machine, and to simply 'drush' (the drush script in the current PATH) on remote servers. You may also specify a different drush.php script explicitly. You will need to set this when calling drush on a remote server if 'drush' is not in the PATH on that machine.
commandA defined drush command such as 'cron', 'status' or any of the available ones such as 'drush pm'.
argsAn array of arguments for the command.
command_optionsOptional. An array containing options to pass to the remote script. Array items with a numeric key are treated as optional arguments to the command. This parameter is a reference, as any options that have been represented as either an option, or an argument will be removed. This allows you to pass the left over options as a JSON encoded string, without duplicating data.
backend_optionsOptional. An array of options for the invocation.
See Also
drush_backend_invoke for documentation.
Returns
A text string representing a fully escaped command.

Definition at line 1097 of file backend.inc.

References _drush_backend_argument_string(), drush_escapeshellarg(), drush_get_option(), drush_is_local_host(), drush_is_windows(), and drush_os().

Referenced by drush_backend_invoke_concurrent().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_backend_get_global_contexts (   $site_record)

Find all of the drush contexts that are used to cache global values and return them in an associative array.

Definition at line 848 of file backend.inc.

References drush_get_context(), drush_get_global_options(), and drush_get_option().

Referenced by drush_backend_invoke_concurrent().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_backend_get_stdin ( )

Read options fron STDIN during POST requests.

This function will read any text from the STDIN pipe, and attempts to generate an associative array if valid JSON was received.

Returns
An associative array of options, if successfull. Otherwise FALSE.

Definition at line 1231 of file backend.inc.

References drush_is_windows().

Here is the call graph for this function:

_drush_backend_integrate (   $data,
  $backend_options,
  $outputted 
)

Integrate log messages and error statuses into the current process.

Output produced by the called script will be printed if we didn't print it on the fly, errors will be set, and log messages will be logged locally, if not already logged.

Parameters
dataThe associative array returned from the external command.
outputtedWhether output has already been handled.

Definition at line 278 of file backend.inc.

References _drush_backend_print_output(), drush_cmp_error(), drush_get_context(), drush_log(), drush_set_error(), and dt().

Referenced by drush_backend_parse_output().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_backend_integrate_log (   $entry)

Supress log message output during backend integrate.

Definition at line 315 of file backend.inc.

_drush_backend_invoke (   $cmds,
  $common_backend_options = array(),
  $context = NULL 
)

Create a new pipe with proc_open, and attempt to parse the output.

We use proc_open instead of exec or others because proc_open is best for doing bi-directional pipes, and we need to pass data over STDIN to the remote script.

Exec also seems to exhibit some strangeness in keeping the returned data intact, in that it modifies the newline characters.

Parameters
cmdThe complete command line call to use.
post_optionsAn associative array to json-encode and pass to the remote script on stdin.
backend_optionsOptions for the invocation.
Returns
If the command could not be completed successfully, FALSE. If one command was executed, this will return an associative array containing the data from drush_backend_output(). If multiple commands were executed, this will return an associative array containing one item, 'concurrent', which will contain a list of the different backend invoke results from each concurrent command.

Definition at line 984 of file backend.inc.

References _drush_backend_proc_open(), DRUSH_APPLICATION_ERROR, drush_backend_parse_output(), drush_get_context(), drush_get_option_override(), drush_log(), drush_print(), drush_set_error(), drush_shell_proc_open(), and dt().

Referenced by drush_backend_invoke_concurrent().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_backend_print_output (   $output_string,
  $backend_options 
)

Print the output received from a call to backend invoke, adding the label to the head of each line if necessary.

Definition at line 513 of file backend.inc.

Referenced by _drush_backend_integrate(), and _drush_backend_proc_open().

Here is the caller graph for this function:

_drush_backend_proc_open (   $cmds,
  $process_limit,
  $context = NULL 
)

Call an external command using proc_open.

Parameters
cmdsAn array of records containing the following elements: 'cmd' - The command to execute, already properly escaped 'post-options' - An associative array that will be JSON encoded and passed to the script being called. Objects are not allowed, as they do not json_decode gracefully. 'backend-options' - Options that control the operation of the backend invoke
  • OR - An array of commands to execute. These commands already need to be properly escaped. In this case, post-options will default to empty, and a default output label will be generated.
dataAn associative array that will be JSON encoded and passed to the script being called. Objects are not allowed, as they do not json_decode gracefully.
Returns
False if the command could not be executed, or did not return any output. If it executed successfully, it returns an associative array containing the command called, the output of the command, and the error code of the command.

Definition at line 341 of file backend.inc.

References _drush_backend_print_output(), DRUSH_BACKEND_OUTPUT_START, drush_backend_parse_packets(), drush_is_windows(), and drush_log().

Referenced by _drush_backend_invoke().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_escape_option (   $key,
  $value = TRUE,
  $os = NULL 
)

Return a properly formatted and escaped command line option

Parameters
keyThe name of the option.
valueThe value of the option.
Returns
If the value is set to TRUE, this function will return " &ndash;key" In other cases it will return " &ndash;key='value'"

Definition at line 1211 of file backend.inc.

References drush_escapeshellarg().

Referenced by _drush_backend_argument_string().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_backend_generate_sitealias (   $backend_options)

Helper function that generates an anonymous site alias specification for the given parameters.

Definition at line 1042 of file backend.inc.

drush_backend_get_result ( )

Retrieves the results from the last call to backend_invoke.

Returns
array An associative array containing information from the last backend invoke. The keys in the array include:
  • output: This item contains the textual output of the command that was executed.
  • object: Contains the PHP object representation of the result of the command.
  • self: The self object contains the alias record that was used to select the bootstrapped site when the command was executed.
  • error_status: This item returns the error status for the command. Zero means "no error".
  • log: The log item contains an array of log messages from the command execution ordered chronologically. Each log entery is an associative array. A log entry contains following items: o type: The type of log entry, such as 'notice' or 'warning' o message: The log message o timestamp: The time that the message was logged o memory: Available memory at the time that the message was logged o error: The error code associated with the log message (only for log entries whose type is 'error')
  • error_log: The error_log item contains another representation of entries from the log. Only log entries whose 'error' item is set will appear in the error log. The error log is an associative array whose key is the error code, and whose value is an array of messages–one message for every log entry with the same error code.
  • context: The context item contains a representation of all option values that affected the operation of the command, including both the command line options, options set in a drushrc.php configuration files, and options set from the alias record used with the command.

Definition at line 127 of file backend.inc.

References drush_get_context().

Referenced by drush_backend_output(), and drush_handle_command_output().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_backend_invoke_concurrent (   $invocations,
  $common_options = array(),
  $common_backend_options = array(),
  $default_command = NULL,
  $default_site = NULL,
  $context = NULL 
)

Execute a new local or remote command in a new process.

n.b. Prefer drush_invoke_process() to this function.

Parameters
invocationsAn array of command records to exacute. Each record should contain: 'site': An array containing information used to generate the command. 'remote-host' Optional. A remote host to execute the drush command on. 'remote-user' Optional. Defaults to the current user. If you specify this, you can choose which module to send. 'ssh-options' Optional. Defaults to "-o PasswordAuthentication=no" 'path-aliases' Optional; contains paths to folders and executables useful to the command. 'drush-script' Optional. Defaults to the current drush.php file on the local machine, and to simply 'drush' (the drush script in the current PATH) on remote servers. You may also specify a different drush.php script explicitly. You will need to set this when calling drush on a remote server if 'drush' is not in the PATH on that machine. 'command': A defined drush command such as 'cron', 'status' or any of the available ones such as 'drush pm'. 'args': An array of arguments for the command. 'options' Optional. An array containing options to pass to the remote script. Array items with a numeric key are treated as optional arguments to the command. 'backend-options': Optional. Additional parameters that control the operation of the invoke. 'method' Optional. Defaults to 'GET'. If this parameter is set to 'POST', the $data array will be passed to the script being called as a JSON encoded string over the STDIN pipe of that process. This is preferable if you have to pass sensitive data such as passwords and the like. For any other value, the $data array will be collapsed down into a set of command line options to the script. 'integrate' Optional. Defaults to TRUE. If TRUE, any error statuses will be integrated into the current process. This might not be what you want, if you are writing a command that operates on multiple sites. 'log' Optional. Defaults to TRUE. If TRUE, any log messages will be integrated into the current process. 'output' Optional. Defaults to TRUE. If TRUE, output from the command will be synchronously printed to stdout. 'drush-script' Optional. Defaults to the current drush.php file on the local machine, and to simply 'drush' (the drush script in the current PATH) on remote servers. You may also specify a different drush.php script explicitly. You will need to set this when calling drush on a remote server if 'drush' is not in the PATH on that machine. 'dispatch-using-alias' Optional. Defaults to FALSE. If specified as a non-empty value the drush command will be dispatched using the alias name on the command line, instead of the options from the alias being added to the command line automatically.
common_optionsOptional. Merged in with the options for each invocation.
backend_optionsOptional. Merged in with the backend options for each invocation.
default_commandOptional. Used as the 'command' for any invocation that does not define a command explicitly.
default_siteOptional. Used as the 'site' for any invocation that does not define a site explicitly.
contextOptional. Passed in to proc_open if provided.
Returns
If the command could not be completed successfully, FALSE. If the command was completed, this will return an associative array containing the data from drush_backend_output().

Definition at line 706 of file backend.inc.

References _drush_backend_adjust_options(), _drush_backend_argument_string(), _drush_backend_classify_options(), _drush_backend_generate_command(), _drush_backend_get_global_contexts(), _drush_backend_invoke(), drush_build_drush_command(), drush_command_get_command_specific_options(), drush_os(), and drush_sitealias_get_record().

Referenced by drush_invoke_process(), and make_projects().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_backend_output ( )

Print the json-encoded output of this command, including the encoded log records, context information, etc.

Definition at line 135 of file backend.inc.

References drush_backend_get_result(), drush_backend_output_collect(), drush_get_context(), drush_get_error(), drush_get_error_log(), drush_get_log(), drush_get_merged_options(), drush_sitealias_get_record(), and DRUSH_SUCCESS.

Referenced by drush_shutdown(), and drush_unit_batch().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_backend_output_collect (   $string)

Callback to collect backend command output.

Definition at line 184 of file backend.inc.

Referenced by drush_backend_output().

Here is the caller graph for this function:

drush_backend_output_discard (   $string)

Output buffer functions that discards all output but backend packets.

Definition at line 197 of file backend.inc.

drush_backend_packet (   $packet,
  $data 
)

Output a backend packet if we're running as backend.

Parameters
packetThe packet to send.
dataData for the command.
Returns
A boolean indicating whether the command was output.

Definition at line 216 of file backend.inc.

References drush_get_context().

Referenced by drush_backend_packet_log(), drush_log(), and drush_set_error().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_backend_packet_set_error (   $data,
  $backend_options 
)

Backend command for setting errors.

Definition at line 584 of file backend.inc.

References drush_set_error().

Here is the call graph for this function:

drush_backend_parse_output (   $string,
  $backend_options = array(),
  $outputted = FALSE 
)

Parse output returned from a Drush command.

Parameters
stringThe output of a drush command
integrateIntegrate the errors and log messages from the command into the current process.
outputtedWhether output has already been handled.
Returns
An associative array containing the data from the external command, or the string parameter if it could not be parsed successfully.

Definition at line 243 of file backend.inc.

References _drush_backend_integrate().

Referenced by _drush_backend_invoke().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_backend_parse_packets ( $string,
$remainder,
  $backend_options 
)

Parse out and remove backend packet from the supplied string and invoke the commands.

Definition at line 533 of file backend.inc.

References DRUSH_BACKEND_OUTPUT_START, DRUSH_BACKEND_PACKET_START, drush_log(), drush_set_context(), and dt().

Referenced by _drush_backend_proc_open().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_backend_set_result (   $value)

The backend result is the original PHP data structure (usually an array) used to generate the output for the current command.

Definition at line 84 of file backend.inc.

References drush_get_context(), and drush_set_context().

Referenced by drush_config_export(), drush_handle_command_output(), drush_pm_releases(), and drush_user_login().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const DRUSH_BACKEND_OUTPUT_START = 'DRUSH_BACKEND_OUTPUT_START>>>'

Identify the JSON encoded output from a command.

Note that Drush now outputs a null ("\0") before the DRUSH_BACKEND_OUTPUT_DELIMITER, but this null occurs where this constant is output rather than being included in the define. This is done to maintain compatibility with older versions of Drush, so that Drush-6.x can correctly parse backend messages from calls made to Drush-5.x and earlier. The null is removed via trim().

Definition at line 69 of file backend.inc.

Referenced by _drush_backend_proc_open(), and drush_backend_parse_packets().

const DRUSH_BACKEND_PACKET_START = "DRUSH_BACKEND:"

Identify JSON encoded "packets" embedded inside of backend output; used to send out-of-band information durring a backend invoke call (currently only used for log and error messages).

Definition at line 77 of file backend.inc.

Referenced by drush_backend_parse_packets().

File

doxygen/html/backend_8inc.html
View source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Drush: includes/backend.inc File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Drush
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_09e761304027c904456130627fd4dcf5.html">includes</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">backend.inc File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="backend_8inc_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ad8040331b08464a2a48b7ac8a00ed13c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#ad8040331b08464a2a48b7ac8a00ed13c">drush_backend_set_result</a> ($value)</td></tr>
<tr class="memitem:ac295e52c1fa40b91d9100517ed8e76de"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#ac295e52c1fa40b91d9100517ed8e76de">drush_backend_get_result</a> ()</td></tr>
<tr class="memitem:a3d855df98e2c6cb0314a947058f92b99"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#a3d855df98e2c6cb0314a947058f92b99">drush_backend_output</a> ()</td></tr>
<tr class="memitem:a1602048b761aedfc875af8f6d55b5e51"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#a1602048b761aedfc875af8f6d55b5e51">drush_backend_output_collect</a> ($string)</td></tr>
<tr class="memitem:a24d07aa37634fa6ece1d8b36c6fdeb46"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#a24d07aa37634fa6ece1d8b36c6fdeb46">drush_backend_output_discard</a> ($string)</td></tr>
<tr class="memitem:a38490210d77373f3d8492caf4e9a3190"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190">drush_backend_packet</a> ($packet, $data)</td></tr>
<tr class="memitem:a31be2d52e209d3e6ac359e971cf1fd7b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#a31be2d52e209d3e6ac359e971cf1fd7b">drush_backend_parse_output</a> ($string, $backend_options=array(), $outputted=FALSE)</td></tr>
<tr class="memitem:ae4fc02494df344445fa5f139fa843ac0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#ae4fc02494df344445fa5f139fa843ac0">_drush_backend_integrate</a> ($data, $backend_options, $outputted)</td></tr>
<tr class="memitem:aa530f9f9b70006185389091b5d870995"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#aa530f9f9b70006185389091b5d870995">_drush_backend_integrate_log</a> ($entry)</td></tr>
<tr class="memitem:aad736c236f213abc274709f79e41edf7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#aad736c236f213abc274709f79e41edf7">_drush_backend_proc_open</a> ($cmds, $process_limit, $context=NULL)</td></tr>
<tr class="memitem:aabec94a039db3602741bb3282fec0729"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#aabec94a039db3602741bb3282fec0729">_drush_backend_print_output</a> ($output_string, $backend_options)</td></tr>
<tr class="memitem:aab9943ccb47db227e2bcfce3c2b9a36a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#aab9943ccb47db227e2bcfce3c2b9a36a">drush_backend_parse_packets</a> (&amp;$string, &amp;$remainder, $backend_options)</td></tr>
<tr class="memitem:a76b06a559b58fba879ae74ff81a2fcb1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#a76b06a559b58fba879ae74ff81a2fcb1">drush_backend_packet_set_error</a> ($data, $backend_options)</td></tr>
<tr class="memitem:a895f14d30af875ea1783a3de2355d095"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#a895f14d30af875ea1783a3de2355d095">_drush_backend_adjust_options</a> ($site_record, $command, $command_options, $backend_options)</td></tr>
<tr class="memitem:a7852d5448cd4ee3a2082eccd24d690e7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7">drush_backend_invoke_concurrent</a> ($invocations, $common_options=array(), $common_backend_options=array(), $default_command=NULL, $default_site=NULL, $context=NULL)</td></tr>
<tr class="memitem:aff4e2427168bc7585fcfa5eca6a94af0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#aff4e2427168bc7585fcfa5eca6a94af0">_drush_backend_get_global_contexts</a> ($site_record)</td></tr>
<tr class="memitem:a20dd75d8a0d75a4e59db35c8918d1d8a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#a20dd75d8a0d75a4e59db35c8918d1d8a">_drush_backend_classify_options</a> ($site_record, $command_options, &amp;$backend_options)</td></tr>
<tr class="memitem:a1d3f3caae7e1300c53e2cc1fe4ffb932"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#a1d3f3caae7e1300c53e2cc1fe4ffb932">_drush_backend_invoke</a> ($cmds, $common_backend_options=array(), $context=NULL)</td></tr>
<tr class="memitem:ae4c4323460af25cdfe11551030f76fce"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#ae4c4323460af25cdfe11551030f76fce">drush_backend_generate_sitealias</a> ($backend_options)</td></tr>
<tr class="memitem:aa9bff3ffcd61a4dd945b567057a54e5d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#aa9bff3ffcd61a4dd945b567057a54e5d">_drush_backend_generate_command</a> ($site_record, $command, $args=array(), $command_options=array(), $backend_options=array())</td></tr>
<tr class="memitem:ad19c067bfbd87dfc63c55659723aaf60"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#ad19c067bfbd87dfc63c55659723aaf60">_drush_backend_argument_string</a> ($data, $os=NULL)</td></tr>
<tr class="memitem:a76fe1964075bf89898a79d07885dcacf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#a76fe1964075bf89898a79d07885dcacf">_drush_escape_option</a> ($key, $value=TRUE, $os=NULL)</td></tr>
<tr class="memitem:a4b057a86151c5b6ee4ca67022ee864e4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#a4b057a86151c5b6ee4ca67022ee864e4">_drush_backend_get_stdin</a> ()</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a99476b8812c9923e8706b076c50863c0"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#a99476b8812c9923e8706b076c50863c0">DRUSH_BACKEND_OUTPUT_START</a> = 'DRUSH_BACKEND_OUTPUT_START&gt;&gt;&gt;'</td></tr>
<tr class="memitem:a6c48685f7f4d13709209af307ca0a28f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6c48685f7f4d13709209af307ca0a28f"></a>
const&#160;</td><td class="memItemRight" valign="bottom"><b>DRUSH_BACKEND_OUTPUT_DELIMITER</b> = <a class="el" href="backend_8inc.html#a99476b8812c9923e8706b076c50863c0">DRUSH_BACKEND_OUTPUT_START</a> . '%s&lt;&lt;&lt;DRUSH_BACKEND_OUTPUT_END'</td></tr>
<tr class="memitem:a9701b812e125509d248b2e4566a712e0"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backend_8inc.html#a9701b812e125509d248b2e4566a712e0">DRUSH_BACKEND_PACKET_START</a> = &quot;DRUSH_BACKEND:&quot;</td></tr>
<tr class="memitem:a8f23d4120e110f2b383283e054412712"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8f23d4120e110f2b383283e054412712"></a>
const&#160;</td><td class="memItemRight" valign="bottom"><b>DRUSH_BACKEND_PACKET_PATTERN</b> = &quot;\0&quot; . <a class="el" href="backend_8inc.html#a9701b812e125509d248b2e4566a712e0">DRUSH_BACKEND_PACKET_START</a> . &quot;%s\n\0&quot;</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Drush backend API</p>
<p>When a drush command is called with the &ndash;backend option, it will buffer all output, and instead return a JSON encoded string containing all relevant information on the command that was just executed.</p>
<p>Through this mechanism, it is possible for Drush commands to invoke each other.</p>
<p>There are many cases where a command might wish to call another command in its own process, to allow the calling command to intercept and act on any errors that may occur in the script that was called.</p>
<p>A simple example is if there exists an 'update' command for running update.php on a specific site. The original command might download a newer version of a module for installation on a site, and then run the update script in a separate process, so that in the case of an error running a hook_update_n function, the module can revert to a previously made database backup, and the previously installed code.</p>
<p>By calling the script in a separate process, the calling script is insulated from any error that occurs in the called script, to the level that if a php code error occurs (ie: misformed file, missing parenthesis, whatever), it is still able to reliably handle any problems that occur.</p>
<p>This is nearly a RESTful API. </p>
<dl class="section see"><dt>See Also</dt><dd><a href="http://en.wikipedia.org/wiki/REST">http://en.wikipedia.org/wiki/REST</a></dd></dl>
<p>Instead of : <a href="http://">http://</a>[server]/[apipath]/[command]?[arg1]=[value1],[arg2]=[value2]</p>
<p>It will call : [apipath] [command] &ndash;[arg1]=[value1] &ndash;[arg2]=[value2] &ndash;backend</p>
<p>[apipath] in this case will be the path to the <a class="el" href="drush_8php.html">drush.php</a> file. [command] is the command you would call, for instance 'status'.</p>
<p>GET parameters will be passed as options to the script. POST parameters will be passed to the script as a JSON encoded associative array over STDIN.</p>
<p>Because of this standard interface, Drush commands can also be executed on external servers through SSH pipes, simply by prepending, 'ssh <a href="#" onclick="location.href='mai'+'lto:'+'use'+'rn'+'ame'+'@s'+'erv'+'er'+'.co'+'m'; return false;">usern<span style="display: none;">.nosp@m.</span>ame@<span style="display: none;">.nosp@m.</span>serve<span style="display: none;">.nosp@m.</span>r.co<span style="display: none;">.nosp@m.</span>m</a>' in front of the command.</p>
<p>If the key-based ssh authentication has been set up between the servers, this will just work. By default, drush is configured to disallow password authentication; if you would like to enter a password for every connection, then in your drushrc.php file, set $options['ssh-options'] so that it does NOT include '-o PasswordAuthentication=no'. See <a class="el" href="example_8drushrc_8php.html">examples/example.drushrc.php</a>.</p>
<p>The results from backend API calls can be fetched via a call to <a class="el" href="backend_8inc.html#ac295e52c1fa40b91d9100517ed8e76de">drush_backend_get_result()</a>. </p>

<p>Definition in file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="a895f14d30af875ea1783a3de2355d095"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_backend_adjust_options </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$site_record</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$command_options</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$backend_options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Default options for backend_invoke commands. </p>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00598">598</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00706">drush_backend_invoke_concurrent()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a895f14d30af875ea1783a3de2355d095_icgraph.png" border="0" usemap="#backend_8inc_a895f14d30af875ea1783a3de2355d095_icgraph" alt=""/></div>
<map name="backend_8inc_a895f14d30af875ea1783a3de2355d095_icgraph" id="backend_8inc_a895f14d30af875ea1783a3de2355d095_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="213,406,368,453"/><area shape="rect" id="node5" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="439,59,545,88"/><area shape="rect" id="node13" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="416,771,568,800"/><area shape="rect" id="node7" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="675,5,768,35"/><area shape="rect" id="node9" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="633,59,809,88"/><area shape="rect" id="node11" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="891,59,1056,88"/><area shape="rect" id="node15" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1145,232,1287,261"/><area shape="rect" id="node17" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="647,771,796,800"/><area shape="rect" id="node19" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="652,824,791,853"/><area shape="rect" id="node21" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="648,877,795,907"/><area shape="rect" id="node23" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="639,931,804,960"/><area shape="rect" id="node25" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="643,984,800,1013"/><area shape="rect" id="node27" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="644,1194,799,1241"/><area shape="rect" id="node39" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="641,1091,801,1120"/><area shape="rect" id="node41" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="920,692,1027,721"/><area shape="rect" id="node43" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="648,717,795,747"/><area shape="rect" id="node46" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="651,1264,792,1293"/><area shape="rect" id="node48" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="633,1317,809,1347"/><area shape="rect" id="node50" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="631,1371,812,1400"/><area shape="rect" id="node52" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="616,1424,827,1453"/><area shape="rect" id="node54" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="645,112,797,141"/><area shape="rect" id="node56" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="661,165,781,195"/><area shape="rect" id="node58" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="639,218,804,265"/><area shape="rect" id="node60" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="888,1058,1059,1105"/><area shape="rect" id="node64" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1121,547,1311,576"/><area shape="rect" id="node66" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="619,1037,824,1067"/><area shape="rect" id="node69" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="653,477,789,523"/><area shape="rect" id="node84" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="653,338,789,385"/><area shape="rect" id="node94" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="643,597,800,643"/><area shape="rect" id="node103" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="640,407,803,454"/><area shape="rect" id="node29" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="899,1194,1048,1241"/><area shape="rect" id="node31" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1143,1256,1289,1285"/><area shape="rect" id="node35" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1156,1149,1276,1179"/><area shape="rect" id="node37" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1147,1203,1285,1232"/><area shape="rect" id="node33" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1373,1256,1533,1285"/><area shape="rect" id="node62" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1172,1067,1260,1096"/><area shape="rect" id="node71" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="891,407,1056,454"/><area shape="rect" id="node75" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="903,477,1044,523"/><area shape="rect" id="node73" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1145,424,1287,453"/><area shape="rect" id="node78" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1131,477,1301,523"/><area shape="rect" id="node80" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1379,477,1528,523"/><area shape="rect" id="node82" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="1595,485,1755,515"/><area shape="rect" id="node87" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="892,338,1055,385"/><area shape="rect" id="node90" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1148,354,1284,401"/><area shape="rect" id="node92" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1149,285,1283,331"/><area shape="rect" id="node97" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="875,605,1072,635"/><area shape="rect" id="node99" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1141,605,1291,635"/><area shape="rect" id="node101" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="1361,605,1545,635"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad19c067bfbd87dfc63c55659723aaf60"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_backend_argument_string </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$os</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Map the options to a string containing all the possible arguments and options.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>Optional. An array containing options to pass to the remote script. Array items with a numeric key are treated as optional arguments to the command. This parameter is a reference, as any options that have been represented as either an option, or an argument will be removed. This allows you to pass the left over options as a JSON encoded string, without duplicating data. </td></tr>
    <tr><td class="paramname">method</td><td>Optional. Defaults to 'GET'. If this parameter is set to 'POST', the $data array will be passed to the script being called as a JSON encoded string over the STDIN pipe of that process. This is preferable if you have to pass sensitive data such as passwords and the like. For any other value, the $data array will be collapsed down into a set of command line options to the script. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A properly formatted and escaped set of arguments and options to append to the <a class="el" href="drush_8php.html">drush.php</a> shell command. </dd></dl>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l01180">1180</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="backend_8inc_source.html#l01211">_drush_escape_option()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l01097">_drush_backend_generate_command()</a>, and <a class="el" href="backend_8inc_source.html#l00706">drush_backend_invoke_concurrent()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_ad19c067bfbd87dfc63c55659723aaf60_cgraph.png" border="0" usemap="#backend_8inc_ad19c067bfbd87dfc63c55659723aaf60_cgraph" alt=""/></div>
<map name="backend_8inc_ad19c067bfbd87dfc63c55659723aaf60_cgraph" id="backend_8inc_ad19c067bfbd87dfc63c55659723aaf60_cgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a76fe1964075bf89898a79d07885dcacf" title="_drush_escape_option" alt="" coords="232,67,384,96"/><area shape="rect" id="node5" href="group__commandwrappers.html#gafc52f7e769d935b4d2462467cdf8d5ee" title="drush_escapeshellarg" alt="" coords="433,67,580,96"/><area shape="rect" id="node7" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="643,5,771,35"/><area shape="rect" id="node9" href="group__commandwrappers.html#gac60b4740ceccf95b8e60d1896d93d2ab" title="_drush_escapeshellarg\l_windows" alt="" coords="629,58,784,105"/><area shape="rect" id="node11" href="group__commandwrappers.html#ga561ce790cc15caa5e1f0bfebc2546529" title="_drush_escapeshellarg\l_linux" alt="" coords="629,127,784,174"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_ad19c067bfbd87dfc63c55659723aaf60_icgraph.png" border="0" usemap="#backend_8inc_ad19c067bfbd87dfc63c55659723aaf60_icgraph" alt=""/></div>
<map name="backend_8inc_ad19c067bfbd87dfc63c55659723aaf60_icgraph" id="backend_8inc_ad19c067bfbd87dfc63c55659723aaf60_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#aa9bff3ffcd61a4dd945b567057a54e5d" title="_drush_backend_generate\l_command" alt="" coords="233,435,407,482"/><area shape="rect" id="node5" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="456,406,611,453"/><area shape="rect" id="node7" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="681,59,788,88"/><area shape="rect" id="node15" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="659,771,811,800"/><area shape="rect" id="node9" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="917,5,1011,35"/><area shape="rect" id="node11" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="876,59,1052,88"/><area shape="rect" id="node13" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1133,59,1299,88"/><area shape="rect" id="node17" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1388,232,1529,261"/><area shape="rect" id="node19" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="889,771,1039,800"/><area shape="rect" id="node21" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="895,824,1033,853"/><area shape="rect" id="node23" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="891,877,1037,907"/><area shape="rect" id="node25" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="881,931,1047,960"/><area shape="rect" id="node27" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="885,984,1043,1013"/><area shape="rect" id="node29" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="887,1194,1041,1241"/><area shape="rect" id="node41" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="884,1091,1044,1120"/><area shape="rect" id="node43" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="1163,692,1269,721"/><area shape="rect" id="node45" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="891,717,1037,747"/><area shape="rect" id="node48" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="893,1264,1035,1293"/><area shape="rect" id="node50" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="876,1317,1052,1347"/><area shape="rect" id="node52" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="873,1371,1055,1400"/><area shape="rect" id="node54" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="859,1424,1069,1453"/><area shape="rect" id="node56" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="888,112,1040,141"/><area shape="rect" id="node58" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="904,165,1024,195"/><area shape="rect" id="node60" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="881,218,1047,265"/><area shape="rect" id="node62" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1131,1058,1301,1105"/><area shape="rect" id="node66" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1364,547,1553,576"/><area shape="rect" id="node68" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="861,1037,1067,1067"/><area shape="rect" id="node71" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="896,477,1032,523"/><area shape="rect" id="node84" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="896,338,1032,385"/><area shape="rect" id="node94" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="885,597,1043,643"/><area shape="rect" id="node103" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="883,407,1045,454"/><area shape="rect" id="node31" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="1141,1194,1291,1241"/><area shape="rect" id="node33" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1385,1256,1532,1285"/><area shape="rect" id="node37" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1399,1149,1519,1179"/><area shape="rect" id="node39" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1389,1203,1528,1232"/><area shape="rect" id="node35" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1616,1256,1776,1285"/><area shape="rect" id="node64" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1415,1067,1503,1096"/><area shape="rect" id="node73" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="1133,407,1299,454"/><area shape="rect" id="node77" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="1145,477,1287,523"/><area shape="rect" id="node75" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1388,424,1529,453"/><area shape="rect" id="node80" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1373,477,1544,523"/><area shape="rect" id="node82" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1621,477,1771,523"/><area shape="rect" id="node87" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="1135,338,1297,385"/><area shape="rect" id="node90" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1391,354,1527,401"/><area shape="rect" id="node92" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1392,285,1525,331"/><area shape="rect" id="node97" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="1117,605,1315,635"/><area shape="rect" id="node99" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1384,605,1533,635"/><area shape="rect" id="node101" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="1604,605,1788,635"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a20dd75d8a0d75a4e59db35c8918d1d8a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_backend_classify_options </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$site_record</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$command_options</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$backend_options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Take all of the values in the $command_options array, and place each of them into one of the following result arrays: </p>
<pre class="fragment">- $post_options: options to be encoded as JSON and written to the
  standard input of the drush subprocess being executed.
- $commandline_options: options to be placed on the command line of the drush
  subprocess.
- $drush_global_options: the drush global options also go on the command
  line, but appear before the drush command name rather than after it.
</pre><p>Also, this function may modify $backend_options. </p>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00887">887</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l00255">drush_get_global_options()</a>, and <a class="el" href="sitealias_8inc_source.html#l02032">drush_sitealias_site_selection_keys()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00706">drush_backend_invoke_concurrent()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a20dd75d8a0d75a4e59db35c8918d1d8a_cgraph.png" border="0" usemap="#backend_8inc_a20dd75d8a0d75a4e59db35c8918d1d8a_cgraph" alt=""/></div>
<map name="backend_8inc_a20dd75d8a0d75a4e59db35c8918d1d8a_cgraph" id="backend_8inc_a20dd75d8a0d75a4e59db35c8918d1d8a_cgraph">
<area shape="rect" id="node3" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="225,32,393,61"/><area shape="rect" id="node15" href="sitealias_8inc.html#a4345c09c2ecb4793246075f06c146fec" title="drush_sitealias_site\l_selection_keys" alt="" coords="241,85,377,131"/><area shape="rect" id="node5" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="443,23,605,70"/><area shape="rect" id="node7" href="includes_2command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="653,32,845,61"/><area shape="rect" id="node9" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="895,5,1052,35"/><area shape="rect" id="node13" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="897,59,1049,88"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1103,5,1231,35"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a20dd75d8a0d75a4e59db35c8918d1d8a_icgraph.png" border="0" usemap="#backend_8inc_a20dd75d8a0d75a4e59db35c8918d1d8a_icgraph" alt=""/></div>
<map name="backend_8inc_a20dd75d8a0d75a4e59db35c8918d1d8a_icgraph" id="backend_8inc_a20dd75d8a0d75a4e59db35c8918d1d8a_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="224,406,379,453"/><area shape="rect" id="node5" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="449,59,556,88"/><area shape="rect" id="node13" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="427,771,579,800"/><area shape="rect" id="node7" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="685,5,779,35"/><area shape="rect" id="node9" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="644,59,820,88"/><area shape="rect" id="node11" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="901,59,1067,88"/><area shape="rect" id="node15" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1156,232,1297,261"/><area shape="rect" id="node17" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="657,771,807,800"/><area shape="rect" id="node19" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="663,824,801,853"/><area shape="rect" id="node21" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="659,877,805,907"/><area shape="rect" id="node23" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="649,931,815,960"/><area shape="rect" id="node25" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="653,984,811,1013"/><area shape="rect" id="node27" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="655,1194,809,1241"/><area shape="rect" id="node39" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="652,1091,812,1120"/><area shape="rect" id="node41" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="931,692,1037,721"/><area shape="rect" id="node43" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="659,717,805,747"/><area shape="rect" id="node46" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="661,1264,803,1293"/><area shape="rect" id="node48" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="644,1317,820,1347"/><area shape="rect" id="node50" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="641,1371,823,1400"/><area shape="rect" id="node52" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="627,1424,837,1453"/><area shape="rect" id="node54" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="656,112,808,141"/><area shape="rect" id="node56" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="672,165,792,195"/><area shape="rect" id="node58" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="649,218,815,265"/><area shape="rect" id="node60" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="899,1058,1069,1105"/><area shape="rect" id="node64" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1132,547,1321,576"/><area shape="rect" id="node66" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="629,1037,835,1067"/><area shape="rect" id="node69" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="664,477,800,523"/><area shape="rect" id="node84" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="664,338,800,385"/><area shape="rect" id="node94" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="653,597,811,643"/><area shape="rect" id="node103" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="651,407,813,454"/><area shape="rect" id="node29" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="909,1194,1059,1241"/><area shape="rect" id="node31" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1153,1256,1300,1285"/><area shape="rect" id="node35" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1167,1149,1287,1179"/><area shape="rect" id="node37" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1157,1203,1296,1232"/><area shape="rect" id="node33" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1384,1256,1544,1285"/><area shape="rect" id="node62" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1183,1067,1271,1096"/><area shape="rect" id="node71" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="901,407,1067,454"/><area shape="rect" id="node75" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="913,477,1055,523"/><area shape="rect" id="node73" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1156,424,1297,453"/><area shape="rect" id="node78" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1141,477,1312,523"/><area shape="rect" id="node80" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1389,477,1539,523"/><area shape="rect" id="node82" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="1605,485,1765,515"/><area shape="rect" id="node87" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="903,338,1065,385"/><area shape="rect" id="node90" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1159,354,1295,401"/><area shape="rect" id="node92" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1160,285,1293,331"/><area shape="rect" id="node97" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="885,605,1083,635"/><area shape="rect" id="node99" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1152,605,1301,635"/><area shape="rect" id="node101" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="1372,605,1556,635"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa9bff3ffcd61a4dd945b567057a54e5d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_backend_generate_command </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$site_record</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$args</em> = <code>array()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$command_options</em> = <code>array()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$backend_options</em> = <code>array()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Generate a command to execute.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">site_record</td><td>An array containing information used to generate the command. 'remote-host' Optional. A remote host to execute the drush command on. 'remote-user' Optional. Defaults to the current user. If you specify this, you can choose which module to send. 'ssh-options' Optional. Defaults to "-o PasswordAuthentication=no" 'path-aliases' Optional; contains paths to folders and executables useful to the command. 'drush-script' Optional. Defaults to the current <a class="el" href="drush_8php.html">drush.php</a> file on the local machine, and to simply 'drush' (the drush script in the current PATH) on remote servers. You may also specify a different <a class="el" href="drush_8php.html">drush.php</a> script explicitly. You will need to set this when calling drush on a remote server if 'drush' is not in the PATH on that machine. </td></tr>
    <tr><td class="paramname">command</td><td>A defined drush command such as 'cron', 'status' or any of the available ones such as 'drush pm'. </td></tr>
    <tr><td class="paramname">args</td><td>An array of arguments for the command. </td></tr>
    <tr><td class="paramname">command_options</td><td>Optional. An array containing options to pass to the remote script. Array items with a numeric key are treated as optional arguments to the command. This parameter is a reference, as any options that have been represented as either an option, or an argument will be removed. This allows you to pass the left over options as a JSON encoded string, without duplicating data. </td></tr>
    <tr><td class="paramname">backend_options</td><td>Optional. An array of options for the invocation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd>drush_backend_invoke for documentation.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>A text string representing a fully escaped command. </dd></dl>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l01097">1097</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="backend_8inc_source.html#l01180">_drush_backend_argument_string()</a>, <a class="el" href="exec_8inc_source.html#l00312">drush_escapeshellarg()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00619">drush_is_local_host()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00501">drush_is_windows()</a>, and <a class="el" href="exec_8inc_source.html#l00261">drush_os()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00706">drush_backend_invoke_concurrent()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_aa9bff3ffcd61a4dd945b567057a54e5d_cgraph.png" border="0" usemap="#backend_8inc_aa9bff3ffcd61a4dd945b567057a54e5d_cgraph" alt=""/></div>
<map name="backend_8inc_aa9bff3ffcd61a4dd945b567057a54e5d_cgraph" id="backend_8inc_aa9bff3ffcd61a4dd945b567057a54e5d_cgraph">
<area shape="rect" id="node3" href="backend_8inc.html#ad19c067bfbd87dfc63c55659723aaf60" title="_drush_backend_argument\l_string" alt="" coords="229,19,408,66"/><area shape="rect" id="node7" href="group__commandwrappers.html#gafc52f7e769d935b4d2462467cdf8d5ee" title="drush_escapeshellarg" alt="" coords="659,83,805,112"/><area shape="rect" id="node9" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="869,144,997,173"/><area shape="rect" id="node16" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="472,241,592,271"/><area shape="rect" id="node24" href="includes_2environment_8inc.html#a395834ff6c51946c9c8a0953aa8f539f" title="drush_is_local_host" alt="" coords="464,336,600,365"/><area shape="rect" id="node28" href="group__commandwrappers.html#ga1292121e5bdd4bf19ef4f944b16301ed" title="drush_os" alt="" coords="281,241,356,271"/><area shape="rect" id="node5" href="backend_8inc.html#a76fe1964075bf89898a79d07885dcacf" title="_drush_escape_option" alt="" coords="456,32,608,61"/><area shape="rect" id="node11" href="group__commandwrappers.html#gac60b4740ceccf95b8e60d1896d93d2ab" title="_drush_escapeshellarg\l_windows" alt="" coords="856,5,1011,51"/><area shape="rect" id="node13" href="group__commandwrappers.html#ga561ce790cc15caa5e1f0bfebc2546529" title="_drush_escapeshellarg\l_linux" alt="" coords="856,74,1011,121"/><area shape="rect" id="node18" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="668,191,796,220"/><area shape="rect" id="node20" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="668,244,796,273"/><area shape="rect" id="node22" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="657,297,807,327"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_aa9bff3ffcd61a4dd945b567057a54e5d_icgraph.png" border="0" usemap="#backend_8inc_aa9bff3ffcd61a4dd945b567057a54e5d_icgraph" alt=""/></div>
<map name="backend_8inc_aa9bff3ffcd61a4dd945b567057a54e5d_icgraph" id="backend_8inc_aa9bff3ffcd61a4dd945b567057a54e5d_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="229,406,384,453"/><area shape="rect" id="node5" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="455,59,561,88"/><area shape="rect" id="node13" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="432,771,584,800"/><area shape="rect" id="node7" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="691,5,784,35"/><area shape="rect" id="node9" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="649,59,825,88"/><area shape="rect" id="node11" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="907,59,1072,88"/><area shape="rect" id="node15" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1161,232,1303,261"/><area shape="rect" id="node17" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="663,771,812,800"/><area shape="rect" id="node19" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="668,824,807,853"/><area shape="rect" id="node21" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="664,877,811,907"/><area shape="rect" id="node23" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="655,931,820,960"/><area shape="rect" id="node25" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="659,984,816,1013"/><area shape="rect" id="node27" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="660,1194,815,1241"/><area shape="rect" id="node39" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="657,1091,817,1120"/><area shape="rect" id="node41" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="936,692,1043,721"/><area shape="rect" id="node43" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="664,717,811,747"/><area shape="rect" id="node46" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="667,1264,808,1293"/><area shape="rect" id="node48" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="649,1317,825,1347"/><area shape="rect" id="node50" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="647,1371,828,1400"/><area shape="rect" id="node52" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="632,1424,843,1453"/><area shape="rect" id="node54" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="661,112,813,141"/><area shape="rect" id="node56" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="677,165,797,195"/><area shape="rect" id="node58" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="655,218,820,265"/><area shape="rect" id="node60" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="904,1058,1075,1105"/><area shape="rect" id="node64" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1137,547,1327,576"/><area shape="rect" id="node66" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="635,1037,840,1067"/><area shape="rect" id="node69" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="669,477,805,523"/><area shape="rect" id="node84" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="669,338,805,385"/><area shape="rect" id="node94" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="659,597,816,643"/><area shape="rect" id="node103" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="656,407,819,454"/><area shape="rect" id="node29" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="915,1194,1064,1241"/><area shape="rect" id="node31" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1159,1256,1305,1285"/><area shape="rect" id="node35" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1172,1149,1292,1179"/><area shape="rect" id="node37" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1163,1203,1301,1232"/><area shape="rect" id="node33" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1389,1256,1549,1285"/><area shape="rect" id="node62" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1188,1067,1276,1096"/><area shape="rect" id="node71" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="907,407,1072,454"/><area shape="rect" id="node75" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="919,477,1060,523"/><area shape="rect" id="node73" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1161,424,1303,453"/><area shape="rect" id="node78" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1147,477,1317,523"/><area shape="rect" id="node80" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1395,477,1544,523"/><area shape="rect" id="node82" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="1611,485,1771,515"/><area shape="rect" id="node87" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="908,338,1071,385"/><area shape="rect" id="node90" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1164,354,1300,401"/><area shape="rect" id="node92" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1165,285,1299,331"/><area shape="rect" id="node97" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="891,605,1088,635"/><area shape="rect" id="node99" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1157,605,1307,635"/><area shape="rect" id="node101" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="1377,605,1561,635"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aff4e2427168bc7585fcfa5eca6a94af0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_backend_get_global_contexts </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$site_record</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Find all of the drush contexts that are used to cache global values and return them in an associative array. </p>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00848">848</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="drush_8inc_source.html#l00255">drush_get_global_options()</a>, and <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00706">drush_backend_invoke_concurrent()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_aff4e2427168bc7585fcfa5eca6a94af0_cgraph.png" border="0" usemap="#backend_8inc_aff4e2427168bc7585fcfa5eca6a94af0_cgraph" alt=""/></div>
<map name="backend_8inc_aff4e2427168bc7585fcfa5eca6a94af0_cgraph" id="backend_8inc_aff4e2427168bc7585fcfa5eca6a94af0_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1076,43,1204,72"/><area shape="rect" id="node5" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="199,69,367,99"/><area shape="rect" id="node16" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="223,173,343,203"/><area shape="rect" id="node7" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="416,61,579,107"/><area shape="rect" id="node9" href="includes_2command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="627,69,819,99"/><area shape="rect" id="node11" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="868,43,1025,72"/><area shape="rect" id="node14" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="871,96,1023,125"/><area shape="rect" id="node18" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="433,200,561,229"/><area shape="rect" id="node21" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="423,253,572,283"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_aff4e2427168bc7585fcfa5eca6a94af0_icgraph.png" border="0" usemap="#backend_8inc_aff4e2427168bc7585fcfa5eca6a94af0_icgraph" alt=""/></div>
<map name="backend_8inc_aff4e2427168bc7585fcfa5eca6a94af0_icgraph" id="backend_8inc_aff4e2427168bc7585fcfa5eca6a94af0_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="197,406,352,453"/><area shape="rect" id="node5" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="423,59,529,88"/><area shape="rect" id="node13" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="400,771,552,800"/><area shape="rect" id="node7" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="659,5,752,35"/><area shape="rect" id="node9" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="617,59,793,88"/><area shape="rect" id="node11" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="875,59,1040,88"/><area shape="rect" id="node15" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1129,232,1271,261"/><area shape="rect" id="node17" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="631,771,780,800"/><area shape="rect" id="node19" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="636,824,775,853"/><area shape="rect" id="node21" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="632,877,779,907"/><area shape="rect" id="node23" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="623,931,788,960"/><area shape="rect" id="node25" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="627,984,784,1013"/><area shape="rect" id="node27" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="628,1194,783,1241"/><area shape="rect" id="node39" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="625,1091,785,1120"/><area shape="rect" id="node41" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="904,692,1011,721"/><area shape="rect" id="node43" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="632,717,779,747"/><area shape="rect" id="node46" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="635,1264,776,1293"/><area shape="rect" id="node48" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="617,1317,793,1347"/><area shape="rect" id="node50" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="615,1371,796,1400"/><area shape="rect" id="node52" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="600,1424,811,1453"/><area shape="rect" id="node54" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="629,112,781,141"/><area shape="rect" id="node56" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="645,165,765,195"/><area shape="rect" id="node58" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="623,218,788,265"/><area shape="rect" id="node60" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="872,1058,1043,1105"/><area shape="rect" id="node64" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1105,547,1295,576"/><area shape="rect" id="node66" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="603,1037,808,1067"/><area shape="rect" id="node69" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="637,477,773,523"/><area shape="rect" id="node84" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="637,338,773,385"/><area shape="rect" id="node94" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="627,597,784,643"/><area shape="rect" id="node103" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="624,407,787,454"/><area shape="rect" id="node29" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="883,1194,1032,1241"/><area shape="rect" id="node31" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1127,1256,1273,1285"/><area shape="rect" id="node35" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1140,1149,1260,1179"/><area shape="rect" id="node37" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1131,1203,1269,1232"/><area shape="rect" id="node33" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1357,1256,1517,1285"/><area shape="rect" id="node62" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1156,1067,1244,1096"/><area shape="rect" id="node71" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="875,407,1040,454"/><area shape="rect" id="node75" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="887,477,1028,523"/><area shape="rect" id="node73" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1129,424,1271,453"/><area shape="rect" id="node78" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1115,477,1285,523"/><area shape="rect" id="node80" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1363,477,1512,523"/><area shape="rect" id="node82" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="1579,485,1739,515"/><area shape="rect" id="node87" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="876,338,1039,385"/><area shape="rect" id="node90" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1132,354,1268,401"/><area shape="rect" id="node92" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1133,285,1267,331"/><area shape="rect" id="node97" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="859,605,1056,635"/><area shape="rect" id="node99" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1125,605,1275,635"/><area shape="rect" id="node101" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="1345,605,1529,635"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a4b057a86151c5b6ee4ca67022ee864e4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_backend_get_stdin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read options fron STDIN during POST requests.</p>
<p>This function will read any text from the STDIN pipe, and attempts to generate an associative array if valid JSON was received.</p>
<dl class="section return"><dt>Returns</dt><dd>An associative array of options, if successfull. Otherwise FALSE. </dd></dl>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l01231">1231</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="includes_2environment_8inc_source.html#l00501">drush_is_windows()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a4b057a86151c5b6ee4ca67022ee864e4_cgraph.png" border="0" usemap="#backend_8inc_a4b057a86151c5b6ee4ca67022ee864e4_cgraph" alt=""/></div>
<map name="backend_8inc_a4b057a86151c5b6ee4ca67022ee864e4_cgraph" id="backend_8inc_a4b057a86151c5b6ee4ca67022ee864e4_cgraph">
<area shape="rect" id="node3" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="199,13,327,43"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ae4fc02494df344445fa5f139fa843ac0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_backend_integrate </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$backend_options</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$outputted</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Integrate log messages and error statuses into the current process.</p>
<p>Output produced by the called script will be printed if we didn't print it on the fly, errors will be set, and log messages will be logged locally, if not already logged.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>The associative array returned from the external command. </td></tr>
    <tr><td class="paramname">outputted</td><td>Whether output has already been handled. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00278">278</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="backend_8inc_source.html#l00513">_drush_backend_print_output()</a>, <a class="el" href="drush_8inc_source.html#l01775">drush_cmp_error()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>, <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00243">drush_backend_parse_output()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_ae4fc02494df344445fa5f139fa843ac0_cgraph.png" border="0" usemap="#backend_8inc_ae4fc02494df344445fa5f139fa843ac0_cgraph" alt=""/></div>
<map name="backend_8inc_ae4fc02494df344445fa5f139fa843ac0_cgraph" id="backend_8inc_ae4fc02494df344445fa5f139fa843ac0_cgraph">
<area shape="rect" id="node3" href="backend_8inc.html#aabec94a039db3602741bb3282fec0729" title="_drush_backend_print\l_output" alt="" coords="229,5,379,51"/><area shape="rect" id="node5" href="group__errorhandling.html#gafaa8004ee101cc91df57fae59e5d8956" title="drush_cmp_error" alt="" coords="245,75,363,104"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="897,204,1025,233"/><area shape="rect" id="node12" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="480,179,557,208"/><area shape="rect" id="node18" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="248,231,360,260"/><area shape="rect" id="node25" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="285,339,323,368"/><area shape="rect" id="node7" href="group__errorhandling.html#gaf64f258413d1fed041c634581e39bff0" title="drush_get_error_log" alt="" coords="669,75,805,104"/><area shape="rect" id="node15" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="660,229,815,259"/><area shape="rect" id="node21" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="428,333,609,363"/><area shape="rect" id="node27" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="452,386,585,433"/><area shape="rect" id="node29" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="665,364,809,393"/><area shape="rect" id="node31" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="864,364,1059,393"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_ae4fc02494df344445fa5f139fa843ac0_icgraph.png" border="0" usemap="#backend_8inc_ae4fc02494df344445fa5f139fa843ac0_icgraph" alt=""/></div>
<map name="backend_8inc_ae4fc02494df344445fa5f139fa843ac0_icgraph" id="backend_8inc_ae4fc02494df344445fa5f139fa843ac0_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a31be2d52e209d3e6ac359e971cf1fd7b" title="drush_backend_parse\l_output" alt="" coords="229,406,379,453"/><area shape="rect" id="node5" href="backend_8inc.html#a1d3f3caae7e1300c53e2cc1fe4ffb932" title="_drush_backend_invoke" alt="" coords="427,415,589,444"/><area shape="rect" id="node7" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="637,406,792,453"/><area shape="rect" id="node9" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="863,59,969,88"/><area shape="rect" id="node17" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="840,771,992,800"/><area shape="rect" id="node11" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="1099,5,1192,35"/><area shape="rect" id="node13" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="1057,59,1233,88"/><area shape="rect" id="node15" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1315,59,1480,88"/><area shape="rect" id="node19" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1569,232,1711,261"/><area shape="rect" id="node21" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="1071,771,1220,800"/><area shape="rect" id="node23" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="1076,824,1215,853"/><area shape="rect" id="node25" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="1072,877,1219,907"/><area shape="rect" id="node27" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="1063,931,1228,960"/><area shape="rect" id="node29" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="1067,984,1224,1013"/><area shape="rect" id="node31" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="1068,1194,1223,1241"/><area shape="rect" id="node43" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="1065,1091,1225,1120"/><area shape="rect" id="node45" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="1344,692,1451,721"/><area shape="rect" id="node47" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="1072,717,1219,747"/><area shape="rect" id="node50" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="1075,1264,1216,1293"/><area shape="rect" id="node52" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="1057,1317,1233,1347"/><area shape="rect" id="node54" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="1055,1371,1236,1400"/><area shape="rect" id="node56" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="1040,1424,1251,1453"/><area shape="rect" id="node58" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1069,112,1221,141"/><area shape="rect" id="node60" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="1085,165,1205,195"/><area shape="rect" id="node62" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="1063,218,1228,265"/><area shape="rect" id="node64" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1312,1058,1483,1105"/><area shape="rect" id="node68" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1545,547,1735,576"/><area shape="rect" id="node70" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="1043,1037,1248,1067"/><area shape="rect" id="node73" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="1077,477,1213,523"/><area shape="rect" id="node86" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="1077,338,1213,385"/><area shape="rect" id="node96" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="1067,597,1224,643"/><area shape="rect" id="node103" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="1064,407,1227,454"/><area shape="rect" id="node33" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="1323,1194,1472,1241"/><area shape="rect" id="node35" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1567,1256,1713,1285"/><area shape="rect" id="node39" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1580,1149,1700,1179"/><area shape="rect" id="node41" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1571,1203,1709,1232"/><area shape="rect" id="node37" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1785,1256,1945,1285"/><area shape="rect" id="node66" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1596,1067,1684,1096"/><area shape="rect" id="node75" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="1315,407,1480,454"/><area shape="rect" id="node79" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="1327,477,1468,523"/><area shape="rect" id="node77" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1569,424,1711,453"/><area shape="rect" id="node82" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1555,477,1725,523"/><area shape="rect" id="node84" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1791,477,1940,523"/><area shape="rect" id="node89" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="1316,338,1479,385"/><area shape="rect" id="node92" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1572,354,1708,401"/><area shape="rect" id="node94" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1573,285,1707,331"/><area shape="rect" id="node99" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="1299,605,1496,635"/><area shape="rect" id="node101" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1565,605,1715,635"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa530f9f9b70006185389091b5d870995"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_backend_integrate_log </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$entry</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Supress log message output during backend integrate. </p>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00315">315</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

</div>
</div>
<a class="anchor" id="a1d3f3caae7e1300c53e2cc1fe4ffb932"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_backend_invoke </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$cmds</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$common_backend_options</em> = <code>array()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create a new pipe with proc_open, and attempt to parse the output.</p>
<p>We use proc_open instead of exec or others because proc_open is best for doing bi-directional pipes, and we need to pass data over STDIN to the remote script.</p>
<p>Exec also seems to exhibit some strangeness in keeping the returned data intact, in that it modifies the newline characters.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cmd</td><td>The complete command line call to use. </td></tr>
    <tr><td class="paramname">post_options</td><td>An associative array to json-encode and pass to the remote script on stdin. </td></tr>
    <tr><td class="paramname">backend_options</td><td>Options for the invocation.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>If the command could not be completed successfully, FALSE. If one command was executed, this will return an associative array containing the data from <a class="el" href="backend_8inc.html#a3d855df98e2c6cb0314a947058f92b99">drush_backend_output()</a>. If multiple commands were executed, this will return an associative array containing one item, 'concurrent', which will contain a list of the different backend invoke results from each concurrent command. </dd></dl>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00984">984</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="backend_8inc_source.html#l00341">_drush_backend_proc_open()</a>, <a class="el" href="drush_8inc_source.html#l00022">DRUSH_APPLICATION_ERROR</a>, <a class="el" href="backend_8inc_source.html#l00243">drush_backend_parse_output()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="context_8inc_source.html#l00472">drush_get_option_override()</a>, <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>, <a class="el" href="output_8inc_source.html#l00026">drush_print()</a>, <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>, <a class="el" href="exec_8inc_source.html#l00229">drush_shell_proc_open()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00706">drush_backend_invoke_concurrent()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a1d3f3caae7e1300c53e2cc1fe4ffb932_cgraph.png" border="0" usemap="#backend_8inc_a1d3f3caae7e1300c53e2cc1fe4ffb932_cgraph" alt=""/></div>
<map name="backend_8inc_a1d3f3caae7e1300c53e2cc1fe4ffb932_cgraph" id="backend_8inc_a1d3f3caae7e1300c53e2cc1fe4ffb932_cgraph">
<area shape="rect" id="node3" href="backend_8inc.html#aad736c236f213abc274709f79e41edf7" title="_drush_backend_proc_open" alt="" coords="216,205,400,235"/><area shape="rect" id="node7" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="923,153,1000,183"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1340,377,1468,407"/><area shape="rect" id="node20" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="728,535,765,564"/><area shape="rect" id="node31" href="backend_8inc.html#a31be2d52e209d3e6ac359e971cf1fd7b" title="drush_backend_parse\l_output" alt="" coords="233,425,383,471"/><area shape="rect" id="node43" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="691,377,803,407"/><area shape="rect" id="node52" href="context_8inc.html#a559008f6decb23108b83e704208e415e" title="drush_get_option_override" alt="" coords="221,545,395,575"/><area shape="rect" id="node64" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="493,641,579,671"/><area shape="rect" id="node68" href="group__commandwrappers.html#ga3a1bb3ae751f14749ce1dbe4ec9c3288" title="drush_shell_proc_open" alt="" coords="231,649,385,679"/><area shape="rect" id="node5" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="472,93,600,123"/><area shape="rect" id="node14" href="backend_8inc.html#aab9943ccb47db227e2bcfce3c2b9a36a" title="drush_backend_parse\l_packets" alt="" coords="461,197,611,243"/><area shape="rect" id="node29" href="backend_8inc.html#aabec94a039db3602741bb3282fec0729" title="_drush_backend_print\l_output" alt="" coords="672,257,821,303"/><area shape="rect" id="node11" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1103,273,1257,303"/><area shape="rect" id="node16" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1116,216,1244,245"/><area shape="rect" id="node22" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="895,531,1028,578"/><area shape="rect" id="node24" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1108,537,1252,567"/><area shape="rect" id="node26" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1307,537,1501,567"/><area shape="rect" id="node33" href="backend_8inc.html#ae4fc02494df344445fa5f139fa843ac0" title="_drush_backend_integrate" alt="" coords="449,429,623,459"/><area shape="rect" id="node36" href="group__errorhandling.html#gafaa8004ee101cc91df57fae59e5d8956" title="drush_cmp_error" alt="" coords="688,481,805,511"/><area shape="rect" id="node38" href="group__errorhandling.html#gaf64f258413d1fed041c634581e39bff0" title="drush_get_error_log" alt="" coords="1112,481,1248,511"/><area shape="rect" id="node46" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="871,377,1052,407"/><area shape="rect" id="node54" href="context_8inc.html#add3af7aa09b1ccf49718577a8d7aa61d" title="drush_sitealias_get\l_option" alt="" coords="469,562,603,609"/><area shape="rect" id="node56" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="687,641,807,671"/><area shape="rect" id="node58" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="897,601,1025,631"/><area shape="rect" id="node61" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="887,655,1036,684"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a1d3f3caae7e1300c53e2cc1fe4ffb932_icgraph.png" border="0" usemap="#backend_8inc_a1d3f3caae7e1300c53e2cc1fe4ffb932_icgraph" alt=""/></div>
<map name="backend_8inc_a1d3f3caae7e1300c53e2cc1fe4ffb932_icgraph" id="backend_8inc_a1d3f3caae7e1300c53e2cc1fe4ffb932_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="216,406,371,453"/><area shape="rect" id="node5" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="441,59,548,88"/><area shape="rect" id="node13" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="419,771,571,800"/><area shape="rect" id="node7" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="677,5,771,35"/><area shape="rect" id="node9" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="636,59,812,88"/><area shape="rect" id="node11" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="893,59,1059,88"/><area shape="rect" id="node15" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1148,232,1289,261"/><area shape="rect" id="node17" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="649,771,799,800"/><area shape="rect" id="node19" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="655,824,793,853"/><area shape="rect" id="node21" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="651,877,797,907"/><area shape="rect" id="node23" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="641,931,807,960"/><area shape="rect" id="node25" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="645,984,803,1013"/><area shape="rect" id="node27" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="647,1194,801,1241"/><area shape="rect" id="node39" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="644,1091,804,1120"/><area shape="rect" id="node41" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="923,692,1029,721"/><area shape="rect" id="node43" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="651,717,797,747"/><area shape="rect" id="node46" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="653,1264,795,1293"/><area shape="rect" id="node48" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="636,1317,812,1347"/><area shape="rect" id="node50" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="633,1371,815,1400"/><area shape="rect" id="node52" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="619,1424,829,1453"/><area shape="rect" id="node54" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="648,112,800,141"/><area shape="rect" id="node56" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="664,165,784,195"/><area shape="rect" id="node58" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="641,218,807,265"/><area shape="rect" id="node60" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="891,1058,1061,1105"/><area shape="rect" id="node64" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1124,547,1313,576"/><area shape="rect" id="node66" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="621,1037,827,1067"/><area shape="rect" id="node69" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="656,477,792,523"/><area shape="rect" id="node84" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="656,338,792,385"/><area shape="rect" id="node94" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="645,597,803,643"/><area shape="rect" id="node103" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="643,407,805,454"/><area shape="rect" id="node29" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="901,1194,1051,1241"/><area shape="rect" id="node31" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1145,1256,1292,1285"/><area shape="rect" id="node35" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1159,1149,1279,1179"/><area shape="rect" id="node37" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1149,1203,1288,1232"/><area shape="rect" id="node33" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1376,1256,1536,1285"/><area shape="rect" id="node62" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1175,1067,1263,1096"/><area shape="rect" id="node71" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="893,407,1059,454"/><area shape="rect" id="node75" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="905,477,1047,523"/><area shape="rect" id="node73" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1148,424,1289,453"/><area shape="rect" id="node78" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1133,477,1304,523"/><area shape="rect" id="node80" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1381,477,1531,523"/><area shape="rect" id="node82" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="1597,485,1757,515"/><area shape="rect" id="node87" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="895,338,1057,385"/><area shape="rect" id="node90" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1151,354,1287,401"/><area shape="rect" id="node92" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1152,285,1285,331"/><area shape="rect" id="node97" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="877,605,1075,635"/><area shape="rect" id="node99" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1144,605,1293,635"/><area shape="rect" id="node101" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="1364,605,1548,635"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aabec94a039db3602741bb3282fec0729"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_backend_print_output </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$output_string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$backend_options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Print the output received from a call to backend invoke, adding the label to the head of each line if necessary. </p>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00513">513</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00278">_drush_backend_integrate()</a>, and <a class="el" href="backend_8inc_source.html#l00341">_drush_backend_proc_open()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_aabec94a039db3602741bb3282fec0729_icgraph.png" border="0" usemap="#backend_8inc_aabec94a039db3602741bb3282fec0729_icgraph" alt=""/></div>
<map name="backend_8inc_aabec94a039db3602741bb3282fec0729_icgraph" id="backend_8inc_aabec94a039db3602741bb3282fec0729_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#ae4fc02494df344445fa5f139fa843ac0" title="_drush_backend_integrate" alt="" coords="204,387,377,416"/><area shape="rect" id="node103" href="backend_8inc.html#aad736c236f213abc274709f79e41edf7" title="_drush_backend_proc_open" alt="" coords="427,445,611,475"/><area shape="rect" id="node5" href="backend_8inc.html#a31be2d52e209d3e6ac359e971cf1fd7b" title="drush_backend_parse\l_output" alt="" coords="444,375,593,422"/><area shape="rect" id="node7" href="backend_8inc.html#a1d3f3caae7e1300c53e2cc1fe4ffb932" title="_drush_backend_invoke" alt="" coords="659,415,821,444"/><area shape="rect" id="node9" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="869,406,1024,453"/><area shape="rect" id="node11" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="1095,59,1201,88"/><area shape="rect" id="node19" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="1072,771,1224,800"/><area shape="rect" id="node13" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="1331,5,1424,35"/><area shape="rect" id="node15" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="1289,59,1465,88"/><area shape="rect" id="node17" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1547,59,1712,88"/><area shape="rect" id="node21" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1801,232,1943,261"/><area shape="rect" id="node23" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="1303,771,1452,800"/><area shape="rect" id="node25" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="1308,824,1447,853"/><area shape="rect" id="node27" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="1304,877,1451,907"/><area shape="rect" id="node29" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="1295,931,1460,960"/><area shape="rect" id="node31" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="1299,984,1456,1013"/><area shape="rect" id="node33" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="1300,1194,1455,1241"/><area shape="rect" id="node43" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="1297,1091,1457,1120"/><area shape="rect" id="node45" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="1576,692,1683,721"/><area shape="rect" id="node47" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="1304,717,1451,747"/><area shape="rect" id="node50" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="1307,1264,1448,1293"/><area shape="rect" id="node52" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="1289,1317,1465,1347"/><area shape="rect" id="node54" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="1287,1371,1468,1400"/><area shape="rect" id="node56" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="1272,1424,1483,1453"/><area shape="rect" id="node58" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1301,112,1453,141"/><area shape="rect" id="node60" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="1317,165,1437,195"/><area shape="rect" id="node62" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="1295,218,1460,265"/><area shape="rect" id="node64" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1544,1058,1715,1105"/><area shape="rect" id="node68" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1777,547,1967,576"/><area shape="rect" id="node70" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="1275,1037,1480,1067"/><area shape="rect" id="node73" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="1309,477,1445,523"/><area shape="rect" id="node84" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="1309,338,1445,385"/><area shape="rect" id="node94" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="1299,597,1456,643"/><area shape="rect" id="node101" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="1296,407,1459,454"/><area shape="rect" id="node35" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="1555,1194,1704,1241"/><area shape="rect" id="node37" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1799,1256,1945,1285"/><area shape="rect" id="node39" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1812,1149,1932,1179"/><area shape="rect" id="node41" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1803,1203,1941,1232"/><area shape="rect" id="node66" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1828,1067,1916,1096"/><area shape="rect" id="node75" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="1547,407,1712,454"/><area shape="rect" id="node79" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="1559,477,1700,523"/><area shape="rect" id="node77" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1801,424,1943,453"/><area shape="rect" id="node82" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1787,477,1957,523"/><area shape="rect" id="node87" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="1548,338,1711,385"/><area shape="rect" id="node90" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1804,354,1940,401"/><area shape="rect" id="node92" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1805,285,1939,331"/><area shape="rect" id="node97" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="1531,605,1728,635"/><area shape="rect" id="node99" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1797,605,1947,635"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aad736c236f213abc274709f79e41edf7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_backend_proc_open </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$cmds</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$process_limit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Call an external command using proc_open.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cmds</td><td>An array of records containing the following elements: 'cmd' - The command to execute, already properly escaped 'post-options' - An associative array that will be JSON encoded and passed to the script being called. Objects are not allowed, as they do not json_decode gracefully. 'backend-options' - Options that control the operation of the backend invoke<ul>
<li>OR - An array of commands to execute. These commands already need to be properly escaped. In this case, post-options will default to empty, and a default output label will be generated. </li>
</ul>
</td></tr>
    <tr><td class="paramname">data</td><td>An associative array that will be JSON encoded and passed to the script being called. Objects are not allowed, as they do not json_decode gracefully.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>False if the command could not be executed, or did not return any output. If it executed successfully, it returns an associative array containing the command called, the output of the command, and the error code of the command. </dd></dl>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00341">341</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="backend_8inc_source.html#l00513">_drush_backend_print_output()</a>, <a class="el" href="backend_8inc_source.html#l00069">DRUSH_BACKEND_OUTPUT_START</a>, <a class="el" href="backend_8inc_source.html#l00533">drush_backend_parse_packets()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00501">drush_is_windows()</a>, and <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00984">_drush_backend_invoke()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_aad736c236f213abc274709f79e41edf7_cgraph.png" border="0" usemap="#backend_8inc_aad736c236f213abc274709f79e41edf7_cgraph" alt=""/></div>
<map name="backend_8inc_aad736c236f213abc274709f79e41edf7_cgraph" id="backend_8inc_aad736c236f213abc274709f79e41edf7_cgraph">
<area shape="rect" id="node3" href="backend_8inc.html#aabec94a039db3602741bb3282fec0729" title="_drush_backend_print\l_output" alt="" coords="237,5,387,51"/><area shape="rect" id="node5" href="backend_8inc.html#aab9943ccb47db227e2bcfce3c2b9a36a" title="drush_backend_parse\l_packets" alt="" coords="237,74,387,121"/><area shape="rect" id="node11" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="436,141,513,171"/><area shape="rect" id="node26" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="248,195,376,224"/><area shape="rect" id="node7" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="777,85,905,115"/><area shape="rect" id="node17" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="456,29,493,59"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="996,112,1124,141"/><area shape="rect" id="node14" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="564,137,719,167"/><area shape="rect" id="node19" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="575,17,708,63"/><area shape="rect" id="node21" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="769,29,913,59"/><area shape="rect" id="node23" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="963,29,1157,59"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_aad736c236f213abc274709f79e41edf7_icgraph.png" border="0" usemap="#backend_8inc_aad736c236f213abc274709f79e41edf7_icgraph" alt=""/></div>
<map name="backend_8inc_aad736c236f213abc274709f79e41edf7_icgraph" id="backend_8inc_aad736c236f213abc274709f79e41edf7_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a1d3f3caae7e1300c53e2cc1fe4ffb932" title="_drush_backend_invoke" alt="" coords="237,415,400,444"/><area shape="rect" id="node5" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="448,406,603,453"/><area shape="rect" id="node7" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="673,59,780,88"/><area shape="rect" id="node15" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="651,771,803,800"/><area shape="rect" id="node9" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="909,5,1003,35"/><area shape="rect" id="node11" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="868,59,1044,88"/><area shape="rect" id="node13" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1125,59,1291,88"/><area shape="rect" id="node17" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1380,232,1521,261"/><area shape="rect" id="node19" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="881,771,1031,800"/><area shape="rect" id="node21" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="887,824,1025,853"/><area shape="rect" id="node23" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="883,877,1029,907"/><area shape="rect" id="node25" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="873,931,1039,960"/><area shape="rect" id="node27" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="877,984,1035,1013"/><area shape="rect" id="node29" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="879,1194,1033,1241"/><area shape="rect" id="node41" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="876,1091,1036,1120"/><area shape="rect" id="node43" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="1155,692,1261,721"/><area shape="rect" id="node45" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="883,717,1029,747"/><area shape="rect" id="node48" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="885,1264,1027,1293"/><area shape="rect" id="node50" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="868,1317,1044,1347"/><area shape="rect" id="node52" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="865,1371,1047,1400"/><area shape="rect" id="node54" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="851,1424,1061,1453"/><area shape="rect" id="node56" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="880,112,1032,141"/><area shape="rect" id="node58" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="896,165,1016,195"/><area shape="rect" id="node60" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="873,218,1039,265"/><area shape="rect" id="node62" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1123,1058,1293,1105"/><area shape="rect" id="node66" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1356,547,1545,576"/><area shape="rect" id="node68" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="853,1037,1059,1067"/><area shape="rect" id="node71" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="888,477,1024,523"/><area shape="rect" id="node84" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="888,338,1024,385"/><area shape="rect" id="node94" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="877,597,1035,643"/><area shape="rect" id="node103" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="875,407,1037,454"/><area shape="rect" id="node31" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="1133,1194,1283,1241"/><area shape="rect" id="node33" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1377,1256,1524,1285"/><area shape="rect" id="node37" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1391,1149,1511,1179"/><area shape="rect" id="node39" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1381,1203,1520,1232"/><area shape="rect" id="node35" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1608,1256,1768,1285"/><area shape="rect" id="node64" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1407,1067,1495,1096"/><area shape="rect" id="node73" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="1125,407,1291,454"/><area shape="rect" id="node77" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="1137,477,1279,523"/><area shape="rect" id="node75" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1380,424,1521,453"/><area shape="rect" id="node80" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1365,477,1536,523"/><area shape="rect" id="node82" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1613,477,1763,523"/><area shape="rect" id="node87" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="1127,338,1289,385"/><area shape="rect" id="node90" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1383,354,1519,401"/><area shape="rect" id="node92" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1384,285,1517,331"/><area shape="rect" id="node97" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="1109,605,1307,635"/><area shape="rect" id="node99" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1376,605,1525,635"/><area shape="rect" id="node101" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="1596,605,1780,635"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a76fe1964075bf89898a79d07885dcacf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_escape_option </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$value</em> = <code>TRUE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$os</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return a properly formatted and escaped command line option</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>The name of the option. </td></tr>
    <tr><td class="paramname">value</td><td>The value of the option.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>If the value is set to TRUE, this function will return " &amp;ndash;key" In other cases it will return " &amp;ndash;key='value'" </dd></dl>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l01211">1211</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="exec_8inc_source.html#l00312">drush_escapeshellarg()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l01180">_drush_backend_argument_string()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a76fe1964075bf89898a79d07885dcacf_cgraph.png" border="0" usemap="#backend_8inc_a76fe1964075bf89898a79d07885dcacf_cgraph" alt=""/></div>
<map name="backend_8inc_a76fe1964075bf89898a79d07885dcacf_cgraph" id="backend_8inc_a76fe1964075bf89898a79d07885dcacf_cgraph">
<area shape="rect" id="node3" href="group__commandwrappers.html#gafc52f7e769d935b4d2462467cdf8d5ee" title="drush_escapeshellarg" alt="" coords="207,67,353,96"/><area shape="rect" id="node5" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="416,5,544,35"/><area shape="rect" id="node7" href="group__commandwrappers.html#gac60b4740ceccf95b8e60d1896d93d2ab" title="_drush_escapeshellarg\l_windows" alt="" coords="403,58,557,105"/><area shape="rect" id="node9" href="group__commandwrappers.html#ga561ce790cc15caa5e1f0bfebc2546529" title="_drush_escapeshellarg\l_linux" alt="" coords="403,127,557,174"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a76fe1964075bf89898a79d07885dcacf_icgraph.png" border="0" usemap="#backend_8inc_a76fe1964075bf89898a79d07885dcacf_icgraph" alt=""/></div>
<map name="backend_8inc_a76fe1964075bf89898a79d07885dcacf_icgraph" id="backend_8inc_a76fe1964075bf89898a79d07885dcacf_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#ad19c067bfbd87dfc63c55659723aaf60" title="_drush_backend_argument\l_string" alt="" coords="205,406,384,453"/><area shape="rect" id="node5" href="backend_8inc.html#aa9bff3ffcd61a4dd945b567057a54e5d" title="_drush_backend_generate\l_command" alt="" coords="433,435,607,482"/><area shape="rect" id="node7" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="656,406,811,453"/><area shape="rect" id="node9" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="881,59,988,88"/><area shape="rect" id="node17" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="859,771,1011,800"/><area shape="rect" id="node11" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="1117,5,1211,35"/><area shape="rect" id="node13" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="1076,59,1252,88"/><area shape="rect" id="node15" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1333,59,1499,88"/><area shape="rect" id="node19" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1588,232,1729,261"/><area shape="rect" id="node21" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="1089,771,1239,800"/><area shape="rect" id="node23" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="1095,824,1233,853"/><area shape="rect" id="node25" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="1091,877,1237,907"/><area shape="rect" id="node27" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="1081,931,1247,960"/><area shape="rect" id="node29" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="1085,984,1243,1013"/><area shape="rect" id="node31" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="1087,1194,1241,1241"/><area shape="rect" id="node43" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="1084,1091,1244,1120"/><area shape="rect" id="node45" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="1363,692,1469,721"/><area shape="rect" id="node47" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="1091,717,1237,747"/><area shape="rect" id="node50" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="1093,1264,1235,1293"/><area shape="rect" id="node52" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="1076,1317,1252,1347"/><area shape="rect" id="node54" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="1073,1371,1255,1400"/><area shape="rect" id="node56" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="1059,1424,1269,1453"/><area shape="rect" id="node58" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1088,112,1240,141"/><area shape="rect" id="node60" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="1104,165,1224,195"/><area shape="rect" id="node62" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="1081,218,1247,265"/><area shape="rect" id="node64" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1331,1058,1501,1105"/><area shape="rect" id="node68" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1564,547,1753,576"/><area shape="rect" id="node70" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="1061,1037,1267,1067"/><area shape="rect" id="node73" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="1096,477,1232,523"/><area shape="rect" id="node86" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="1096,338,1232,385"/><area shape="rect" id="node96" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="1085,597,1243,643"/><area shape="rect" id="node103" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="1083,407,1245,454"/><area shape="rect" id="node33" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="1341,1194,1491,1241"/><area shape="rect" id="node35" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1585,1256,1732,1285"/><area shape="rect" id="node39" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1599,1149,1719,1179"/><area shape="rect" id="node41" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1589,1203,1728,1232"/><area shape="rect" id="node37" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1804,1256,1964,1285"/><area shape="rect" id="node66" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1615,1067,1703,1096"/><area shape="rect" id="node75" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="1333,407,1499,454"/><area shape="rect" id="node79" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="1345,477,1487,523"/><area shape="rect" id="node77" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1588,424,1729,453"/><area shape="rect" id="node82" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1573,477,1744,523"/><area shape="rect" id="node84" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1809,477,1959,523"/><area shape="rect" id="node89" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="1335,338,1497,385"/><area shape="rect" id="node92" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1591,354,1727,401"/><area shape="rect" id="node94" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1592,285,1725,331"/><area shape="rect" id="node99" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="1317,605,1515,635"/><area shape="rect" id="node101" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1584,605,1733,635"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ae4c4323460af25cdfe11551030f76fce"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_backend_generate_sitealias </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$backend_options</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Helper function that generates an anonymous site alias specification for the given parameters. </p>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l01042">1042</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

</div>
</div>
<a class="anchor" id="ac295e52c1fa40b91d9100517ed8e76de"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_backend_get_result </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Retrieves the results from the last call to backend_invoke.</p>
<dl class="section return"><dt>Returns</dt><dd>array An associative array containing information from the last backend invoke. The keys in the array include:</dd></dl>
<ul>
<li>output: This item contains the textual output of the command that was executed.</li>
<li>object: Contains the PHP object representation of the result of the command.</li>
<li>self: The self object contains the alias record that was used to select the bootstrapped site when the command was executed.</li>
<li>error_status: This item returns the error status for the command. Zero means "no error".</li>
<li>log: The log item contains an array of log messages from the command execution ordered chronologically. Each log entery is an associative array. A log entry contains following items: o type: The type of log entry, such as 'notice' or 'warning' o message: The log message o timestamp: The time that the message was logged o memory: Available memory at the time that the message was logged o error: The error code associated with the log message (only for log entries whose type is 'error')</li>
<li>error_log: The error_log item contains another representation of entries from the log. Only log entries whose 'error' item is set will appear in the error log. The error log is an associative array whose key is the error code, and whose value is an array of messages&ndash;one message for every log entry with the same error code.</li>
<li>context: The context item contains a representation of all option values that affected the operation of the command, including both the command line options, options set in a drushrc.php configuration files, and options set from the alias record used with the command. </li>
</ul>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00127">127</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00135">drush_backend_output()</a>, and <a class="el" href="includes_2command_8inc_source.html#l00448">drush_handle_command_output()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_ac295e52c1fa40b91d9100517ed8e76de_cgraph.png" border="0" usemap="#backend_8inc_ac295e52c1fa40b91d9100517ed8e76de_cgraph" alt=""/></div>
<map name="backend_8inc_ac295e52c1fa40b91d9100517ed8e76de_cgraph" id="backend_8inc_ac295e52c1fa40b91d9100517ed8e76de_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="231,5,359,35"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_ac295e52c1fa40b91d9100517ed8e76de_icgraph.png" border="0" usemap="#backend_8inc_ac295e52c1fa40b91d9100517ed8e76de_icgraph" alt=""/></div>
<map name="backend_8inc_ac295e52c1fa40b91d9100517ed8e76de_icgraph" id="backend_8inc_ac295e52c1fa40b91d9100517ed8e76de_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a3d855df98e2c6cb0314a947058f92b99" title="drush_backend_output" alt="" coords="235,55,387,84"/><area shape="rect" id="node9" href="group__dispatching.html#gaec7e84c5668d8e13f33c948659112495" title="drush_handle_command\l_output" alt="" coords="229,107,392,154"/><area shape="rect" id="node5" href="preflight_8inc.html#a615008fc32203b55f5355e105450d60b" title="drush_shutdown" alt="" coords="456,5,573,35"/><area shape="rect" id="node7" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="455,59,575,88"/><area shape="rect" id="node11" href="group__dispatching.html#gac0d79cc522d6f5cecf9f72ecc5ecceb8" title="_drush_invoke_hooks" alt="" coords="441,116,588,145"/><area shape="rect" id="node13" href="group__dispatching.html#gae7a7f1f4b8c5edffbc2ececc6638698a" title="drush_command" alt="" coords="639,116,756,145"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a7852d5448cd4ee3a2082eccd24d690e7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_backend_invoke_concurrent </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$invocations</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$common_options</em> = <code>array()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$common_backend_options</em> = <code>array()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$default_command</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$default_site</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$context</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Execute a new local or remote command in a new process.</p>
<p>n.b. Prefer <a class="el" href="group__dispatching.html#ga125471885af052278a0874446b332cf9">drush_invoke_process()</a> to this function.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">invocations</td><td>An array of command records to exacute. Each record should contain: 'site': An array containing information used to generate the command. 'remote-host' Optional. A remote host to execute the drush command on. 'remote-user' Optional. Defaults to the current user. If you specify this, you can choose which module to send. 'ssh-options' Optional. Defaults to "-o PasswordAuthentication=no" 'path-aliases' Optional; contains paths to folders and executables useful to the command. 'drush-script' Optional. Defaults to the current <a class="el" href="drush_8php.html">drush.php</a> file on the local machine, and to simply 'drush' (the drush script in the current PATH) on remote servers. You may also specify a different <a class="el" href="drush_8php.html">drush.php</a> script explicitly. You will need to set this when calling drush on a remote server if 'drush' is not in the PATH on that machine. 'command': A defined drush command such as 'cron', 'status' or any of the available ones such as 'drush pm'. 'args': An array of arguments for the command. 'options' Optional. An array containing options to pass to the remote script. Array items with a numeric key are treated as optional arguments to the command. 'backend-options': Optional. Additional parameters that control the operation of the invoke. 'method' Optional. Defaults to 'GET'. If this parameter is set to 'POST', the $data array will be passed to the script being called as a JSON encoded string over the STDIN pipe of that process. This is preferable if you have to pass sensitive data such as passwords and the like. For any other value, the $data array will be collapsed down into a set of command line options to the script. 'integrate' Optional. Defaults to TRUE. If TRUE, any error statuses will be integrated into the current process. This might not be what you want, if you are writing a command that operates on multiple sites. 'log' Optional. Defaults to TRUE. If TRUE, any log messages will be integrated into the current process. 'output' Optional. Defaults to TRUE. If TRUE, output from the command will be synchronously printed to stdout. 'drush-script' Optional. Defaults to the current <a class="el" href="drush_8php.html">drush.php</a> file on the local machine, and to simply 'drush' (the drush script in the current PATH) on remote servers. You may also specify a different <a class="el" href="drush_8php.html">drush.php</a> script explicitly. You will need to set this when calling drush on a remote server if 'drush' is not in the PATH on that machine. 'dispatch-using-alias' Optional. Defaults to FALSE. If specified as a non-empty value the drush command will be dispatched using the alias name on the command line, instead of the options from the alias being added to the command line automatically. </td></tr>
    <tr><td class="paramname">common_options</td><td>Optional. Merged in with the options for each invocation. </td></tr>
    <tr><td class="paramname">backend_options</td><td>Optional. Merged in with the backend options for each invocation. </td></tr>
    <tr><td class="paramname">default_command</td><td>Optional. Used as the 'command' for any invocation that does not define a command explicitly. </td></tr>
    <tr><td class="paramname">default_site</td><td>Optional. Used as the 'site' for any invocation that does not define a site explicitly. </td></tr>
    <tr><td class="paramname">context</td><td>Optional. Passed in to proc_open if provided.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>If the command could not be completed successfully, FALSE. If the command was completed, this will return an associative array containing the data from <a class="el" href="backend_8inc.html#a3d855df98e2c6cb0314a947058f92b99">drush_backend_output()</a>. </dd></dl>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00706">706</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="backend_8inc_source.html#l00598">_drush_backend_adjust_options()</a>, <a class="el" href="backend_8inc_source.html#l01180">_drush_backend_argument_string()</a>, <a class="el" href="backend_8inc_source.html#l00887">_drush_backend_classify_options()</a>, <a class="el" href="backend_8inc_source.html#l01097">_drush_backend_generate_command()</a>, <a class="el" href="backend_8inc_source.html#l00848">_drush_backend_get_global_contexts()</a>, <a class="el" href="backend_8inc_source.html#l00984">_drush_backend_invoke()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00441">drush_build_drush_command()</a>, <a class="el" href="includes_2command_8inc_source.html#l01584">drush_command_get_command_specific_options()</a>, <a class="el" href="exec_8inc_source.html#l00261">drush_os()</a>, and <a class="el" href="sitealias_8inc_source.html#l00176">drush_sitealias_get_record()</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l00102">drush_invoke_process()</a>, and <a class="el" href="make_8drush_8inc_source.html#l00424">make_projects()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a7852d5448cd4ee3a2082eccd24d690e7_cgraph.png" border="0" usemap="#backend_8inc_a7852d5448cd4ee3a2082eccd24d690e7_cgraph" alt=""/></div>
<map name="backend_8inc_a7852d5448cd4ee3a2082eccd24d690e7_cgraph" id="backend_8inc_a7852d5448cd4ee3a2082eccd24d690e7_cgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a895f14d30af875ea1783a3de2355d095" title="_drush_backend_adjust\l_options" alt="" coords="233,124,391,171"/><area shape="rect" id="node5" href="backend_8inc.html#ad19c067bfbd87dfc63c55659723aaf60" title="_drush_backend_argument\l_string" alt="" coords="485,537,664,584"/><area shape="rect" id="node17" href="backend_8inc.html#a20dd75d8a0d75a4e59db35c8918d1d8a" title="_drush_backend_classify\l_options" alt="" coords="228,660,396,707"/><area shape="rect" id="node25" href="backend_8inc.html#aa9bff3ffcd61a4dd945b567057a54e5d" title="_drush_backend_generate\l_command" alt="" coords="225,477,399,524"/><area shape="rect" id="node41" href="group__commandwrappers.html#ga1292121e5bdd4bf19ef4f944b16301ed" title="drush_os" alt="" coords="537,607,612,637"/><area shape="rect" id="node44" href="backend_8inc.html#aff4e2427168bc7585fcfa5eca6a94af0" title="_drush_backend_get\l_global_contexts" alt="" coords="241,752,383,799"/><area shape="rect" id="node49" href="backend_8inc.html#a1d3f3caae7e1300c53e2cc1fe4ffb932" title="_drush_backend_invoke" alt="" coords="231,1082,393,1111"/><area shape="rect" id="node100" href="includes_2environment_8inc.html#a8839a1aae14125ef4128d1477827ca0e" title="drush_build_drush_command" alt="" coords="735,394,924,423"/><area shape="rect" id="node119" href="includes_2command_8inc.html#aed341ec21a59c794b73f7ba031825632" title="drush_command_get_command\l_specific_options" alt="" coords="209,1327,415,1373"/><area shape="rect" id="node126" href="sitealias_8inc.html#ac2f57b80441374522c4e4cdc3b7e0c2b" title="drush_sitealias_get\l_record" alt="" coords="245,193,379,240"/><area shape="rect" id="node7" href="backend_8inc.html#a76fe1964075bf89898a79d07885dcacf" title="_drush_escape_option" alt="" coords="753,498,905,527"/><area shape="rect" id="node9" href="group__commandwrappers.html#gafc52f7e769d935b4d2462467cdf8d5ee" title="drush_escapeshellarg" alt="" coords="989,563,1136,593"/><area shape="rect" id="node11" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="1228,354,1356,383"/><area shape="rect" id="node13" href="group__commandwrappers.html#gac60b4740ceccf95b8e60d1896d93d2ab" title="_drush_escapeshellarg\l_windows" alt="" coords="1215,628,1369,675"/><area shape="rect" id="node15" href="group__commandwrappers.html#ga561ce790cc15caa5e1f0bfebc2546529" title="_drush_escapeshellarg\l_linux" alt="" coords="1215,559,1369,605"/><area shape="rect" id="node19" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="491,730,659,759"/><area shape="rect" id="node23" href="sitealias_8inc.html#a4345c09c2ecb4793246075f06c146fec" title="drush_sitealias_site\l_selection_keys" alt="" coords="507,660,643,707"/><area shape="rect" id="node21" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="748,713,911,760"/><area shape="rect" id="node29" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1003,782,1123,811"/><area shape="rect" id="node37" href="includes_2environment_8inc.html#a395834ff6c51946c9c8a0953aa8f539f" title="drush_is_local_host" alt="" coords="761,317,897,346"/><area shape="rect" id="node31" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1228,802,1356,831"/><area shape="rect" id="node33" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1639,955,1767,985"/><area shape="rect" id="node35" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1217,749,1367,778"/><area shape="rect" id="node51" href="backend_8inc.html#aad736c236f213abc274709f79e41edf7" title="_drush_backend_proc_open" alt="" coords="737,1167,921,1197"/><area shape="rect" id="node57" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1253,1278,1331,1307"/><area shape="rect" id="node63" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1273,1167,1311,1197"/><area shape="rect" id="node69" href="backend_8inc.html#a31be2d52e209d3e6ac359e971cf1fd7b" title="drush_backend_parse\l_output" alt="" coords="500,1355,649,1401"/><area shape="rect" id="node76" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1007,1551,1119,1581"/><area shape="rect" id="node85" href="context_8inc.html#a559008f6decb23108b83e704208e415e" title="drush_get_option_override" alt="" coords="488,897,661,926"/><area shape="rect" id="node91" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="787,954,872,983"/><area shape="rect" id="node95" href="group__commandwrappers.html#ga3a1bb3ae751f14749ce1dbe4ec9c3288" title="drush_shell_proc_open" alt="" coords="497,1005,652,1034"/><area shape="rect" id="node53" href="backend_8inc.html#aabec94a039db3602741bb3282fec0729" title="_drush_backend_print\l_output" alt="" coords="988,1329,1137,1376"/><area shape="rect" id="node55" href="backend_8inc.html#aab9943ccb47db227e2bcfce3c2b9a36a" title="drush_backend_parse\l_packets" alt="" coords="988,1159,1137,1205"/><area shape="rect" id="node60" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1433,1279,1588,1309"/><area shape="rect" id="node65" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1444,1159,1577,1205"/><area shape="rect" id="node71" href="backend_8inc.html#ae4fc02494df344445fa5f139fa843ac0" title="_drush_backend_integrate" alt="" coords="743,1398,916,1427"/><area shape="rect" id="node79" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1201,1602,1383,1631"/><area shape="rect" id="node87" href="context_8inc.html#add3af7aa09b1ccf49718577a8d7aa61d" title="drush_sitealias_get\l_option" alt="" coords="763,884,896,931"/><area shape="rect" id="node102" href="includes_2environment_8inc.html#afd2e0babc825c7c524b1fb28cde88532" title="_drush_get_os" alt="" coords="1009,406,1116,435"/><area shape="rect" id="node107" href="context_8inc.html#ae7691e4635dc346aae09eb3f0bbd6092" title="drush_get_context_options" alt="" coords="973,713,1152,742"/><area shape="rect" id="node113" href="includes_2environment_8inc.html#a87a6fcd104950fb9b0d90e25208bcf79" title="drush_has_bash" alt="" coords="1004,459,1121,489"/><area shape="rect" id="node115" href="includes_2environment_8inc.html#acb6cf64eca1804a5f5ca34cad6e2c66b" title="drush_is_cygwin" alt="" coords="1233,455,1351,485"/><area shape="rect" id="node121" href="includes_2command_8inc.html#ada5bfda5bb64c19886f7253e30a58de2" title="drush_command_normalize_name" alt="" coords="465,1502,684,1531"/><area shape="rect" id="node123" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="755,1502,904,1531"/><area shape="rect" id="node128" href="sitealias_8inc.html#a448de5768a772d33e44f86cfefe070ac" title="_drush_sitealias_get\l_record" alt="" coords="504,193,645,240"/><area shape="rect" id="node133" href="sitealias_8inc.html#a9e6067d5c022f5ee598fd0da886931a0" title="drush_sitealias_local\l_site_path" alt="" coords="759,83,900,129"/><area shape="rect" id="node135" href="sitealias_8inc.html#ab58274361a02348f2d3ebf640686480b" title="drush_sitealias_uri\l_to_site_dir" alt="" coords="997,83,1128,129"/><area shape="rect" id="node139" href="sitealias_8inc.html#a49723d857350c5f3501001cede845fa5" title="drush_sitealias_lookup\l_alias_by_path" alt="" coords="497,73,652,120"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a7852d5448cd4ee3a2082eccd24d690e7_icgraph.png" border="0" usemap="#backend_8inc_a7852d5448cd4ee3a2082eccd24d690e7_icgraph" alt=""/></div>
<map name="backend_8inc_a7852d5448cd4ee3a2082eccd24d690e7_icgraph" id="backend_8inc_a7852d5448cd4ee3a2082eccd24d690e7_icgraph">
<area shape="rect" id="node3" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="208,717,360,747"/><area shape="rect" id="node97" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="231,1371,337,1400"/><area shape="rect" id="node5" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="937,125,1079,155"/><area shape="rect" id="node7" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="439,664,588,693"/><area shape="rect" id="node9" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="444,717,583,747"/><area shape="rect" id="node11" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="440,771,587,800"/><area shape="rect" id="node13" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="431,824,596,853"/><area shape="rect" id="node15" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="435,877,592,907"/><area shape="rect" id="node17" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="436,1087,591,1134"/><area shape="rect" id="node29" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="433,984,593,1013"/><area shape="rect" id="node31" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="712,585,819,615"/><area shape="rect" id="node33" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="440,611,587,640"/><area shape="rect" id="node36" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="443,1157,584,1187"/><area shape="rect" id="node38" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="425,1211,601,1240"/><area shape="rect" id="node40" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="423,1264,604,1293"/><area shape="rect" id="node42" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="408,1317,619,1347"/><area shape="rect" id="node44" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="437,5,589,35"/><area shape="rect" id="node46" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="453,59,573,88"/><area shape="rect" id="node48" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="431,111,596,158"/><area shape="rect" id="node50" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="680,951,851,998"/><area shape="rect" id="node54" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="913,440,1103,469"/><area shape="rect" id="node56" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="411,931,616,960"/><area shape="rect" id="node59" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="445,370,581,417"/><area shape="rect" id="node76" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="445,231,581,278"/><area shape="rect" id="node86" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="435,490,592,537"/><area shape="rect" id="node95" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="432,301,595,347"/><area shape="rect" id="node19" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="691,1087,840,1134"/><area shape="rect" id="node21" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="935,1149,1081,1179"/><area shape="rect" id="node25" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="948,1043,1068,1072"/><area shape="rect" id="node27" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="939,1096,1077,1125"/><area shape="rect" id="node23" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1165,1149,1325,1179"/><area shape="rect" id="node52" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="964,960,1052,989"/><area shape="rect" id="node61" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="683,301,848,347"/><area shape="rect" id="node65" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="695,370,836,417"/><area shape="rect" id="node63" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="937,317,1079,347"/><area shape="rect" id="node68" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="923,370,1093,417"/><area shape="rect" id="node70" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1171,370,1320,417"/><area shape="rect" id="node72" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="1387,348,1547,377"/><area shape="rect" id="node74" href="sitealias_8inc.html#a49723d857350c5f3501001cede845fa5" title="drush_sitealias_lookup\l_alias_by_path" alt="" coords="1389,401,1544,447"/><area shape="rect" id="node79" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="684,231,847,278"/><area shape="rect" id="node82" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="940,247,1076,294"/><area shape="rect" id="node84" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="941,178,1075,225"/><area shape="rect" id="node89" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="667,499,864,528"/><area shape="rect" id="node91" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="933,499,1083,528"/><area shape="rect" id="node93" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="1153,499,1337,528"/><area shape="rect" id="node99" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="467,1371,560,1400"/><area shape="rect" id="node101" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="425,1424,601,1453"/><area shape="rect" id="node103" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="683,1424,848,1453"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a3d855df98e2c6cb0314a947058f92b99"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_backend_output </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Print the json-encoded output of this command, including the encoded log records, context information, etc. </p>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00135">135</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="backend_8inc_source.html#l00127">drush_backend_get_result()</a>, <a class="el" href="backend_8inc_source.html#l00184">drush_backend_output_collect()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="drush_8inc_source.html#l01753">drush_get_error()</a>, <a class="el" href="drush_8inc_source.html#l01763">drush_get_error_log()</a>, <a class="el" href="drush_8inc_source.html#l01466">drush_get_log()</a>, <a class="el" href="context_8inc_source.html#l00530">drush_get_merged_options()</a>, <a class="el" href="sitealias_8inc_source.html#l00176">drush_sitealias_get_record()</a>, and <a class="el" href="drush_8inc_source.html#l00016">DRUSH_SUCCESS</a>.</p>

<p>Referenced by <a class="el" href="preflight_8inc_source.html#l00341">drush_shutdown()</a>, and <a class="el" href="unit_8drush_8inc_source.html#l00099">drush_unit_batch()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a3d855df98e2c6cb0314a947058f92b99_cgraph.png" border="0" usemap="#backend_8inc_a3d855df98e2c6cb0314a947058f92b99_cgraph" alt=""/></div>
<map name="backend_8inc_a3d855df98e2c6cb0314a947058f92b99_cgraph" id="backend_8inc_a3d855df98e2c6cb0314a947058f92b99_cgraph">
<area shape="rect" id="node3" href="backend_8inc.html#ac295e52c1fa40b91d9100517ed8e76de" title="drush_backend_get_result" alt="" coords="412,160,585,189"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1940,416,2068,445"/><area shape="rect" id="node7" href="backend_8inc.html#a1602048b761aedfc875af8f6d55b5e51" title="drush_backend_output\l_collect" alt="" coords="209,1090,361,1137"/><area shape="rect" id="node10" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44" title="drush_get_error" alt="" coords="653,211,765,240"/><area shape="rect" id="node13" href="group__errorhandling.html#gaf64f258413d1fed041c634581e39bff0" title="drush_get_error_log" alt="" coords="431,1324,567,1353"/><area shape="rect" id="node16" href="group__logging.html#ga5258324e4f8b274b092f8ce17610619f" title="drush_get_log" alt="" coords="659,56,760,85"/><area shape="rect" id="node19" href="context_8inc.html#a72dfb89d6a4ba0bb143e3256f997d2b8" title="drush_get_merged_options" alt="" coords="1701,5,1880,35"/><area shape="rect" id="node24" href="sitealias_8inc.html#ac2f57b80441374522c4e4cdc3b7e0c2b" title="drush_sitealias_get\l_record" alt="" coords="219,970,352,1017"/><area shape="rect" id="node21" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1929,133,2079,163"/><area shape="rect" id="node26" href="sitealias_8inc.html#a448de5768a772d33e44f86cfefe070ac" title="_drush_sitealias_get\l_record" alt="" coords="1068,1143,1209,1190"/><area shape="rect" id="node42" href="sitealias_8inc.html#ab58274361a02348f2d3ebf640686480b" title="drush_sitealias_uri\l_to_site_dir" alt="" coords="1503,863,1633,910"/><area shape="rect" id="node56" href="sitealias_8inc.html#a9e6067d5c022f5ee598fd0da886931a0" title="drush_sitealias_local\l_site_path" alt="" coords="1284,778,1425,825"/><area shape="rect" id="node66" href="sitealias_8inc.html#a49723d857350c5f3501001cede845fa5" title="drush_sitealias_lookup\l_alias_by_path" alt="" coords="421,581,576,627"/><area shape="rect" id="node29" href="group__filesystemfunctions.html#gafa80199035259ddf98fa300d6f646aa2" title="drush_is_absolute_path" alt="" coords="1489,1328,1647,1357"/><area shape="rect" id="node31" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="1940,1209,2068,1239"/><area shape="rect" id="node34" href="sitealias_8inc.html#a6812218f7e86fa00ec5c011768c63f48" title="_drush_sitealias_set\l_record_element" alt="" coords="1284,1138,1425,1185"/><area shape="rect" id="node36" href="includes_2environment_8inc.html#ad6ad0af63156033b1f7fe9a9409eaa7e" title="drush_valid_drupal_root" alt="" coords="1276,1208,1433,1237"/><area shape="rect" id="node39" href="sitealias_8inc.html#a38645e5a6d252e6f419db90c5e7e8739" title="_drush_sitealias_find\l_record_for_local_site" alt="" coords="1280,949,1429,995"/><area shape="rect" id="node48" href="sitealias_8inc.html#a03f4ae74a5e4854ac9ffee762cab07f3" title="drush_sitealias_add\l_to_alias_path" alt="" coords="1287,1018,1423,1065"/><area shape="rect" id="node59" href="sitealias_8inc.html#a1f4c706969fbd0d73d227a52d106b5f4" title="_drush_sitealias_add\l_static_defaults" alt="" coords="1283,1261,1427,1307"/><area shape="rect" id="node45" href="includes_2environment_8inc.html#a4f1fda8a8ff6eac8e1182b54e36f4466" title="drush_site_dir_lookup\l_from_hostname" alt="" coords="1717,821,1864,867"/><area shape="rect" id="node50" href="group__filesystemfunctions.html#ga4126321d45e8a9c454048869dd42a27c" title="drush_normalize_path" alt="" coords="1493,1157,1643,1187"/><area shape="rect" id="node53" href="group__filesystemfunctions.html#ga5a78fe09f2e16740db898df3237da602" title="drush_trim_path" alt="" coords="1733,1157,1848,1187"/><area shape="rect" id="node61" href="sitealias_8inc.html#a96a1545df8b70035ba248ae3cb057d06" title="drush_sitealias_convert\l_db_from_db_url" alt="" coords="1489,1258,1647,1305"/><area shape="rect" id="node63" href="sitealias_8inc.html#a3e5b4e0099b3cf7ad4ec47fac20e4e54" title="drush_convert_db_from\l_db_url" alt="" coords="1712,1261,1869,1307"/><area shape="rect" id="node68" href="sitealias_8inc.html#a90a54eb940fe80e6e9e3faf12098cbac" title="drush_sitealias_quick\l_lookup_cached_alias\l_by_path" alt="" coords="1064,261,1213,325"/><area shape="rect" id="node91" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="635,581,784,627"/><area shape="rect" id="node129" href="sitealias_8inc.html#af5e2a5f32557a495b31c2a72bab9586b" title="drush_sitealias_cache\l_alias_by_path" alt="" coords="1064,349,1213,395"/><area shape="rect" id="node70" href="includes_2cache_8inc.html#a70613777c5e1a0e258bd0d8e213e0156" title="drush_get_cid" alt="" coords="1304,261,1405,291"/><area shape="rect" id="node73" href="includes_2cache_8inc.html#adc36ac3b562c67cbf1d7aab89c029694" title="drush_cache_get" alt="" coords="1295,315,1415,344"/><area shape="rect" id="node75" href="includes_2cache_8inc.html#a80d986947415d49a2b3324018a0beb1e" title="_drush_cache_get_object" alt="" coords="1483,363,1653,392"/><area shape="rect" id="node81" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1529,416,1607,445"/><area shape="rect" id="node87" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1549,471,1587,500"/><area shape="rect" id="node77" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1731,261,1851,291"/><area shape="rect" id="node84" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1713,416,1868,445"/><area shape="rect" id="node89" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1724,469,1857,515"/><area shape="rect" id="node93" href="sitealias_8inc.html#a9ccbaf4417b01e474a01db9c985fb103" title="_drush_sitealias_find\l_alias_files" alt="" coords="845,519,989,566"/><area shape="rect" id="node109" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="853,693,981,723"/><area shape="rect" id="node114" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="832,901,1003,947"/><area shape="rect" id="node125" href="sitealias_8inc.html#aa4c589e4cb7f9ac0dad80ff526444c19" title="_sitealias_array_merge" alt="" coords="840,589,995,619"/><area shape="rect" id="node95" href="sitealias_8inc.html#aa052aebdf8f0c0037fb910f8d59577b0" title="drush_sitealias_alias_path" alt="" coords="1052,728,1225,757"/><area shape="rect" id="node100" href="group__filesystemfunctions.html#ga1c545390a8890f6ea47385f79fbe2e82" title="drush_scan_directory" alt="" coords="1065,520,1212,549"/><area shape="rect" id="node107" href="includes_2command_8inc.html#a835a66ae60ec33b87f477a6b3dd00547" title="drush_filename_blacklist" alt="" coords="1056,573,1221,603"/><area shape="rect" id="node102" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af" title="drush_op" alt="" coords="1317,523,1392,552"/><area shape="rect" id="node117" href="sitealias_8inc.html#a79d866a010f76b7d6ec47ab2a72a0c43" title="drush_sitealias_resolve\l_sitelist" alt="" coords="1060,970,1217,1017"/><area shape="rect" id="node120" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="1068,831,1209,878"/><area shape="rect" id="node123" href="sitealias_8inc.html#a584dc890dc9cace2320ee31a25e25d43" title="_drush_sitealias_find\l_local_sites" alt="" coords="1067,901,1211,947"/><area shape="rect" id="node133" href="includes_2cache_8inc.html#a27a40af68c2a61fdf94b980b953236bf" title="drush_cache_set" alt="" coords="1295,368,1415,397"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a3d855df98e2c6cb0314a947058f92b99_icgraph.png" border="0" usemap="#backend_8inc_a3d855df98e2c6cb0314a947058f92b99_icgraph" alt=""/></div>
<map name="backend_8inc_a3d855df98e2c6cb0314a947058f92b99_icgraph" id="backend_8inc_a3d855df98e2c6cb0314a947058f92b99_icgraph">
<area shape="rect" id="node3" href="preflight_8inc.html#a615008fc32203b55f5355e105450d60b" title="drush_shutdown" alt="" coords="211,5,328,35"/><area shape="rect" id="node5" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="209,59,329,88"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a1602048b761aedfc875af8f6d55b5e51"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_backend_output_collect </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$string</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Callback to collect backend command output. </p>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00184">184</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00135">drush_backend_output()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a1602048b761aedfc875af8f6d55b5e51_icgraph.png" border="0" usemap="#backend_8inc_a1602048b761aedfc875af8f6d55b5e51_icgraph" alt=""/></div>
<map name="backend_8inc_a1602048b761aedfc875af8f6d55b5e51_icgraph" id="backend_8inc_a1602048b761aedfc875af8f6d55b5e51_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a3d855df98e2c6cb0314a947058f92b99" title="drush_backend_output" alt="" coords="209,32,361,61"/><area shape="rect" id="node5" href="preflight_8inc.html#a615008fc32203b55f5355e105450d60b" title="drush_shutdown" alt="" coords="413,5,531,35"/><area shape="rect" id="node7" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="412,59,532,88"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a24d07aa37634fa6ece1d8b36c6fdeb46"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_backend_output_discard </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$string</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Output buffer functions that discards all output but backend packets. </p>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00197">197</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

</div>
</div>
<a class="anchor" id="a38490210d77373f3d8492caf4e9a3190"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_backend_packet </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$packet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Output a backend packet if we're running as backend.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">packet</td><td>The packet to send. </td></tr>
    <tr><td class="paramname">data</td><td>Data for the command.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A boolean indicating whether the command was output. </dd></dl>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00216">216</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="drush_8inc_source.html#l01435">drush_backend_packet_log()</a>, <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>, and <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a38490210d77373f3d8492caf4e9a3190_cgraph.png" border="0" usemap="#backend_8inc_a38490210d77373f3d8492caf4e9a3190_cgraph" alt=""/></div>
<map name="backend_8inc_a38490210d77373f3d8492caf4e9a3190_cgraph" id="backend_8inc_a38490210d77373f3d8492caf4e9a3190_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="212,5,340,35"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a38490210d77373f3d8492caf4e9a3190_icgraph.png" border="0" usemap="#backend_8inc_a38490210d77373f3d8492caf4e9a3190_icgraph" alt=""/></div>
<map name="backend_8inc_a38490210d77373f3d8492caf4e9a3190_icgraph" id="backend_8inc_a38490210d77373f3d8492caf4e9a3190_icgraph">
<area shape="rect" id="node3" href="group__logging.html#gab4b585b7e23e1133de0497661b0d829c" title="drush_backend_packet_log" alt="" coords="212,640,391,670"/><area shape="rect" id="node5" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="263,1126,340,1155"/><area shape="rect" id="node111" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="477,311,589,340"/><area shape="rect" id="node7" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="701,7,843,36"/><area shape="rect" id="node9" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="697,60,847,90"/><area shape="rect" id="node11" href="config_8drush_8inc.html#a6258f151a3c27b586409d46f1799a666" title="drush_config_export" alt="" coords="464,1434,603,1463"/><area shape="rect" id="node13" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="464,1487,603,1516"/><area shape="rect" id="node15" href="config_8drush_8inc.html#ac1bfb8fb33a150037b4151fc96fdd413" title="drush_config_get_object" alt="" coords="691,114,853,143"/><area shape="rect" id="node17" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="460,1540,607,1570"/><area shape="rect" id="node19" href="core_8drush_8inc.html#aefd8feb109bb44eb6543dbd18f64b91b" title="drush_core_updatedb\l_status" alt="" coords="460,1593,607,1640"/><area shape="rect" id="node21" href="core_8drush_8inc.html#aa4653becec42d140691bb014e52e8145" title="drush_core_cron" alt="" coords="713,168,831,198"/><area shape="rect" id="node23" href="core_8drush_8inc.html#a318e7d1eefff92580b72fca9d6623939" title="drush_core_php_script" alt="" coords="696,224,848,254"/><area shape="rect" id="node25" href="commands_2core_2drupal_2batch_8inc.html#a10c0d541fd31cfed1eed4caed37e30fa" title="_drush_batch_worker" alt="" coords="460,1663,607,1692"/><area shape="rect" id="node27" href="includes_2cache_8inc.html#adc36ac3b562c67cbf1d7aab89c029694" title="drush_cache_get" alt="" coords="473,1716,593,1746"/><area shape="rect" id="node29" href="includes_2cache_8inc.html#a27a40af68c2a61fdf94b980b953236bf" title="drush_cache_set" alt="" coords="473,1770,593,1799"/><area shape="rect" id="node31" href="includes_2environment_8inc.html#a9088e5477cb49d21ca52629f5cc22d85" title="drush_error_handler" alt="" coords="465,1823,601,1852"/><area shape="rect" id="node33" href="includes_2environment_8inc.html#a010dc760c465c9823d06e74a823ad603" title="_drush_environment\l_check_php_ini" alt="" coords="464,1876,603,1922"/><area shape="rect" id="node35" href="includes_2environment_8inc.html#a2f6ea049bc3f5361815aafe6f44a535d" title="drush_get_extensions" alt="" coords="459,1946,608,1975"/><area shape="rect" id="node37" href="update_8inc.html#a7037652ade962feda993c9ddd041a950" title="drush_update_do_one" alt="" coords="697,282,847,311"/><area shape="rect" id="node39" href="update__6_8inc.html#ab86cb0f00b89fc52f7f6294be9a1e33c" title="update_fix_compatibility" alt="" coords="452,1999,615,2028"/><area shape="rect" id="node41" href="update__6_8inc.html#ad0b8cf7510033800502402c275add53b" title="update_check_requirements" alt="" coords="441,2052,625,2082"/><area shape="rect" id="node43" href="update__6_8inc.html#afc8cabc135ea5705d5fc503036c68678" title="_update_do_one" alt="" coords="475,2106,592,2135"/><area shape="rect" id="node45" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="692,343,852,372"/><area shape="rect" id="node47" href="test_8drush_8inc.html#ae25259420aa03c34eddc837befcf0df4" title="simpletest_drush_run_test" alt="" coords="685,414,859,443"/><area shape="rect" id="node49" href="views_8d8_8drush_8inc.html#a52a1746a828e3ff4368488bd20c1586f" title="drush_views_dev" alt="" coords="472,2159,595,2188"/><area shape="rect" id="node51" href="views_8d8_8drush_8inc.html#a3579085e08bf50ff4595e0bcdde1e4ca" title="drush_views_list" alt="" coords="713,468,831,498"/><area shape="rect" id="node53" href="views_8d8_8drush_8inc.html#aeb32a75a48c4c084de58193c6d8cfca2" title="drush_views_execute" alt="" coords="699,524,845,554"/><area shape="rect" id="node55" href="views_8d8_8drush_8inc.html#a5bef08605d0fc2679d2fcbc7a00aecc9" title="drush_views_analyze" alt="" coords="699,582,845,611"/><area shape="rect" id="node57" href="views_8d8_8drush_8inc.html#ad614c55f8108f223a31dc1c6c112c163" title="_views_drush_op" alt="" coords="711,644,833,674"/><area shape="rect" id="node59" href="generate_8contents_8make_8inc.html#a9278fc4dc378fb42d217a56646d6d6d9" title="make_generate_print" alt="" coords="463,2212,604,2242"/><area shape="rect" id="node61" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="463,2266,604,2295"/><area shape="rect" id="node63" href="make_8download_8inc.html#a9bca6953efd915cc338678422d3e65f4" title="make_download_file" alt="" coords="960,771,1099,800"/><area shape="rect" id="node65" href="make_8download_8inc.html#af0b8a0195e141dd3d497d2e663d993fa" title="make_download_git" alt="" coords="961,827,1097,856"/><area shape="rect" id="node67" href="make_8download_8inc.html#ac808bd6438397ca205135d0345cf4721" title="make_download_bzr" alt="" coords="959,884,1100,914"/><area shape="rect" id="node69" href="make_8download_8inc.html#aca118467de1ec3ed60b393ef49ecc7c5" title="make_download_svn" alt="" coords="957,947,1101,976"/><area shape="rect" id="node71" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="487,2319,580,2348"/><area shape="rect" id="node73" href="make_8drush_8inc.html#adb3866751fd19344b00c069793f46322" title="drush_make_post_make" alt="" coords="691,1356,853,1386"/><area shape="rect" id="node75" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1417,1138,1583,1167"/><area shape="rect" id="node77" href="classDrushMakeProject.html#a86cb2ad32088f11522e027cd7e98c6ce" title="DrushMakeProject\\applyPatches" alt="" coords="923,1018,1136,1047"/><area shape="rect" id="node80" href="classDrushMakeProject.html#af6f9c98d13bb338237d8cc96566e59f8" title="DrushMakeProject\\getTranslations" alt="" coords="919,1071,1140,1100"/><area shape="rect" id="node83" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="1191,1228,1367,1258"/><area shape="rect" id="node86" href="make_8utilities_8inc.html#a7e95eb7b8a11558344b42b0c653ca22a" title="make_prune_info_file" alt="" coords="957,1124,1101,1154"/><area shape="rect" id="node88" href="make_8utilities_8inc.html#a6be8755a0ea68b9198e1e8cebbccff89" title="make_validate_info_file" alt="" coords="951,1279,1108,1308"/><area shape="rect" id="node91" href="make_8utilities_8inc.html#ae13ed28f360182a4df0620a68d251fd6" title="make_clean_tmp" alt="" coords="473,1380,593,1410"/><area shape="rect" id="node94" href="make_8utilities_8inc.html#aa2a78298291b42502718822ed5b59969" title="make_error" alt="" coords="729,972,815,1002"/><area shape="rect" id="node104" href="make_8utilities_8inc.html#a41ab4cf460a801be3983bef795a1318c" title="make_apply_defaults" alt="" coords="700,1279,844,1308"/><area shape="rect" id="node107" href="make_8utilities_8inc.html#a060e42b6b94b1e06f584a8d1ed22ea9a" title="_make_is_override_allowed" alt="" coords="443,466,624,495"/><area shape="rect" id="node109" href="download_8pm_8inc.html#aa785bd2402492043b9acaee375c8ceeb" title="drush_pm_download_validate" alt="" coords="676,715,868,744"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a76b06a559b58fba879ae74ff81a2fcb1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_backend_packet_set_error </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$backend_options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Backend command for setting errors. </p>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00584">584</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a76b06a559b58fba879ae74ff81a2fcb1_cgraph.png" border="0" usemap="#backend_8inc_a76b06a559b58fba879ae74ff81a2fcb1_cgraph" alt=""/></div>
<map name="backend_8inc_a76b06a559b58fba879ae74ff81a2fcb1_cgraph" id="backend_8inc_a76b06a559b58fba879ae74ff81a2fcb1_cgraph">
<area shape="rect" id="node3" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="211,57,323,86"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="809,82,937,112"/><area shape="rect" id="node7" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="372,30,553,60"/><area shape="rect" id="node9" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="604,82,759,112"/><area shape="rect" id="node12" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="424,134,501,164"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a31be2d52e209d3e6ac359e971cf1fd7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_backend_parse_output </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$backend_options</em> = <code>array()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$outputted</em> = <code>FALSE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Parse output returned from a Drush command.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">string</td><td>The output of a drush command </td></tr>
    <tr><td class="paramname">integrate</td><td>Integrate the errors and log messages from the command into the current process. </td></tr>
    <tr><td class="paramname">outputted</td><td>Whether output has already been handled.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An associative array containing the data from the external command, or the string parameter if it could not be parsed successfully. </dd></dl>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00243">243</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="backend_8inc_source.html#l00278">_drush_backend_integrate()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00984">_drush_backend_invoke()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a31be2d52e209d3e6ac359e971cf1fd7b_cgraph.png" border="0" usemap="#backend_8inc_a31be2d52e209d3e6ac359e971cf1fd7b_cgraph" alt=""/></div>
<map name="backend_8inc_a31be2d52e209d3e6ac359e971cf1fd7b_cgraph" id="backend_8inc_a31be2d52e209d3e6ac359e971cf1fd7b_cgraph">
<area shape="rect" id="node3" href="backend_8inc.html#ae4fc02494df344445fa5f139fa843ac0" title="_drush_backend_integrate" alt="" coords="204,153,377,183"/><area shape="rect" id="node5" href="backend_8inc.html#aabec94a039db3602741bb3282fec0729" title="_drush_backend_print\l_output" alt="" coords="427,5,576,51"/><area shape="rect" id="node7" href="group__errorhandling.html#gafaa8004ee101cc91df57fae59e5d8956" title="drush_cmp_error" alt="" coords="443,75,560,104"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1095,204,1223,233"/><area shape="rect" id="node14" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="677,179,755,208"/><area shape="rect" id="node20" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="445,231,557,260"/><area shape="rect" id="node27" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="483,339,520,368"/><area shape="rect" id="node9" href="group__errorhandling.html#gaf64f258413d1fed041c634581e39bff0" title="drush_get_error_log" alt="" coords="867,75,1003,104"/><area shape="rect" id="node17" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="857,229,1012,259"/><area shape="rect" id="node23" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="625,333,807,363"/><area shape="rect" id="node29" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="649,386,783,433"/><area shape="rect" id="node31" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="863,364,1007,393"/><area shape="rect" id="node33" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1061,364,1256,393"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_a31be2d52e209d3e6ac359e971cf1fd7b_icgraph.png" border="0" usemap="#backend_8inc_a31be2d52e209d3e6ac359e971cf1fd7b_icgraph" alt=""/></div>
<map name="backend_8inc_a31be2d52e209d3e6ac359e971cf1fd7b_icgraph" id="backend_8inc_a31be2d52e209d3e6ac359e971cf1fd7b_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a1d3f3caae7e1300c53e2cc1fe4ffb932" title="_drush_backend_invoke" alt="" coords="203,1044,365,1073"/><area shape="rect" id="node5" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="413,1035,568,1082"/><area shape="rect" id="node7" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="616,717,768,747"/><area shape="rect" id="node97" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="639,1371,745,1400"/><area shape="rect" id="node9" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1345,125,1487,155"/><area shape="rect" id="node11" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="847,664,996,693"/><area shape="rect" id="node13" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="852,717,991,747"/><area shape="rect" id="node15" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="848,771,995,800"/><area shape="rect" id="node17" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="839,824,1004,853"/><area shape="rect" id="node19" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="843,877,1000,907"/><area shape="rect" id="node21" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="844,1087,999,1134"/><area shape="rect" id="node33" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="841,984,1001,1013"/><area shape="rect" id="node35" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="1120,585,1227,615"/><area shape="rect" id="node37" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="848,611,995,640"/><area shape="rect" id="node40" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="851,1157,992,1187"/><area shape="rect" id="node42" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="833,1211,1009,1240"/><area shape="rect" id="node44" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="831,1264,1012,1293"/><area shape="rect" id="node46" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="816,1317,1027,1347"/><area shape="rect" id="node48" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="845,5,997,35"/><area shape="rect" id="node50" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="861,59,981,88"/><area shape="rect" id="node52" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="839,111,1004,158"/><area shape="rect" id="node54" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1088,951,1259,998"/><area shape="rect" id="node58" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1321,440,1511,469"/><area shape="rect" id="node60" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="819,931,1024,960"/><area shape="rect" id="node63" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="853,370,989,417"/><area shape="rect" id="node76" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="853,231,989,278"/><area shape="rect" id="node86" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="843,490,1000,537"/><area shape="rect" id="node95" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="840,301,1003,347"/><area shape="rect" id="node23" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="1099,1087,1248,1134"/><area shape="rect" id="node25" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1343,1149,1489,1179"/><area shape="rect" id="node29" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1356,1043,1476,1072"/><area shape="rect" id="node31" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1347,1096,1485,1125"/><area shape="rect" id="node27" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1573,1149,1733,1179"/><area shape="rect" id="node56" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1372,960,1460,989"/><area shape="rect" id="node65" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="1091,301,1256,347"/><area shape="rect" id="node69" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="1103,370,1244,417"/><area shape="rect" id="node67" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1345,317,1487,347"/><area shape="rect" id="node72" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1331,370,1501,417"/><area shape="rect" id="node74" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1579,370,1728,417"/><area shape="rect" id="node79" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="1092,231,1255,278"/><area shape="rect" id="node82" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1348,247,1484,294"/><area shape="rect" id="node84" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1349,178,1483,225"/><area shape="rect" id="node89" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="1075,499,1272,528"/><area shape="rect" id="node91" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1341,499,1491,528"/><area shape="rect" id="node93" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="1561,499,1745,528"/><area shape="rect" id="node99" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="875,1371,968,1400"/><area shape="rect" id="node101" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="833,1424,1009,1453"/><area shape="rect" id="node103" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1091,1424,1256,1453"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aab9943ccb47db227e2bcfce3c2b9a36a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_backend_parse_packets </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$remainder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$backend_options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Parse out and remove backend packet from the supplied string and invoke the commands. </p>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00533">533</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="backend_8inc_source.html#l00069">DRUSH_BACKEND_OUTPUT_START</a>, <a class="el" href="backend_8inc_source.html#l00077">DRUSH_BACKEND_PACKET_START</a>, <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>, <a class="el" href="context_8inc_source.html#l00293">drush_set_context()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00341">_drush_backend_proc_open()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_aab9943ccb47db227e2bcfce3c2b9a36a_cgraph.png" border="0" usemap="#backend_8inc_aab9943ccb47db227e2bcfce3c2b9a36a_cgraph" alt=""/></div>
<map name="backend_8inc_aab9943ccb47db227e2bcfce3c2b9a36a_cgraph" id="backend_8inc_aab9943ccb47db227e2bcfce3c2b9a36a_cgraph">
<area shape="rect" id="node3" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="411,25,488,54"/><area shape="rect" id="node10" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="204,77,332,106"/><area shape="rect" id="node13" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="249,133,287,162"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="804,50,932,80"/><area shape="rect" id="node7" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="567,25,721,54"/><area shape="rect" id="node15" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="383,128,516,175"/><area shape="rect" id="node17" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="572,129,716,158"/><area shape="rect" id="node19" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="771,129,965,158"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_aab9943ccb47db227e2bcfce3c2b9a36a_icgraph.png" border="0" usemap="#backend_8inc_aab9943ccb47db227e2bcfce3c2b9a36a_icgraph" alt=""/></div>
<map name="backend_8inc_aab9943ccb47db227e2bcfce3c2b9a36a_icgraph" id="backend_8inc_aab9943ccb47db227e2bcfce3c2b9a36a_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#aad736c236f213abc274709f79e41edf7" title="_drush_backend_proc_open" alt="" coords="203,1044,387,1073"/><area shape="rect" id="node5" href="backend_8inc.html#a1d3f3caae7e1300c53e2cc1fe4ffb932" title="_drush_backend_invoke" alt="" coords="435,1044,597,1073"/><area shape="rect" id="node7" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="645,1035,800,1082"/><area shape="rect" id="node9" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="848,717,1000,747"/><area shape="rect" id="node97" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="871,1371,977,1400"/><area shape="rect" id="node11" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1577,125,1719,155"/><area shape="rect" id="node13" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="1079,664,1228,693"/><area shape="rect" id="node15" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="1084,717,1223,747"/><area shape="rect" id="node17" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="1080,771,1227,800"/><area shape="rect" id="node19" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="1071,824,1236,853"/><area shape="rect" id="node21" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="1075,877,1232,907"/><area shape="rect" id="node23" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="1076,1087,1231,1134"/><area shape="rect" id="node35" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="1073,984,1233,1013"/><area shape="rect" id="node37" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="1352,585,1459,615"/><area shape="rect" id="node39" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="1080,611,1227,640"/><area shape="rect" id="node42" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="1083,1157,1224,1187"/><area shape="rect" id="node44" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="1065,1211,1241,1240"/><area shape="rect" id="node46" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="1063,1264,1244,1293"/><area shape="rect" id="node48" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="1048,1317,1259,1347"/><area shape="rect" id="node50" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1077,5,1229,35"/><area shape="rect" id="node52" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="1093,59,1213,88"/><area shape="rect" id="node54" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="1071,111,1236,158"/><area shape="rect" id="node56" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1320,951,1491,998"/><area shape="rect" id="node60" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1553,440,1743,469"/><area shape="rect" id="node62" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="1051,931,1256,960"/><area shape="rect" id="node65" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="1085,370,1221,417"/><area shape="rect" id="node78" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="1085,231,1221,278"/><area shape="rect" id="node88" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="1075,490,1232,537"/><area shape="rect" id="node95" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="1072,301,1235,347"/><area shape="rect" id="node25" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="1331,1087,1480,1134"/><area shape="rect" id="node27" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1575,1149,1721,1179"/><area shape="rect" id="node31" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1588,1043,1708,1072"/><area shape="rect" id="node33" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1579,1096,1717,1125"/><area shape="rect" id="node29" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1793,1149,1953,1179"/><area shape="rect" id="node58" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1604,960,1692,989"/><area shape="rect" id="node67" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="1323,301,1488,347"/><area shape="rect" id="node71" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="1335,370,1476,417"/><area shape="rect" id="node69" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1577,317,1719,347"/><area shape="rect" id="node74" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1563,370,1733,417"/><area shape="rect" id="node76" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1799,370,1948,417"/><area shape="rect" id="node81" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="1324,231,1487,278"/><area shape="rect" id="node84" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1580,247,1716,294"/><area shape="rect" id="node86" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1581,178,1715,225"/><area shape="rect" id="node91" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="1307,499,1504,528"/><area shape="rect" id="node93" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1573,499,1723,528"/><area shape="rect" id="node99" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="1107,1371,1200,1400"/><area shape="rect" id="node101" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="1065,1424,1241,1453"/><area shape="rect" id="node103" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1323,1424,1488,1453"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad8040331b08464a2a48b7ac8a00ed13c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_backend_set_result </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The backend result is the original PHP data structure (usually an array) used to generate the output for the current command. </p>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00084">84</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, and <a class="el" href="context_8inc_source.html#l00293">drush_set_context()</a>.</p>

<p>Referenced by <a class="el" href="config_8drush_8inc_source.html#l00267">drush_config_export()</a>, <a class="el" href="includes_2command_8inc_source.html#l00448">drush_handle_command_output()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01102">drush_pm_releases()</a>, and <a class="el" href="user_8drush_8inc_source.html#l00367">drush_user_login()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_ad8040331b08464a2a48b7ac8a00ed13c_cgraph.png" border="0" usemap="#backend_8inc_ad8040331b08464a2a48b7ac8a00ed13c_cgraph" alt=""/></div>
<map name="backend_8inc_ad8040331b08464a2a48b7ac8a00ed13c_cgraph" id="backend_8inc_ad8040331b08464a2a48b7ac8a00ed13c_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="409,5,537,35"/><area shape="rect" id="node5" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="231,31,359,60"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="backend_8inc_ad8040331b08464a2a48b7ac8a00ed13c_icgraph.png" border="0" usemap="#backend_8inc_ad8040331b08464a2a48b7ac8a00ed13c_icgraph" alt=""/></div>
<map name="backend_8inc_ad8040331b08464a2a48b7ac8a00ed13c_icgraph" id="backend_8inc_ad8040331b08464a2a48b7ac8a00ed13c_icgraph">
<area shape="rect" id="node3" href="config_8drush_8inc.html#a6258f151a3c27b586409d46f1799a666" title="drush_config_export" alt="" coords="241,5,380,35"/><area shape="rect" id="node5" href="group__dispatching.html#gaec7e84c5668d8e13f33c948659112495" title="drush_handle_command\l_output" alt="" coords="229,58,392,105"/><area shape="rect" id="node11" href="pm_8drush_8inc.html#a6a5267ade011bc9e74e880668cff14af" title="drush_pm_releases" alt="" coords="244,128,377,157"/><area shape="rect" id="node13" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="251,181,371,211"/><area shape="rect" id="node7" href="group__dispatching.html#gac0d79cc522d6f5cecf9f72ecc5ecceb8" title="_drush_invoke_hooks" alt="" coords="441,67,588,96"/><area shape="rect" id="node9" href="group__dispatching.html#gae7a7f1f4b8c5edffbc2ececc6638698a" title="drush_command" alt="" coords="639,67,756,96"/></map>
</div>
</p>

</div>
</div>
<h2>Variable Documentation</h2>
<a class="anchor" id="a99476b8812c9923e8706b076c50863c0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const DRUSH_BACKEND_OUTPUT_START = 'DRUSH_BACKEND_OUTPUT_START&gt;&gt;&gt;'</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Identify the JSON encoded output from a command.</p>
<p>Note that Drush now outputs a null ("\0") before the DRUSH_BACKEND_OUTPUT_DELIMITER, but this null occurs where this constant is output rather than being included in the define. This is done to maintain compatibility with older versions of Drush, so that Drush-6.x can correctly parse backend messages from calls made to Drush-5.x and earlier. The null is removed via trim(). </p>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00069">69</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00341">_drush_backend_proc_open()</a>, and <a class="el" href="backend_8inc_source.html#l00533">drush_backend_parse_packets()</a>.</p>

</div>
</div>
<a class="anchor" id="a9701b812e125509d248b2e4566a712e0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const DRUSH_BACKEND_PACKET_START = &quot;DRUSH_BACKEND:&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Identify JSON encoded "packets" embedded inside of backend output; used to send out-of-band information durring a backend invoke call (currently only used for log and error messages). </p>

<p>Definition at line <a class="el" href="backend_8inc_source.html#l00077">77</a> of file <a class="el" href="backend_8inc_source.html">backend.inc</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00533">drush_backend_parse_packets()</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Oct 8 2014 09:04:59 for Drush by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>