Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402]

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: 293 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Stream_TempString:: (23 methods):
  __construct()
  _init()
  __get()
  __set()
  __clone()
  __toString()
  add()
  length()
  getToChar()
  peek()
  search()
  getString()
  substring()
  getChar()
  pos()
  rewind()
  seek()
  end()
  eof()
  serialize()
  unserialize()
  __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

__serialize()   X-Ref

return: array

__unserialize($data)   X-Ref

param: array $data
return: void