Back to Stream class

Method _buildContext

public mixed
_buildContext
()
Stream contexts Builds the context from the array
Returns
  • mixed
Since
  • 1.7.0
Class: Stream
Project: Joomla

Method _buildContext - Source code

/**
 * Stream contexts
 * Builds the context from the array
 *
 * @return  mixed
 *
 * @since   1.7.0
 */
public function _buildContext()
{
    // According to the manual this always works!
    if (\count($this->contextOptions)) {
        $this->context = @stream_context_create($this->contextOptions);
    } else {
        $this->context = null;
    }
}