Back to Stream class

Method addContextEntry

public void
addContextEntry
(mixed $wrapper, mixed $name, mixed $value)
Adds a particular options to the context
Parameters
  • string $wrapper The wrapper to use
  • string $name The option to set
  • string $value The value of the option
Returns
  • void
Since
  • 1.7.0
-
  • https://www.php.net/stream_context_create Stream Context Creation
  • https://www.php.net/manual/en/context.php Context Options for various streams
Class: Stream
Project: Joomla

Method addContextEntry - Source code

/**
 * Adds a particular options to the context
 *
 * @param   string  $wrapper  The wrapper to use
 * @param   string  $name     The option to set
 * @param   string  $value    The value of the option
 *
 * @return  void
 *
 * @link    https://www.php.net/stream_context_create Stream Context Creation
 * @link    https://www.php.net/manual/en/context.php Context Options for various streams
 * @since   1.7.0
 */
public function addContextEntry($wrapper, $name, $value)
{
    $this->contextOptions[$wrapper][$name] = $value;
    $this->_buildContext();
}