Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

Copyright 2014-2017 Horde LLC (http://www.horde.org/) See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Copyright: 2014-2017 Horde LLC
License: http://www.horde.org/licenses/lgpl21 LGPL 2.1
File Size: 279 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Stream_TempString:: (21 methods):
  __construct()
  _init()
  __get()
  __set()
  __clone()
  __toString()
  add()
  length()
  getToChar()
  peek()
  search()
  getString()
  substring()
  getChar()
  pos()
  rewind()
  seek()
  end()
  eof()
  serialize()
  unserialize()


Class: Horde_Stream_TempString  - X-Ref

Implementation of Horde_Stream that uses a PHP native string variable
until a certain size is reached, at which point it converts storage to a
PHP temporary stream.

NOTE: Do NOT use this class if it's possible that a stream_filter will need
to be added to the stream by some client code. If the size of the data
does not exceed max_memory there will be no stream to attach to.

__construct(array $opts = array()   X-Ref
No description

_init()   X-Ref
No description

__get($name)   X-Ref
No description

__set($name, $value)   X-Ref
No description

__clone()   X-Ref
No description

__toString()   X-Ref
No description

add($data, $reset = false)   X-Ref
No description

length($utf8 = false)   X-Ref
No description

getToChar($end, $all = true)   X-Ref
No description

peek($length = 1)   X-Ref
No description

search($char, $reverse = false, $reset = true)   X-Ref
No description

getString($start = null, $end = null)   X-Ref
No description

substring($start = 0, $length = null, $char = false)   X-Ref
No description

getChar()   X-Ref
No description

pos()   X-Ref
No description

rewind()   X-Ref
No description

seek($offset = 0, $curr = true, $char = false)   X-Ref
No description

end($offset = 0)   X-Ref
No description

eof()   X-Ref
No description

serialize()   X-Ref
No description

unserialize($data)   X-Ref
No description