Source of: /manual/fa/gearmantask.recvdata.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.gearmantask.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'fa',
),
'this' =>
array (
0 => 'gearmantask.recvdata.php',
1 => 'GearmanTask::recvData',
),
'up' =>
array (
0 => 'class.gearmantask.php',
1 => 'GearmanTask',
),
'prev' =>
array (
0 => 'gearmantask.jobhandle.php',
1 => 'GearmanTask::jobHandle',
),
'next' =>
array (
0 => 'gearmantask.returncode.php',
1 => 'GearmanTask::returnCode',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="gearmantask.recvdata" class="refentry">
<div class="refnamediv">
<h1 class="refname">GearmanTask::recvData</h1>
<p class="verinfo">(PECL gearman >= 0.5.0)</p><p class="refpurpose"><span class="refname">GearmanTask::recvData</span> — <span class="dc-title">Read work or result data into a buffer for a task</span></p>
</div>
<div class="refsect1 description" id="refsect1-gearmantask.recvdata-description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><b>GearmanTask::recvData</b></span>
( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$data_len</tt></span>
)</div>
<p class="para rdfs-comment">
</p>
<div class="warning"><b class="warning">Warning</b><p class="simpara">This function is
<em class="emphasis">EXPERIMENTAL</em>. The behaviour of this function, its name, and
surrounding documentation may change without notice in a future release of PHP.
This function should be used at your own risk.
</p></div>
</div>
<div class="refsect1 parameters" id="refsect1-gearmantask.recvdata-parameters">
<h3 class="title">Parameters</h3>
<p class="para">
<dl>
<dt>
<span class="term"><i><tt class="parameter">data_len</tt></i></span>
<dd>
<p class="para">
Length of data to be read.
</p>
</dd>
</dt>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-gearmantask.recvdata-returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
An array whose first element is the length of data read and the second is the data buffer.
Returns <b><tt>FALSE</tt></b> if the read failed.
</p>
</div>
<div class="refsect1 seealso" id="refsect1-gearmantask.recvdata-seealso">
<h3 class="title">See Also</h3>
<p class="para">
<ul class="simplelist">
<li class="member"> <span class="methodname"><a href="gearmantask.senddata.php" class="methodname" rel="rdfs-seeAlso">GearmanTask::sendData()</a> - Send data for a task (deprecated)</span></li>
</ul>
</p>
</div>
</div><?php manual_footer(); ?>