Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Latest commit

 

History

History
61 lines (34 loc) · 1.05 KB

serpri.md

File metadata and controls

61 lines (34 loc) · 1.05 KB

Methods

__construct

\serpri serpri::__construct(mixed $input, integer $html)

serpri object constructor.

  • Visibility: public

Arguments

  • $input mixed - filename (if file exists), serialized string, array or object
  • $html integer - 1-format as html, 2-include page header/footer with CSS

inobject

\serpri serpri::inobject(mixed $input)

Set direct object to process.

  • Visibility: public

Arguments

  • $input mixed - object or array

infile

\serpri serpri::infile(string $input)

Set serialized data file to process.

  • Visibility: public

Arguments

  • $input string - filename with serialized data

instring

\serpri serpri::instring($str)

Set serialized string to process.

  • Visibility: public

Arguments

  • $str mixed

process

mixed serpri::process(integer $html)

Output formatted object.

use ob_start|ob_get_clean to put in var

  • Visibility: public

Arguments

  • $html integer - 1-format as html, 2-include page header/footer with CSS