9 <meta property=
"og:title" content=
"ion\Writer\Options::__construct">
10 <meta name=
"viewport" content=
"width=1200, initial-scale=0.5">
11 <base href=
"/ext-ion/v0.2/">
12 <meta http-equiv=
"Content-Location" content=
"/ext-ion/v0.2/ion/Writer/Options/__construct">
13 <link rel=
"stylesheet" href=
"index.css">
15 <link rel=
"shortcut icon" href=
"/ext-ion/v0.2/favicon.ico">
23 <a href=
"https://github.com/awesomized/ext-ion/edit/master/ion.stub.php">Edit
</a>
28 <li>↰ <a href=
"./">Home
</a>
33 ↑ <a href=
"./ion">
39 ↑ <a href=
"./ion/Writer">
45 ↑ <a href=
"./ion/Writer/Options">
51 ↻ <strong><a href=
"./ion/Writer/Options/__construct">Options::__construct
</a></strong>
69 <meta charset=
"utf-8"><h1>
70 <a class=
"permalink" href=
"ion/Writer/Options/__construct#">#
</a><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/Options/__construct">ion\Writer\Options::__construct
</a>([?
<a href=
"ion/Catalog">ion\Catalog
</a> <span class=
"var">$catalog
</span> =
<code><a href=
"https://php.net/manual/en/language.types.null">NULL
</a></code>, [?
<a href=
"ion/Decimal/Context">ion\Decimal\Context
</a> <span class=
"var">$decimalContext
</span> =
<code><a href=
"https://php.net/manual/en/language.types.null">NULL
</a></code>, [
<code><a href=
"https://php.net/manual/en/language.types.boolean">bool
</a></code> <span class=
"var">$outputBinary
</span> =
<code><a href=
"https://php.net/manual/en/language.types.boolean">false
</a></code>, [
<code><a href=
"https://php.net/manual/en/language.types.boolean">bool
</a></code> <span class=
"var">$compactFloats
</span> =
<code><a href=
"https://php.net/manual/en/language.types.boolean">false
</a></code>, [
<code><a href=
"https://php.net/manual/en/language.types.boolean">bool
</a></code> <span class=
"var">$escapeNonAscii
</span> =
<code><a href=
"https://php.net/manual/en/language.types.boolean">false
</a></code>, [
<code><a href=
"https://php.net/manual/en/language.types.boolean">bool
</a></code> <span class=
"var">$prettyPrint
</span> =
<code><a href=
"https://php.net/manual/en/language.types.boolean">false
</a></code>, [
<code><a href=
"https://php.net/manual/en/language.types.boolean">bool
</a></code> <span class=
"var">$indentTabs
</span> =
<code><a href=
"https://php.net/manual/en/language.types.boolean">true
</a></code>, [
<code><a href=
"https://php.net/manual/en/language.types.integer">int
</a></code> <span class=
"var">$indentSize
</span> =
2, [
<code><a href=
"https://php.net/manual/en/language.types.boolean">bool
</a></code> <span class=
"var">$flushEveryValue
</span> =
<code><a href=
"https://php.net/manual/en/language.types.boolean">false
</a></code>, [
<code><a href=
"https://php.net/manual/en/language.types.integer">int
</a></code> <span class=
"var">$maxContainerDepth
</span> =
10, [
<code><a href=
"https://php.net/manual/en/language.types.integer">int
</a></code> <span class=
"var">$maxAnnotations
</span> =
10, [
<code><a href=
"https://php.net/manual/en/language.types.integer">int
</a></code> <span class=
"var">$tempBufferSize
</span> =
16384]]]]]]]]]]]])
</h1><p>Create custom ION writer options.
</p><h2 id=
"Params:">Params:
<a class=
"permalink" href=
"ion/Writer/Options/__construct#Params:">#
</a>
72 <li>Optional ?
<a href=
"ion/Catalog">ion\Catalog
</a> <span class=
"var" id=
"$catalog">$catalog
<a class=
"permalink" href=
"ion/Writer/Options/__construct#%24catalog">#
</a></span> =
<code><a href=
"https://php.net/manual/en/language.types.null">NULL
</a></code><br>
73 ION catalog to use for symbol lookup.
</li>
74 <li>Optional ?
<a href=
"ion/Decimal/Context">ion\Decimal\Context
</a> <span class=
"var" id=
"$decimalContext">$decimalContext
<a class=
"permalink" href=
"ion/Writer/Options/__construct#%24decimalContext">#
</a></span> =
<code><a href=
"https://php.net/manual/en/language.types.null">NULL
</a></code><br>
75 Decimal context to use.
</li>
76 <li>Optional
<code><a href=
"https://php.net/manual/en/language.types.boolean">bool
</a></code> <span class=
"var" id=
"$outputBinary">$outputBinary
<a class=
"permalink" href=
"ion/Writer/Options/__construct#%24outputBinary">#
</a></span> =
<code><a href=
"https://php.net/manual/en/language.types.boolean">false
</a></code><br>
77 Whether to output binary ION.
</li>
78 <li>Optional
<code><a href=
"https://php.net/manual/en/language.types.boolean">bool
</a></code> <span class=
"var" id=
"$compactFloats">$compactFloats
<a class=
"permalink" href=
"ion/Writer/Options/__construct#%24compactFloats">#
</a></span> =
<code><a href=
"https://php.net/manual/en/language.types.boolean">false
</a></code><br>
79 Whether to write doubles which fit in
32 bits as floats.
</li>
80 <li>Optional
<code><a href=
"https://php.net/manual/en/language.types.boolean">bool
</a></code> <span class=
"var" id=
"$escapeNonAscii">$escapeNonAscii
<a class=
"permalink" href=
"ion/Writer/Options/__construct#%24escapeNonAscii">#
</a></span> =
<code><a href=
"https://php.net/manual/en/language.types.boolean">false
</a></code><br>
81 Whether to slash-escape all non ASCII bytes.
</li>
82 <li>Optional
<code><a href=
"https://php.net/manual/en/language.types.boolean">bool
</a></code> <span class=
"var" id=
"$prettyPrint">$prettyPrint
<a class=
"permalink" href=
"ion/Writer/Options/__construct#%24prettyPrint">#
</a></span> =
<code><a href=
"https://php.net/manual/en/language.types.boolean">false
</a></code><br>
83 Whether to produce pretty-printed output.
</li>
84 <li>Optional
<code><a href=
"https://php.net/manual/en/language.types.boolean">bool
</a></code> <span class=
"var" id=
"$indentTabs">$indentTabs
<a class=
"permalink" href=
"ion/Writer/Options/__construct#%24indentTabs">#
</a></span> =
<code><a href=
"https://php.net/manual/en/language.types.boolean">true
</a></code><br>
85 Whether to indent with tabs, when pretty-printing.
</li>
86 <li>Optional
<code><a href=
"https://php.net/manual/en/language.types.integer">int
</a></code> <span class=
"var" id=
"$indentSize">$indentSize
<a class=
"permalink" href=
"ion/Writer/Options/__construct#%24indentSize">#
</a></span> =
2<br>
87 The number of spaces to use for indentation instead of tabs, when pretty-printing.
</li>
88 <li>Optional
<code><a href=
"https://php.net/manual/en/language.types.boolean">bool
</a></code> <span class=
"var" id=
"$flushEveryValue">$flushEveryValue
<a class=
"permalink" href=
"ion/Writer/Options/__construct#%24flushEveryValue">#
</a></span> =
<code><a href=
"https://php.net/manual/en/language.types.boolean">false
</a></code><br>
89 Whether to immediately flush every value written.
</li>
90 <li>Optional
<code><a href=
"https://php.net/manual/en/language.types.integer">int
</a></code> <span class=
"var" id=
"$maxContainerDepth">$maxContainerDepth
<a class=
"permalink" href=
"ion/Writer/Options/__construct#%24maxContainerDepth">#
</a></span> =
10<br>
91 Maximum depth of nested containers.
</li>
92 <li>Optional
<code><a href=
"https://php.net/manual/en/language.types.integer">int
</a></code> <span class=
"var" id=
"$maxAnnotations">$maxAnnotations
<a class=
"permalink" href=
"ion/Writer/Options/__construct#%24maxAnnotations">#
</a></span> =
10<br>
93 The maximum number of annotations allowed on a single value.
</li>
94 <li>Optional
<code><a href=
"https://php.net/manual/en/language.types.integer">int
</a></code> <span class=
"var" id=
"$tempBufferSize">$tempBufferSize
<a class=
"permalink" href=
"ion/Writer/Options/__construct#%24tempBufferSize">#
</a></span> =
16384<br>
95 Temporary buffer size.
</li>
97 <div class=
"comments">
98 <style>.giscus-frame {min-height:
16em;}
</style>
100 function giscus_load(button) {
101 let script = document.createElement(
"script");
102 script.setAttribute(
"data-repo", 'awesomized/ext-ion');
103 script.setAttribute(
"data-category", 'Comments on Docs');
104 script.setAttribute(
"data-repo-id", 'R_kgDOGfXEXw');
105 script.setAttribute(
"data-category-id", 'DIC_kwDOGfXEX84CBHuf');
106 script.setAttribute(
"data-mapping", 'og:title');
107 script.setAttribute(
"data-input-position", 'bottom');
108 script.setAttribute(
"data-reactions-enabled", false);
109 script.setAttribute(
"data-theme", 'light');
110 script.setAttribute(
"data-lang", 'en');
112 script.src =
"//giscus.app/client.js";
113 button.parentNode.replaceChild(script, button);
116 <button class=
"activator" onclick=
"giscus_load(this)">Show Comments from Github Discussions
</button>
123 <li><a href=
"https://github.com/m6w6/mdref">mdref-v3.0
125 <li><a href=
"LICENSE">© 2013-
2022 All rights reserved.
</a></li>
132 <script src=
"index.js" defer
></script>