public function isTrustedStream($stream_name)
    {
        if (isset($this->streams) && (empty($this->streams) || in_array($stream_name, $this->streams))) {
            return true;
        }

        throw new SmartyException("stream '{$stream_name}' not allowed by security setting");
    }
public function isTrustedStream($stream_name)
    {
        if (isset($this->streams) && (empty($this->streams) || in_array($stream_name, $this->streams))) {
            return true;
        }

        throw new SmartyException("stream '{$stream_name}' not allowed by security setting");
    }
public function isTrustedStream ( $ stream_name ) { if ( isset ( $ this -> streams ) && ( empty ( $ this -> streams ) || in_array ( $ stream_name , $ this -> streams ) ) ) { return true ; } throw new SmartyException ( "stream '{$stream_name}' not allowed by security setting" ) ; }
Check if stream is trusted.

@param  string          $stream_name
@return boolean         true if stream is trusted
@throws SmartyException if stream is not trusted
Check if stream is trusted .