protected function post_results($bucket = self::DEFAULT_BUCKET)
	{
		// fetch all the results up to this point
		$results = $this->fetch_results(false, 0, $bucket);
		if (is_array($results) && empty($results))
		{
			return true;
		}

		if (!empty($this->parent_function_results[$bucket]))
		{
			if ($this->invoke_callback($this->parent_function_results[$bucket], array($results), true) === false)
			{
				return false;
			}
		}
		elseif ($this->store_result === true)
		{
			$this->results[$bucket] += $results;
		}

		return true;
	}
protected function post_results($bucket = self::DEFAULT_BUCKET)
	{
		// fetch all the results up to this point
		$results = $this->fetch_results(false, 0, $bucket);
		if (is_array($results) && empty($results))
		{
			return true;
		}

		if (!empty($this->parent_function_results[$bucket]))
		{
			if ($this->invoke_callback($this->parent_function_results[$bucket], array($results), true) === false)
			{
				return false;
			}
		}
		elseif ($this->store_result === true)
		{
			$this->results[$bucket] += $results;
		}

		return true;
	}
protected function post_results ( $ bucket = self :: DEFAULT_BUCKET ) { // fetch all the results up to this point $ results = $ this -> fetch_results ( false , 0 , $ bucket ) ; if ( is_array ( $ results ) && empty ( $ results ) ) { return true ; } if ( ! empty ( $ this -> parent_function_results [ $ bucket ] ) ) { if ( $ this -> invoke_callback ( $ this -> parent_function_results [ $ bucket ] , array ( $ results ) , true ) === false ) { return false ; } } elseif ( $ this -> store_result === true ) { $ this -> results [ $ bucket ] += $ results ; } return true ; }
Posts any new results to a callback function if one is available, or stores
them to the internal results storage if not.  This does not block and will
post any results that are available, so call while children are running
to check and post more results.

NOTE: This should be polled to update results.

@param int $bucket The bucket to post the results in.
@return bool Returns true on successfully posting results, even if none
to post.  Returns false on error from this function or error from
the $this->parent_function_results callback.
Posts any new results to a callback function if one is available or stores them to the internal results storage if not . This does not block and will post any results that are available so call while children are running to check and post more results .