Back to Stream class

Method setContextOptions

public void
setContextOptions
(mixed $context)
Updates the context to the array
Parameters
  • array $context Options to create the context with
Returns
  • void
Since
  • 1.7.0
-
  • https://www.php.net/stream_context_create
Class: Stream
Project: Joomla

Method setContextOptions - Source code

/**
 * Updates the context to the array
 *
 * Format is the same as the options for stream_context_create
 *
 * @param   array  $context  Options to create the context with
 *
 * @return  void
 *
 * @link    https://www.php.net/stream_context_create
 * @since   1.7.0
 */
public function setContextOptions($context)
{
    $this->contextOptions = $context;
    $this->_buildContext();
}