5 <title>Class: uci</title>
8 <script src="scripts/prettify/prettify.js"></script>
9 <script src="scripts/prettify/lang-css.js"></script>
10 <script src="scripts/jquery.min.js"></script>
12 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
14 <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
15 <link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
16 <link type="text/css" rel="stylesheet" href="styles/jaguar.css">
20 var config = {"monospaceLinks":true,"cleverLinks":true,"default":{"outputSourceFiles":true}};
27 <div id="wrap" class="clearfix">
29 <div class="navigation">
30 <h3 class="applicationName"><a href="index.html"></a></h3>
33 <input id="search" type="text" class="form-control input-sm" placeholder="Search Documentations">
37 <li class="item" data-name="LuCI">
39 <a href="LuCI.html">LuCI</a>
42 <ul class="members itemMembers">
44 <span class="subtitle">Members</span>
46 <li data-name="LuCI#env"><a href="LuCI.html#env">env</a></li>
49 <ul class="typedefs itemMembers">
51 <span class="subtitle">Typedefs</span>
53 <li data-name="LuCI.requestCallbackFn"><a href="LuCI.html#.requestCallbackFn">requestCallbackFn</a></li>
56 <ul class="typedefs itemMembers">
59 <ul class="methods itemMembers">
61 <span class="subtitle">Methods</span>
63 <li data-name="LuCI#bind"><a href="LuCI.html#bind">bind</a></li>
65 <li data-name="LuCI#error"><a href="LuCI.html#error">error</a></li>
67 <li data-name="LuCI#get"><a href="LuCI.html#get">get</a></li>
69 <li data-name="LuCI#halt"><a href="LuCI.html#halt">halt</a></li>
71 <li data-name="LuCI#hasSystemFeature"><a href="LuCI.html#hasSystemFeature">hasSystemFeature</a></li>
73 <li data-name="LuCI#isObject"><a href="LuCI.html#isObject">isObject</a></li>
75 <li data-name="LuCI#location"><a href="LuCI.html#location">location</a></li>
77 <li data-name="LuCI#path"><a href="LuCI.html#path">path</a></li>
79 <li data-name="LuCI#poll"><a href="LuCI.html#poll">poll</a></li>
81 <li data-name="LuCI#post"><a href="LuCI.html#post">post</a></li>
83 <li data-name="LuCI#raise"><a href="LuCI.html#raise">raise</a></li>
85 <li data-name="LuCI#require"><a href="LuCI.html#require">require</a></li>
87 <li data-name="LuCI#resolveDefault"><a href="LuCI.html#resolveDefault">resolveDefault</a></li>
89 <li data-name="LuCI#resource"><a href="LuCI.html#resource">resource</a></li>
91 <li data-name="LuCI#run"><a href="LuCI.html#run">run</a></li>
93 <li data-name="LuCI#sortedKeys"><a href="LuCI.html#sortedKeys">sortedKeys</a></li>
95 <li data-name="LuCI#stop"><a href="LuCI.html#stop">stop</a></li>
97 <li data-name="LuCI#toArray"><a href="LuCI.html#toArray">toArray</a></li>
99 <li data-name="LuCI#url"><a href="LuCI.html#url">url</a></li>
102 <ul class="events itemMembers">
107 <li class="item" data-name="LuCI.Class">
109 <a href="LuCI.Class.html">LuCI.Class</a>
112 <ul class="members itemMembers">
115 <ul class="typedefs itemMembers">
118 <ul class="typedefs itemMembers">
121 <ul class="methods itemMembers">
123 <span class="subtitle">Methods</span>
125 <li data-name="LuCI.Class.extend"><a href="LuCI.Class.html#.extend">extend</a></li>
127 <li data-name="LuCI.Class.instantiate"><a href="LuCI.Class.html#.instantiate">instantiate</a></li>
129 <li data-name="LuCI.Class.isSubclass"><a href="LuCI.Class.html#.isSubclass">isSubclass</a></li>
131 <li data-name="LuCI.Class.singleton"><a href="LuCI.Class.html#.singleton">singleton</a></li>
133 <li data-name="LuCI.Class#super"><a href="LuCI.Class.html#super">super</a></li>
135 <li data-name="LuCI.Class#varargs"><a href="LuCI.Class.html#varargs">varargs</a></li>
138 <ul class="events itemMembers">
143 <li class="item" data-name="LuCI.dom">
145 <a href="LuCI.dom.html">LuCI.dom</a>
148 <ul class="members itemMembers">
151 <ul class="typedefs itemMembers">
153 <span class="subtitle">Typedefs</span>
155 <li data-name="LuCI.dom~ignoreCallbackFn"><a href="LuCI.dom.html#~ignoreCallbackFn">ignoreCallbackFn</a></li>
158 <ul class="typedefs itemMembers">
161 <ul class="methods itemMembers">
163 <span class="subtitle">Methods</span>
165 <li data-name="LuCI.dom#append"><a href="LuCI.dom.html#append">append</a></li>
167 <li data-name="LuCI.dom#attr"><a href="LuCI.dom.html#attr">attr</a></li>
169 <li data-name="LuCI.dom#bindClassInstance"><a href="LuCI.dom.html#bindClassInstance">bindClassInstance</a></li>
171 <li data-name="LuCI.dom#callClassMethod"><a href="LuCI.dom.html#callClassMethod">callClassMethod</a></li>
173 <li data-name="LuCI.dom#content"><a href="LuCI.dom.html#content">content</a></li>
175 <li data-name="LuCI.dom#create"><a href="LuCI.dom.html#create">create</a></li>
177 <li data-name="LuCI.dom#data"><a href="LuCI.dom.html#data">data</a></li>
179 <li data-name="LuCI.dom#elem"><a href="LuCI.dom.html#elem">elem</a></li>
181 <li data-name="LuCI.dom#findClassInstance"><a href="LuCI.dom.html#findClassInstance">findClassInstance</a></li>
183 <li data-name="LuCI.dom#isEmpty"><a href="LuCI.dom.html#isEmpty">isEmpty</a></li>
185 <li data-name="LuCI.dom#matches"><a href="LuCI.dom.html#matches">matches</a></li>
187 <li data-name="LuCI.dom#parent"><a href="LuCI.dom.html#parent">parent</a></li>
189 <li data-name="LuCI.dom#parse"><a href="LuCI.dom.html#parse">parse</a></li>
192 <ul class="events itemMembers">
197 <li class="item" data-name="LuCI.fs">
199 <a href="LuCI.fs.html">LuCI.fs</a>
202 <ul class="members itemMembers">
205 <ul class="typedefs itemMembers">
207 <span class="subtitle">Typedefs</span>
209 <li data-name="LuCI.fs.FileExecResult"><a href="LuCI.fs.html#.FileExecResult">FileExecResult</a></li>
211 <li data-name="LuCI.fs.FileStatEntry"><a href="LuCI.fs.html#.FileStatEntry">FileStatEntry</a></li>
214 <ul class="typedefs itemMembers">
217 <ul class="methods itemMembers">
219 <span class="subtitle">Methods</span>
221 <li data-name="LuCI.fs#exec"><a href="LuCI.fs.html#exec">exec</a></li>
223 <li data-name="LuCI.fs#lines"><a href="LuCI.fs.html#lines">lines</a></li>
225 <li data-name="LuCI.fs#list"><a href="LuCI.fs.html#list">list</a></li>
227 <li data-name="LuCI.fs#read"><a href="LuCI.fs.html#read">read</a></li>
229 <li data-name="LuCI.fs#remove"><a href="LuCI.fs.html#remove">remove</a></li>
231 <li data-name="LuCI.fs#stat"><a href="LuCI.fs.html#stat">stat</a></li>
233 <li data-name="LuCI.fs#trimmed"><a href="LuCI.fs.html#trimmed">trimmed</a></li>
235 <li data-name="LuCI.fs#write"><a href="LuCI.fs.html#write">write</a></li>
238 <ul class="events itemMembers">
243 <li class="item" data-name="LuCI.Headers">
245 <a href="LuCI.Headers.html">LuCI.Headers</a>
248 <ul class="members itemMembers">
251 <ul class="typedefs itemMembers">
254 <ul class="typedefs itemMembers">
257 <ul class="methods itemMembers">
259 <span class="subtitle">Methods</span>
261 <li data-name="LuCI.Headers#get"><a href="LuCI.Headers.html#get">get</a></li>
263 <li data-name="LuCI.Headers#has"><a href="LuCI.Headers.html#has">has</a></li>
266 <ul class="events itemMembers">
271 <li class="item" data-name="LuCI.Network">
273 <a href="LuCI.Network.html">LuCI.Network</a>
276 <ul class="members itemMembers">
279 <ul class="typedefs itemMembers">
281 <span class="subtitle">Typedefs</span>
283 <li data-name="LuCI.Network.SwitchTopology"><a href="LuCI.Network.html#.SwitchTopology">SwitchTopology</a></li>
285 <li data-name="LuCI.Network.WifiEncryption"><a href="LuCI.Network.html#.WifiEncryption">WifiEncryption</a></li>
287 <li data-name="LuCI.Network.WifiPeerEntry"><a href="LuCI.Network.html#.WifiPeerEntry">WifiPeerEntry</a></li>
289 <li data-name="LuCI.Network.WifiRateEntry"><a href="LuCI.Network.html#.WifiRateEntry">WifiRateEntry</a></li>
291 <li data-name="LuCI.Network.WifiScanResult"><a href="LuCI.Network.html#.WifiScanResult">WifiScanResult</a></li>
294 <ul class="typedefs itemMembers">
297 <ul class="methods itemMembers">
299 <span class="subtitle">Methods</span>
301 <li data-name="LuCI.Network#addNetwork"><a href="LuCI.Network.html#addNetwork">addNetwork</a></li>
303 <li data-name="LuCI.Network#addWifiNetwork"><a href="LuCI.Network.html#addWifiNetwork">addWifiNetwork</a></li>
305 <li data-name="LuCI.Network#deleteNetwork"><a href="LuCI.Network.html#deleteNetwork">deleteNetwork</a></li>
307 <li data-name="LuCI.Network#deleteWifiNetwork"><a href="LuCI.Network.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
309 <li data-name="LuCI.Network#flushCache"><a href="LuCI.Network.html#flushCache">flushCache</a></li>
311 <li data-name="LuCI.Network#formatWifiEncryption"><a href="LuCI.Network.html#formatWifiEncryption">formatWifiEncryption</a></li>
313 <li data-name="LuCI.Network#getDevice"><a href="LuCI.Network.html#getDevice">getDevice</a></li>
315 <li data-name="LuCI.Network#getDevices"><a href="LuCI.Network.html#getDevices">getDevices</a></li>
317 <li data-name="LuCI.Network#getDSLModemType"><a href="LuCI.Network.html#getDSLModemType">getDSLModemType</a></li>
319 <li data-name="LuCI.Network#getHostHints"><a href="LuCI.Network.html#getHostHints">getHostHints</a></li>
321 <li data-name="LuCI.Network#getIfnameOf"><a href="LuCI.Network.html#getIfnameOf">getIfnameOf</a></li>
323 <li data-name="LuCI.Network#getNetwork"><a href="LuCI.Network.html#getNetwork">getNetwork</a></li>
325 <li data-name="LuCI.Network#getNetworks"><a href="LuCI.Network.html#getNetworks">getNetworks</a></li>
327 <li data-name="LuCI.Network#getProtocol"><a href="LuCI.Network.html#getProtocol">getProtocol</a></li>
329 <li data-name="LuCI.Network#getProtocols"><a href="LuCI.Network.html#getProtocols">getProtocols</a></li>
331 <li data-name="LuCI.Network#getSwitchTopologies"><a href="LuCI.Network.html#getSwitchTopologies">getSwitchTopologies</a></li>
333 <li data-name="LuCI.Network#getWAN6Networks"><a href="LuCI.Network.html#getWAN6Networks">getWAN6Networks</a></li>
335 <li data-name="LuCI.Network#getWANNetworks"><a href="LuCI.Network.html#getWANNetworks">getWANNetworks</a></li>
337 <li data-name="LuCI.Network#getWifiDevice"><a href="LuCI.Network.html#getWifiDevice">getWifiDevice</a></li>
339 <li data-name="LuCI.Network#getWifiDevices"><a href="LuCI.Network.html#getWifiDevices">getWifiDevices</a></li>
341 <li data-name="LuCI.Network#getWifiNetwork"><a href="LuCI.Network.html#getWifiNetwork">getWifiNetwork</a></li>
343 <li data-name="LuCI.Network#getWifiNetworks"><a href="LuCI.Network.html#getWifiNetworks">getWifiNetworks</a></li>
345 <li data-name="LuCI.Network#isIgnoredDevice"><a href="LuCI.Network.html#isIgnoredDevice">isIgnoredDevice</a></li>
347 <li data-name="LuCI.Network#maskToPrefix"><a href="LuCI.Network.html#maskToPrefix">maskToPrefix</a></li>
349 <li data-name="LuCI.Network#prefixToMask"><a href="LuCI.Network.html#prefixToMask">prefixToMask</a></li>
351 <li data-name="LuCI.Network#registerErrorCode"><a href="LuCI.Network.html#registerErrorCode">registerErrorCode</a></li>
353 <li data-name="LuCI.Network#registerPatternVirtual"><a href="LuCI.Network.html#registerPatternVirtual">registerPatternVirtual</a></li>
355 <li data-name="LuCI.Network#registerProtocol"><a href="LuCI.Network.html#registerProtocol">registerProtocol</a></li>
357 <li data-name="LuCI.Network#renameNetwork"><a href="LuCI.Network.html#renameNetwork">renameNetwork</a></li>
360 <ul class="events itemMembers">
365 <li class="item" data-name="LuCI.Network.Device">
367 <a href="LuCI.Network.Device.html">LuCI.Network.Device</a>
370 <ul class="members itemMembers">
373 <ul class="typedefs itemMembers">
376 <ul class="typedefs itemMembers">
379 <ul class="methods itemMembers">
381 <span class="subtitle">Methods</span>
383 <li data-name="LuCI.Network.Device#getBridgeID"><a href="LuCI.Network.Device.html#getBridgeID">getBridgeID</a></li>
385 <li data-name="LuCI.Network.Device#getBridgeSTP"><a href="LuCI.Network.Device.html#getBridgeSTP">getBridgeSTP</a></li>
387 <li data-name="LuCI.Network.Device#getI18n"><a href="LuCI.Network.Device.html#getI18n">getI18n</a></li>
389 <li data-name="LuCI.Network.Device#getIP6Addrs"><a href="LuCI.Network.Device.html#getIP6Addrs">getIP6Addrs</a></li>
391 <li data-name="LuCI.Network.Device#getIPAddrs"><a href="LuCI.Network.Device.html#getIPAddrs">getIPAddrs</a></li>
393 <li data-name="LuCI.Network.Device#getMAC"><a href="LuCI.Network.Device.html#getMAC">getMAC</a></li>
395 <li data-name="LuCI.Network.Device#getMTU"><a href="LuCI.Network.Device.html#getMTU">getMTU</a></li>
397 <li data-name="LuCI.Network.Device#getName"><a href="LuCI.Network.Device.html#getName">getName</a></li>
399 <li data-name="LuCI.Network.Device#getNetwork"><a href="LuCI.Network.Device.html#getNetwork">getNetwork</a></li>
401 <li data-name="LuCI.Network.Device#getNetworks"><a href="LuCI.Network.Device.html#getNetworks">getNetworks</a></li>
403 <li data-name="LuCI.Network.Device#getPorts"><a href="LuCI.Network.Device.html#getPorts">getPorts</a></li>
405 <li data-name="LuCI.Network.Device#getRXBytes"><a href="LuCI.Network.Device.html#getRXBytes">getRXBytes</a></li>
407 <li data-name="LuCI.Network.Device#getRXPackets"><a href="LuCI.Network.Device.html#getRXPackets">getRXPackets</a></li>
409 <li data-name="LuCI.Network.Device#getShortName"><a href="LuCI.Network.Device.html#getShortName">getShortName</a></li>
411 <li data-name="LuCI.Network.Device#getTXBytes"><a href="LuCI.Network.Device.html#getTXBytes">getTXBytes</a></li>
413 <li data-name="LuCI.Network.Device#getTXPackets"><a href="LuCI.Network.Device.html#getTXPackets">getTXPackets</a></li>
415 <li data-name="LuCI.Network.Device#getType"><a href="LuCI.Network.Device.html#getType">getType</a></li>
417 <li data-name="LuCI.Network.Device#getTypeI18n"><a href="LuCI.Network.Device.html#getTypeI18n">getTypeI18n</a></li>
419 <li data-name="LuCI.Network.Device#getWifiNetwork"><a href="LuCI.Network.Device.html#getWifiNetwork">getWifiNetwork</a></li>
421 <li data-name="LuCI.Network.Device#isBridge"><a href="LuCI.Network.Device.html#isBridge">isBridge</a></li>
423 <li data-name="LuCI.Network.Device#isBridgePort"><a href="LuCI.Network.Device.html#isBridgePort">isBridgePort</a></li>
425 <li data-name="LuCI.Network.Device#isUp"><a href="LuCI.Network.Device.html#isUp">isUp</a></li>
428 <ul class="events itemMembers">
433 <li class="item" data-name="LuCI.Network.Hosts">
435 <a href="LuCI.Network.Hosts.html">LuCI.Network.Hosts</a>
438 <ul class="members itemMembers">
441 <ul class="typedefs itemMembers">
444 <ul class="typedefs itemMembers">
447 <ul class="methods itemMembers">
449 <span class="subtitle">Methods</span>
451 <li data-name="LuCI.Network.Hosts#getHostnameByIP6Addr"><a href="LuCI.Network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr</a></li>
453 <li data-name="LuCI.Network.Hosts#getHostnameByIPAddr"><a href="LuCI.Network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr</a></li>
455 <li data-name="LuCI.Network.Hosts#getHostnameByMACAddr"><a href="LuCI.Network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr</a></li>
457 <li data-name="LuCI.Network.Hosts#getIP6AddrByMACAddr"><a href="LuCI.Network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr</a></li>
459 <li data-name="LuCI.Network.Hosts#getIPAddrByMACAddr"><a href="LuCI.Network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr</a></li>
461 <li data-name="LuCI.Network.Hosts#getMACAddrByIP6Addr"><a href="LuCI.Network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr</a></li>
463 <li data-name="LuCI.Network.Hosts#getMACAddrByIPAddr"><a href="LuCI.Network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr</a></li>
465 <li data-name="LuCI.Network.Hosts#getMACHints"><a href="LuCI.Network.Hosts.html#getMACHints">getMACHints</a></li>
468 <ul class="events itemMembers">
473 <li class="item" data-name="LuCI.Network.Protocol">
475 <a href="LuCI.Network.Protocol.html">LuCI.Network.Protocol</a>
478 <ul class="members itemMembers">
481 <ul class="typedefs itemMembers">
484 <ul class="typedefs itemMembers">
487 <ul class="methods itemMembers">
489 <span class="subtitle">Methods</span>
491 <li data-name="LuCI.Network.Protocol#addDevice"><a href="LuCI.Network.Protocol.html#addDevice">addDevice</a></li>
493 <li data-name="LuCI.Network.Protocol#containsDevice"><a href="LuCI.Network.Protocol.html#containsDevice">containsDevice</a></li>
495 <li data-name="LuCI.Network.Protocol#deleteDevice"><a href="LuCI.Network.Protocol.html#deleteDevice">deleteDevice</a></li>
497 <li data-name="LuCI.Network.Protocol#get"><a href="LuCI.Network.Protocol.html#get">get</a></li>
499 <li data-name="LuCI.Network.Protocol#getDevice"><a href="LuCI.Network.Protocol.html#getDevice">getDevice</a></li>
501 <li data-name="LuCI.Network.Protocol#getDevices"><a href="LuCI.Network.Protocol.html#getDevices">getDevices</a></li>
503 <li data-name="LuCI.Network.Protocol#getDNS6Addrs"><a href="LuCI.Network.Protocol.html#getDNS6Addrs">getDNS6Addrs</a></li>
505 <li data-name="LuCI.Network.Protocol#getDNSAddrs"><a href="LuCI.Network.Protocol.html#getDNSAddrs">getDNSAddrs</a></li>
507 <li data-name="LuCI.Network.Protocol#getErrors"><a href="LuCI.Network.Protocol.html#getErrors">getErrors</a></li>
509 <li data-name="LuCI.Network.Protocol#getExpiry"><a href="LuCI.Network.Protocol.html#getExpiry">getExpiry</a></li>
511 <li data-name="LuCI.Network.Protocol#getGateway6Addr"><a href="LuCI.Network.Protocol.html#getGateway6Addr">getGateway6Addr</a></li>
513 <li data-name="LuCI.Network.Protocol#getGatewayAddr"><a href="LuCI.Network.Protocol.html#getGatewayAddr">getGatewayAddr</a></li>
515 <li data-name="LuCI.Network.Protocol#getI18n"><a href="LuCI.Network.Protocol.html#getI18n">getI18n</a></li>
517 <li data-name="LuCI.Network.Protocol#getIfname"><a href="LuCI.Network.Protocol.html#getIfname">getIfname</a></li>
519 <li data-name="LuCI.Network.Protocol#getIP6Addr"><a href="LuCI.Network.Protocol.html#getIP6Addr">getIP6Addr</a></li>
521 <li data-name="LuCI.Network.Protocol#getIP6Addrs"><a href="LuCI.Network.Protocol.html#getIP6Addrs">getIP6Addrs</a></li>
523 <li data-name="LuCI.Network.Protocol#getIP6Prefix"><a href="LuCI.Network.Protocol.html#getIP6Prefix">getIP6Prefix</a></li>
525 <li data-name="LuCI.Network.Protocol#getIPAddr"><a href="LuCI.Network.Protocol.html#getIPAddr">getIPAddr</a></li>
527 <li data-name="LuCI.Network.Protocol#getIPAddrs"><a href="LuCI.Network.Protocol.html#getIPAddrs">getIPAddrs</a></li>
529 <li data-name="LuCI.Network.Protocol#getL2Device"><a href="LuCI.Network.Protocol.html#getL2Device">getL2Device</a></li>
531 <li data-name="LuCI.Network.Protocol#getL3Device"><a href="LuCI.Network.Protocol.html#getL3Device">getL3Device</a></li>
533 <li data-name="LuCI.Network.Protocol#getMetric"><a href="LuCI.Network.Protocol.html#getMetric">getMetric</a></li>
535 <li data-name="LuCI.Network.Protocol#getName"><a href="LuCI.Network.Protocol.html#getName">getName</a></li>
537 <li data-name="LuCI.Network.Protocol#getNetmask"><a href="LuCI.Network.Protocol.html#getNetmask">getNetmask</a></li>
539 <li data-name="LuCI.Network.Protocol#getOpkgPackage"><a href="LuCI.Network.Protocol.html#getOpkgPackage">getOpkgPackage</a></li>
541 <li data-name="LuCI.Network.Protocol#getProtocol"><a href="LuCI.Network.Protocol.html#getProtocol">getProtocol</a></li>
543 <li data-name="LuCI.Network.Protocol#getType"><a href="LuCI.Network.Protocol.html#getType">getType</a></li>
545 <li data-name="LuCI.Network.Protocol#getUptime"><a href="LuCI.Network.Protocol.html#getUptime">getUptime</a></li>
547 <li data-name="LuCI.Network.Protocol#getZoneName"><a href="LuCI.Network.Protocol.html#getZoneName">getZoneName</a></li>
549 <li data-name="LuCI.Network.Protocol#isAlias"><a href="LuCI.Network.Protocol.html#isAlias">isAlias</a></li>
551 <li data-name="LuCI.Network.Protocol#isBridge"><a href="LuCI.Network.Protocol.html#isBridge">isBridge</a></li>
553 <li data-name="LuCI.Network.Protocol#isDynamic"><a href="LuCI.Network.Protocol.html#isDynamic">isDynamic</a></li>
555 <li data-name="LuCI.Network.Protocol#isEmpty"><a href="LuCI.Network.Protocol.html#isEmpty">isEmpty</a></li>
557 <li data-name="LuCI.Network.Protocol#isFloating"><a href="LuCI.Network.Protocol.html#isFloating">isFloating</a></li>
559 <li data-name="LuCI.Network.Protocol#isInstalled"><a href="LuCI.Network.Protocol.html#isInstalled">isInstalled</a></li>
561 <li data-name="LuCI.Network.Protocol#isUp"><a href="LuCI.Network.Protocol.html#isUp">isUp</a></li>
563 <li data-name="LuCI.Network.Protocol#isVirtual"><a href="LuCI.Network.Protocol.html#isVirtual">isVirtual</a></li>
565 <li data-name="LuCI.Network.Protocol#set"><a href="LuCI.Network.Protocol.html#set">set</a></li>
568 <ul class="events itemMembers">
573 <li class="item" data-name="LuCI.Network.WifiDevice">
575 <a href="LuCI.Network.WifiDevice.html">LuCI.Network.WifiDevice</a>
578 <ul class="members itemMembers">
581 <ul class="typedefs itemMembers">
584 <ul class="typedefs itemMembers">
587 <ul class="methods itemMembers">
589 <span class="subtitle">Methods</span>
591 <li data-name="LuCI.Network.WifiDevice#addWifiNetwork"><a href="LuCI.Network.WifiDevice.html#addWifiNetwork">addWifiNetwork</a></li>
593 <li data-name="LuCI.Network.WifiDevice#deleteWifiNetwork"><a href="LuCI.Network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
595 <li data-name="LuCI.Network.WifiDevice#get"><a href="LuCI.Network.WifiDevice.html#get">get</a></li>
597 <li data-name="LuCI.Network.WifiDevice#getHTModes"><a href="LuCI.Network.WifiDevice.html#getHTModes">getHTModes</a></li>
599 <li data-name="LuCI.Network.WifiDevice#getHWModes"><a href="LuCI.Network.WifiDevice.html#getHWModes">getHWModes</a></li>
601 <li data-name="LuCI.Network.WifiDevice#getI18n"><a href="LuCI.Network.WifiDevice.html#getI18n">getI18n</a></li>
603 <li data-name="LuCI.Network.WifiDevice#getName"><a href="LuCI.Network.WifiDevice.html#getName">getName</a></li>
605 <li data-name="LuCI.Network.WifiDevice#getScanList"><a href="LuCI.Network.WifiDevice.html#getScanList">getScanList</a></li>
607 <li data-name="LuCI.Network.WifiDevice#getWifiNetwork"><a href="LuCI.Network.WifiDevice.html#getWifiNetwork">getWifiNetwork</a></li>
609 <li data-name="LuCI.Network.WifiDevice#getWifiNetworks"><a href="LuCI.Network.WifiDevice.html#getWifiNetworks">getWifiNetworks</a></li>
611 <li data-name="LuCI.Network.WifiDevice#isDisabled"><a href="LuCI.Network.WifiDevice.html#isDisabled">isDisabled</a></li>
613 <li data-name="LuCI.Network.WifiDevice#isUp"><a href="LuCI.Network.WifiDevice.html#isUp">isUp</a></li>
615 <li data-name="LuCI.Network.WifiDevice#set"><a href="LuCI.Network.WifiDevice.html#set">set</a></li>
618 <ul class="events itemMembers">
623 <li class="item" data-name="LuCI.Network.WifiNetwork">
625 <a href="LuCI.Network.WifiNetwork.html">LuCI.Network.WifiNetwork</a>
628 <ul class="members itemMembers">
631 <ul class="typedefs itemMembers">
634 <ul class="typedefs itemMembers">
637 <ul class="methods itemMembers">
639 <span class="subtitle">Methods</span>
641 <li data-name="LuCI.Network.WifiNetwork#disconnectClient"><a href="LuCI.Network.WifiNetwork.html#disconnectClient">disconnectClient</a></li>
643 <li data-name="LuCI.Network.WifiNetwork#get"><a href="LuCI.Network.WifiNetwork.html#get">get</a></li>
645 <li data-name="LuCI.Network.WifiNetwork#getActiveBSSID"><a href="LuCI.Network.WifiNetwork.html#getActiveBSSID">getActiveBSSID</a></li>
647 <li data-name="LuCI.Network.WifiNetwork#getActiveEncryption"><a href="LuCI.Network.WifiNetwork.html#getActiveEncryption">getActiveEncryption</a></li>
649 <li data-name="LuCI.Network.WifiNetwork#getActiveMode"><a href="LuCI.Network.WifiNetwork.html#getActiveMode">getActiveMode</a></li>
651 <li data-name="LuCI.Network.WifiNetwork#getActiveModeI18n"><a href="LuCI.Network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n</a></li>
653 <li data-name="LuCI.Network.WifiNetwork#getActiveSSID"><a href="LuCI.Network.WifiNetwork.html#getActiveSSID">getActiveSSID</a></li>
655 <li data-name="LuCI.Network.WifiNetwork#getAssocList"><a href="LuCI.Network.WifiNetwork.html#getAssocList">getAssocList</a></li>
657 <li data-name="LuCI.Network.WifiNetwork#getBitRate"><a href="LuCI.Network.WifiNetwork.html#getBitRate">getBitRate</a></li>
659 <li data-name="LuCI.Network.WifiNetwork#getBSSID"><a href="LuCI.Network.WifiNetwork.html#getBSSID">getBSSID</a></li>
661 <li data-name="LuCI.Network.WifiNetwork#getChannel"><a href="LuCI.Network.WifiNetwork.html#getChannel">getChannel</a></li>
663 <li data-name="LuCI.Network.WifiNetwork#getCountryCode"><a href="LuCI.Network.WifiNetwork.html#getCountryCode">getCountryCode</a></li>
665 <li data-name="LuCI.Network.WifiNetwork#getDevice"><a href="LuCI.Network.WifiNetwork.html#getDevice">getDevice</a></li>
667 <li data-name="LuCI.Network.WifiNetwork#getFrequency"><a href="LuCI.Network.WifiNetwork.html#getFrequency">getFrequency</a></li>
669 <li data-name="LuCI.Network.WifiNetwork#getI18n"><a href="LuCI.Network.WifiNetwork.html#getI18n">getI18n</a></li>
671 <li data-name="LuCI.Network.WifiNetwork#getID"><a href="LuCI.Network.WifiNetwork.html#getID">getID</a></li>
673 <li data-name="LuCI.Network.WifiNetwork#getIfname"><a href="LuCI.Network.WifiNetwork.html#getIfname">getIfname</a></li>
675 <li data-name="LuCI.Network.WifiNetwork#getMeshID"><a href="LuCI.Network.WifiNetwork.html#getMeshID">getMeshID</a></li>
677 <li data-name="LuCI.Network.WifiNetwork#getMode"><a href="LuCI.Network.WifiNetwork.html#getMode">getMode</a></li>
679 <li data-name="LuCI.Network.WifiNetwork#getName"><a href="LuCI.Network.WifiNetwork.html#getName">getName</a></li>
681 <li data-name="LuCI.Network.WifiNetwork#getNetwork"><a href="LuCI.Network.WifiNetwork.html#getNetwork">getNetwork</a></li>
683 <li data-name="LuCI.Network.WifiNetwork#getNetworkNames"><a href="LuCI.Network.WifiNetwork.html#getNetworkNames">getNetworkNames</a></li>
685 <li data-name="LuCI.Network.WifiNetwork#getNetworks"><a href="LuCI.Network.WifiNetwork.html#getNetworks">getNetworks</a></li>
687 <li data-name="LuCI.Network.WifiNetwork#getNoise"><a href="LuCI.Network.WifiNetwork.html#getNoise">getNoise</a></li>
689 <li data-name="LuCI.Network.WifiNetwork#getShortName"><a href="LuCI.Network.WifiNetwork.html#getShortName">getShortName</a></li>
691 <li data-name="LuCI.Network.WifiNetwork#getSignal"><a href="LuCI.Network.WifiNetwork.html#getSignal">getSignal</a></li>
693 <li data-name="LuCI.Network.WifiNetwork#getSignalLevel"><a href="LuCI.Network.WifiNetwork.html#getSignalLevel">getSignalLevel</a></li>
695 <li data-name="LuCI.Network.WifiNetwork#getSignalPercent"><a href="LuCI.Network.WifiNetwork.html#getSignalPercent">getSignalPercent</a></li>
697 <li data-name="LuCI.Network.WifiNetwork#getSSID"><a href="LuCI.Network.WifiNetwork.html#getSSID">getSSID</a></li>
699 <li data-name="LuCI.Network.WifiNetwork#getTXPower"><a href="LuCI.Network.WifiNetwork.html#getTXPower">getTXPower</a></li>
701 <li data-name="LuCI.Network.WifiNetwork#getTXPowerOffset"><a href="LuCI.Network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset</a></li>
703 <li data-name="LuCI.Network.WifiNetwork#getWifiDevice"><a href="LuCI.Network.WifiNetwork.html#getWifiDevice">getWifiDevice</a></li>
705 <li data-name="LuCI.Network.WifiNetwork#getWifiDeviceName"><a href="LuCI.Network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName</a></li>
707 <li data-name="LuCI.Network.WifiNetwork#isClientDisconnectSupported"><a href="LuCI.Network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported</a></li>
709 <li data-name="LuCI.Network.WifiNetwork#isDisabled"><a href="LuCI.Network.WifiNetwork.html#isDisabled">isDisabled</a></li>
711 <li data-name="LuCI.Network.WifiNetwork#isUp"><a href="LuCI.Network.WifiNetwork.html#isUp">isUp</a></li>
713 <li data-name="LuCI.Network.WifiNetwork#set"><a href="LuCI.Network.WifiNetwork.html#set">set</a></li>
716 <ul class="events itemMembers">
721 <li class="item" data-name="LuCI.Poll">
723 <a href="LuCI.Poll.html">LuCI.Poll</a>
726 <ul class="members itemMembers">
729 <ul class="typedefs itemMembers">
732 <ul class="typedefs itemMembers">
735 <ul class="methods itemMembers">
737 <span class="subtitle">Methods</span>
739 <li data-name="LuCI.Poll#active"><a href="LuCI.Poll.html#active">active</a></li>
741 <li data-name="LuCI.Poll#add"><a href="LuCI.Poll.html#add">add</a></li>
743 <li data-name="LuCI.Poll#remove"><a href="LuCI.Poll.html#remove">remove</a></li>
745 <li data-name="LuCI.Poll#start"><a href="LuCI.Poll.html#start">start</a></li>
747 <li data-name="LuCI.Poll#stop"><a href="LuCI.Poll.html#stop">stop</a></li>
750 <ul class="events itemMembers">
755 <li class="item" data-name="LuCI.Request">
757 <a href="LuCI.Request.html">LuCI.Request</a>
760 <ul class="members itemMembers">
763 <ul class="typedefs itemMembers">
765 <span class="subtitle">Typedefs</span>
767 <li data-name="LuCI.Request.interceptorFn"><a href="LuCI.Request.html#.interceptorFn">interceptorFn</a></li>
769 <li data-name="LuCI.Request.RequestOptions"><a href="LuCI.Request.html#.RequestOptions">RequestOptions</a></li>
772 <ul class="typedefs itemMembers">
775 <ul class="methods itemMembers">
777 <span class="subtitle">Methods</span>
779 <li data-name="LuCI.Request#addInterceptor"><a href="LuCI.Request.html#addInterceptor">addInterceptor</a></li>
781 <li data-name="LuCI.Request#expandURL"><a href="LuCI.Request.html#expandURL">expandURL</a></li>
783 <li data-name="LuCI.Request#get"><a href="LuCI.Request.html#get">get</a></li>
785 <li data-name="LuCI.Request#post"><a href="LuCI.Request.html#post">post</a></li>
787 <li data-name="LuCI.Request#removeInterceptor"><a href="LuCI.Request.html#removeInterceptor">removeInterceptor</a></li>
789 <li data-name="LuCI.Request#request"><a href="LuCI.Request.html#request">request</a></li>
792 <ul class="events itemMembers">
797 <li class="item" data-name="LuCI.Request.poll">
799 <a href="LuCI.Request.poll.html">LuCI.Request.poll</a>
802 <ul class="members itemMembers">
805 <ul class="typedefs itemMembers">
807 <span class="subtitle">Typedefs</span>
809 <li data-name="LuCI.Request.poll~callbackFn"><a href="LuCI.Request.poll.html#~callbackFn">callbackFn</a></li>
812 <ul class="typedefs itemMembers">
815 <ul class="methods itemMembers">
817 <span class="subtitle">Methods</span>
819 <li data-name="LuCI.Request.poll#active"><a href="LuCI.Request.poll.html#active">active</a></li>
821 <li data-name="LuCI.Request.poll#add"><a href="LuCI.Request.poll.html#add">add</a></li>
823 <li data-name="LuCI.Request.poll#remove"><a href="LuCI.Request.poll.html#remove">remove</a></li>
825 <li data-name="LuCI.Request.poll#start"><a href="LuCI.Request.poll.html#start">start</a></li>
827 <li data-name="LuCI.Request.poll#stop"><a href="LuCI.Request.poll.html#stop">stop</a></li>
830 <ul class="events itemMembers">
835 <li class="item" data-name="LuCI.Response">
837 <a href="LuCI.Response.html">LuCI.Response</a>
840 <ul class="members itemMembers">
842 <span class="subtitle">Members</span>
844 <li data-name="LuCI.Response#duration"><a href="LuCI.Response.html#duration">duration</a></li>
846 <li data-name="LuCI.Response#headers"><a href="LuCI.Response.html#headers">headers</a></li>
848 <li data-name="LuCI.Response#ok"><a href="LuCI.Response.html#ok">ok</a></li>
850 <li data-name="LuCI.Response#status"><a href="LuCI.Response.html#status">status</a></li>
852 <li data-name="LuCI.Response#statusText"><a href="LuCI.Response.html#statusText">statusText</a></li>
854 <li data-name="LuCI.Response#url"><a href="LuCI.Response.html#url">url</a></li>
857 <ul class="typedefs itemMembers">
860 <ul class="typedefs itemMembers">
863 <ul class="methods itemMembers">
865 <span class="subtitle">Methods</span>
867 <li data-name="LuCI.Response#clone"><a href="LuCI.Response.html#clone">clone</a></li>
869 <li data-name="LuCI.Response#json"><a href="LuCI.Response.html#json">json</a></li>
871 <li data-name="LuCI.Response#text"><a href="LuCI.Response.html#text">text</a></li>
874 <ul class="events itemMembers">
879 <li class="item" data-name="LuCI.rpc">
881 <a href="LuCI.rpc.html">LuCI.rpc</a>
884 <ul class="members itemMembers">
887 <ul class="typedefs itemMembers">
889 <span class="subtitle">Typedefs</span>
891 <li data-name="LuCI.rpc.DeclareOptions"><a href="LuCI.rpc.html#.DeclareOptions">DeclareOptions</a></li>
893 <li data-name="LuCI.rpc~filterFn"><a href="LuCI.rpc.html#~filterFn">filterFn</a></li>
895 <li data-name="LuCI.rpc~interceptorFn"><a href="LuCI.rpc.html#~interceptorFn">interceptorFn</a></li>
897 <li data-name="LuCI.rpc~invokeFn"><a href="LuCI.rpc.html#~invokeFn">invokeFn</a></li>
900 <ul class="typedefs itemMembers">
903 <ul class="methods itemMembers">
905 <span class="subtitle">Methods</span>
907 <li data-name="LuCI.rpc#addInterceptor"><a href="LuCI.rpc.html#addInterceptor">addInterceptor</a></li>
909 <li data-name="LuCI.rpc#declare"><a href="LuCI.rpc.html#declare">declare</a></li>
911 <li data-name="LuCI.rpc#getBaseURL"><a href="LuCI.rpc.html#getBaseURL">getBaseURL</a></li>
913 <li data-name="LuCI.rpc#getSessionID"><a href="LuCI.rpc.html#getSessionID">getSessionID</a></li>
915 <li data-name="LuCI.rpc#getStatusText"><a href="LuCI.rpc.html#getStatusText">getStatusText</a></li>
917 <li data-name="LuCI.rpc#list"><a href="LuCI.rpc.html#list">list</a></li>
919 <li data-name="LuCI.rpc#removeInterceptor"><a href="LuCI.rpc.html#removeInterceptor">removeInterceptor</a></li>
921 <li data-name="LuCI.rpc#setBaseURL"><a href="LuCI.rpc.html#setBaseURL">setBaseURL</a></li>
923 <li data-name="LuCI.rpc#setSessionID"><a href="LuCI.rpc.html#setSessionID">setSessionID</a></li>
926 <ul class="events itemMembers">
931 <li class="item" data-name="LuCI.uci">
933 <a href="LuCI.uci.html">LuCI.uci</a>
936 <ul class="members itemMembers">
939 <ul class="typedefs itemMembers">
941 <span class="subtitle">Typedefs</span>
943 <li data-name="LuCI.uci.ChangeRecord"><a href="LuCI.uci.html#.ChangeRecord">ChangeRecord</a></li>
945 <li data-name="LuCI.uci.SectionObject"><a href="LuCI.uci.html#.SectionObject">SectionObject</a></li>
947 <li data-name="LuCI.uci~sectionsFn"><a href="LuCI.uci.html#~sectionsFn">sectionsFn</a></li>
950 <ul class="typedefs itemMembers">
953 <ul class="methods itemMembers">
955 <span class="subtitle">Methods</span>
957 <li data-name="LuCI.uci#add"><a href="LuCI.uci.html#add">add</a></li>
959 <li data-name="LuCI.uci#apply"><a href="LuCI.uci.html#apply">apply</a></li>
961 <li data-name="LuCI.uci#changes"><a href="LuCI.uci.html#changes">changes</a></li>
963 <li data-name="LuCI.uci#createSID"><a href="LuCI.uci.html#createSID">createSID</a></li>
965 <li data-name="LuCI.uci#get"><a href="LuCI.uci.html#get">get</a></li>
967 <li data-name="LuCI.uci#get_first"><a href="LuCI.uci.html#get_first">get_first</a></li>
969 <li data-name="LuCI.uci#load"><a href="LuCI.uci.html#load">load</a></li>
971 <li data-name="LuCI.uci#move"><a href="LuCI.uci.html#move">move</a></li>
973 <li data-name="LuCI.uci#remove"><a href="LuCI.uci.html#remove">remove</a></li>
975 <li data-name="LuCI.uci#resolveSID"><a href="LuCI.uci.html#resolveSID">resolveSID</a></li>
977 <li data-name="LuCI.uci#save"><a href="LuCI.uci.html#save">save</a></li>
979 <li data-name="LuCI.uci#sections"><a href="LuCI.uci.html#sections">sections</a></li>
981 <li data-name="LuCI.uci#set"><a href="LuCI.uci.html#set">set</a></li>
983 <li data-name="LuCI.uci#set_first"><a href="LuCI.uci.html#set_first">set_first</a></li>
985 <li data-name="LuCI.uci#unload"><a href="LuCI.uci.html#unload">unload</a></li>
987 <li data-name="LuCI.uci#unset"><a href="LuCI.uci.html#unset">unset</a></li>
989 <li data-name="LuCI.uci#unset_first"><a href="LuCI.uci.html#unset_first">unset_first</a></li>
992 <ul class="events itemMembers">
997 <li class="item" data-name="LuCI.view">
999 <a href="LuCI.view.html">LuCI.view</a>
1002 <ul class="members itemMembers">
1005 <ul class="typedefs itemMembers">
1008 <ul class="typedefs itemMembers">
1011 <ul class="methods itemMembers">
1013 <span class="subtitle">Methods</span>
1015 <li data-name="LuCI.view#addFooter"><a href="LuCI.view.html#addFooter">addFooter</a></li>
1017 <li data-name="LuCI.view#handleReset"><a href="LuCI.view.html#handleReset">handleReset</a></li>
1019 <li data-name="LuCI.view#handleSave"><a href="LuCI.view.html#handleSave">handleSave</a></li>
1021 <li data-name="LuCI.view#handleSaveApply"><a href="LuCI.view.html#handleSaveApply">handleSaveApply</a></li>
1023 <li data-name="LuCI.view#load"><a href="LuCI.view.html#load">load</a></li>
1025 <li data-name="LuCI.view#render"><a href="LuCI.view.html#render">render</a></li>
1028 <ul class="events itemMembers">
1033 <li class="item" data-name="LuCI.XHR">
1034 <span class="title">
1035 <a href="LuCI.XHR.html">LuCI.XHR</a>
1038 <ul class="members itemMembers">
1041 <ul class="typedefs itemMembers">
1044 <ul class="typedefs itemMembers">
1047 <ul class="methods itemMembers">
1049 <span class="subtitle">Methods</span>
1051 <li data-name="LuCI.XHR#abort"><a href="LuCI.XHR.html#abort">abort</a></li>
1053 <li data-name="LuCI.XHR#busy"><a href="LuCI.XHR.html#busy">busy</a></li>
1055 <li data-name="LuCI.XHR#cancel"><a href="LuCI.XHR.html#cancel">cancel</a></li>
1057 <li data-name="LuCI.XHR#get"><a href="LuCI.XHR.html#get">get</a></li>
1059 <li data-name="LuCI.XHR#post"><a href="LuCI.XHR.html#post">post</a></li>
1061 <li data-name="LuCI.XHR#send_form"><a href="LuCI.XHR.html#send_form">send_form</a></li>
1064 <ul class="events itemMembers">
1072 <h1 class="page-title" data-filename="LuCI.uci.html">Class: uci</h1>
1081 <span class="ancestors"><a href="LuCI.html">LuCI</a>.</span>
1086 <div class="class-description"><p>The <code>LuCI.uci</code> class utilizes <a href="LuCI.rpc.html"><code>LuCI.rpc</code></a> to declare low level
1087 remote UCI <code>ubus</code> procedures and implements a local caching and data
1088 manipulation layer on top to allow for synchroneous operations on
1089 UCI configuration data.</p></div>
1094 <div class="container-overview">
1100 <div class="nameContainer">
1101 <h4 class="name" id="uci">
1103 new LuCI.uci<span class="signature">()</span>
1107 <div class="tag-source">
1108 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line4">line 4</a>
1126 <dl class="details">
1180 <h3 class="subsection-title">Methods</h3>
1185 <div class="nameContainer">
1186 <h4 class="name" id="add">
1188 add<span class="signature">(config, type, <span class="optional">name</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
1192 <div class="tag-source">
1193 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line269">line 269</a>
1203 <div class="description">
1204 <p>Adds a new section of the given type to the given configuration,
1205 optionally named according to the given name.</p>
1216 <table class="params">
1227 <th class="last">Description</th>
1236 <td class="name"><code>config</code></td>
1242 <span class="param-type">string</span>
1250 <td class="description last">
1257 <p>The name of the configuration to add the section to.</p></td>
1264 <td class="name"><code>type</code></td>
1270 <span class="param-type">string</span>
1278 <td class="description last">
1285 <p>The type of the section to add.</p></td>
1292 <td class="name"><code>name</code></td>
1298 <span class="param-type">string</span>
1306 <td class="description last">
1309 <span class="optional">optional</span>
1315 <p>The name of the section to add. If the name is omitted, an anonymous
1316 section will be added instead.</p></td>
1325 <dl class="details">
1363 <table class="params">
1368 <th class="last">Description</th>
1381 <td class="description last">Returns the section ID of the newly added section which is equivalent
1382 to the given name for non-anonymous sections.</td>
1396 <div class="nameContainer">
1397 <h4 class="name" id="apply">
1399 apply<span class="signature">(<span class="optional">timeout</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<number>}</span>
1403 <div class="tag-source">
1404 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line858">line 858</a>
1414 <div class="description">
1415 <p>Instructs the remote <code>ubus</code> UCI api to commit all saved changes with
1416 rollback protection and attempts to confirm the pending commit
1417 operation to cancel the rollback timer.</p>
1428 <table class="params">
1441 <th class="last">Description</th>
1450 <td class="name"><code>timeout</code></td>
1456 <span class="param-type">number</span>
1463 <td class="default">
1470 <td class="description last">
1473 <span class="optional">optional</span>
1479 <p>Override the confirmation timeout after which a rollback is triggered.</p></td>
1488 <dl class="details">
1526 <table class="params">
1531 <th class="last">Description</th>
1544 <td class="description last">Returns a promise resolving/rejecting with the <code>ubus</code> RPC status code.</td>
1558 <div class="nameContainer">
1559 <h4 class="name" id="changes">
1561 changes<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object.<string, Array.<<a href="LuCI.uci.html#.ChangeRecord">LuCI.uci.ChangeRecord</a>>>>}</span>
1565 <div class="tag-source">
1566 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line938">line 938</a>
1576 <div class="description">
1577 <p>Fetches uncommitted UCI changes from the remote <code>ubus</code> RPC api.</p>
1588 <dl class="details">
1626 <table class="params">
1631 <th class="last">Description</th>
1640 Promise.<Object.<string, Array.<<a href="LuCI.uci.html#.ChangeRecord">LuCI.uci.ChangeRecord</a>>>>
1644 <td class="description last">Returns a promise resolving to an object containing the configuration
1645 names as keys and arrays of related change records as values.</td>
1659 <div class="nameContainer">
1660 <h4 class="name" id="createSID">
1662 createSID<span class="signature">(config)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
1666 <div class="tag-source">
1667 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line88">line 88</a>
1677 <div class="description">
1678 <p>Generates a new, unique section ID for the given configuration.</p>
1679 <p>Note that the generated ID is temporary, it will get replaced by an
1680 identifier in the form <code>cfgXXXXXX</code> once the configuration is saved
1681 by the remote <code>ubus</code> UCI api.</p>
1692 <table class="params">
1703 <th class="last">Description</th>
1712 <td class="name"><code>config</code></td>
1718 <span class="param-type">string</span>
1726 <td class="description last">
1728 <p>The configuration to generate the new section ID for.</p></td>
1737 <dl class="details">
1775 <table class="params">
1780 <th class="last">Description</th>
1793 <td class="description last">A newly generated, unique section ID in the form <code>newXXXXXX</code>
1794 where <code>X</code> denotes a hexadecimal digit.</td>
1808 <div class="nameContainer">
1809 <h4 class="name" id="get">
1811 get<span class="signature">(config, sid, <span class="optional">option</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|string|Array.<string>|<a href="LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject</a>}</span>
1815 <div class="tag-source">
1816 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line443">line 443</a>
1826 <div class="description">
1827 <p>Gets the value of the given option within the specified section
1828 of the given configuration or the entire section object if the
1829 option name is omitted.</p>
1840 <table class="params">
1851 <th class="last">Description</th>
1860 <td class="name"><code>config</code></td>
1866 <span class="param-type">string</span>
1874 <td class="description last">
1881 <p>The name of the configuration to read the value from.</p></td>
1888 <td class="name"><code>sid</code></td>
1894 <span class="param-type">string</span>
1902 <td class="description last">
1909 <p>The name or ID of the section to read.</p></td>
1916 <td class="name"><code>option</code></td>
1922 <span class="param-type">string</span>
1930 <td class="description last">
1933 <span class="optional">optional</span>
1939 <p>The option name to read the value from. If the option name is
1940 omitted or <code>null</code>, the entire section is returned instead.</p></td>
1949 <dl class="details">
1987 <table class="params">
1992 <th class="last">Description</th>
2010 <a href="LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject</a>
2014 <td class="description last"><ul>
2015 <li>Returns a string containing the option value in case of a
2016 plain UCI option.</li>
2017 <li>Returns an array of strings containing the option values in
2018 case of <code>option</code> pointing to an UCI list.</li>
2019 <li>Returns a <a href="LuCI.uci.html#.SectionObject"><code>section object</code></a> if
2020 the <code>option</code> argument has been omitted or is <code>null</code>.</li>
2021 <li>Returns <code>null</code> if the config, section or option has not been
2022 found or if the corresponding configuration is not loaded.</li>
2037 <div class="nameContainer">
2038 <h4 class="name" id="get_first">
2040 get_first<span class="signature">(config, <span class="optional">type</span>, <span class="optional">option</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{null|string|Array.<string>|<a href="LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject</a>}</span>
2044 <div class="tag-source">
2045 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line618">line 618</a>
2055 <div class="description">
2056 <p>Gets the value of the given option or the entire section object of
2057 the first found section of the specified type or the first found
2058 section of the entire configuration if no type is specfied.</p>
2069 <table class="params">
2080 <th class="last">Description</th>
2089 <td class="name"><code>config</code></td>
2095 <span class="param-type">string</span>
2103 <td class="description last">
2110 <p>The name of the configuration to read the value from.</p></td>
2117 <td class="name"><code>type</code></td>
2123 <span class="param-type">string</span>
2131 <td class="description last">
2134 <span class="optional">optional</span>
2140 <p>The type of the first section to find. If it is <code>null</code>, the first
2141 section of the entire config is read, otherwise the first section
2142 matching the given type.</p></td>
2149 <td class="name"><code>option</code></td>
2155 <span class="param-type">string</span>
2163 <td class="description last">
2166 <span class="optional">optional</span>
2172 <p>The option name to read the value from. If the option name is
2173 omitted or <code>null</code>, the entire section is returned instead.</p></td>
2182 <dl class="details">
2220 <table class="params">
2225 <th class="last">Description</th>
2243 <a href="LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject</a>
2247 <td class="description last"><ul>
2248 <li>Returns a string containing the option value in case of a
2249 plain UCI option.</li>
2250 <li>Returns an array of strings containing the option values in
2251 case of <code>option</code> pointing to an UCI list.</li>
2252 <li>Returns a <a href="LuCI.uci.html#.SectionObject"><code>section object</code></a> if
2253 the <code>option</code> argument has been omitted or is <code>null</code>.</li>
2254 <li>Returns <code>null</code> if the config, section or option has not been
2255 found or if the corresponding configuration is not loaded.</li>
2270 <div class="nameContainer">
2271 <h4 class="name" id="load">
2273 load<span class="signature">(config)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Array.<string>>}</span>
2277 <div class="tag-source">
2278 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line205">line 205</a>
2288 <div class="description">
2289 <p>Loads the given UCI configurations from the remote <code>ubus</code> api.</p>
2290 <p>Loaded configurations are cached and only loaded once. Subsequent
2291 load operations of the same configurations will return the cached
2293 <p>To force reloading a configuration, it has to be unloaded with
2294 <a href="LuCI.uci.html#unload"><code>uci.unload()</code></a> first.</p>
2305 <table class="params">
2316 <th class="last">Description</th>
2325 <td class="name"><code>config</code></td>
2331 <span class="param-type">string</span>
2334 <span class="param-type">Array.<string></span>
2342 <td class="description last">
2344 <p>The name of the configuration or an array of configuration
2345 names to load.</p></td>
2354 <dl class="details">
2392 <table class="params">
2397 <th class="last">Description</th>
2406 Promise.<Array.<string>>
2410 <td class="description last">Returns a promise resolving to the names of the configurations
2411 that have been successfully loaded.</td>
2425 <div class="nameContainer">
2426 <h4 class="name" id="move">
2428 move<span class="signature">(config, sid1, <span class="optional">sid2</span>, <span class="optional">after</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
2432 <div class="tag-source">
2433 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line718">line 718</a>
2443 <div class="description">
2444 <p>Move the first specified section within the given configuration
2445 before or after the second specified section.</p>
2456 <table class="params">
2469 <th class="last">Description</th>
2478 <td class="name"><code>config</code></td>
2484 <span class="param-type">string</span>
2491 <td class="default">
2496 <td class="description last">
2503 <p>The configuration to move the section within.</p></td>
2510 <td class="name"><code>sid1</code></td>
2516 <span class="param-type">string</span>
2523 <td class="default">
2528 <td class="description last">
2535 <p>The ID of the section to move within the configuration.</p></td>
2542 <td class="name"><code>sid2</code></td>
2548 <span class="param-type">string</span>
2555 <td class="default">
2560 <td class="description last">
2563 <span class="optional">optional</span>
2569 <p>The ID of the target section for the move operation. If the
2570 <code>after</code> argument is <code>false</code> or not specified, the section named by
2571 <code>sid1</code> will be moved before this target section, if the <code>after</code>
2572 argument is <code>true</code>, the <code>sid1</code> section will be moved after this
2574 <p>When the <code>sid2</code> argument is <code>null</code>, the section specified by <code>sid1</code>
2575 is moved to the end of the configuration.</p></td>
2582 <td class="name"><code>after</code></td>
2588 <span class="param-type">boolean</span>
2595 <td class="default">
2602 <td class="description last">
2605 <span class="optional">optional</span>
2611 <p>When <code>true</code>, the section <code>sid1</code> is moved after the section <code>sid2</code>,
2612 when <code>false</code>, the section <code>sid1</code> is moved before <code>sid2</code>.</p>
2613 <p>If <code>sid2</code> is null, then this parameter has no effect and the section
2614 <code>sid1</code> is moved to the end of the configuration instead.</p></td>
2623 <dl class="details">
2661 <table class="params">
2666 <th class="last">Description</th>
2679 <td class="description last">Returns <code>true</code> when the section was successfully moved, or <code>false</code>
2680 when either the section specified by <code>sid1</code> or by <code>sid2</code> is not found.</td>
2694 <div class="nameContainer">
2695 <h4 class="name" id="remove">
2697 remove<span class="signature">(config, sid)</span>
2701 <div class="tag-source">
2702 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line296">line 296</a>
2712 <div class="description">
2713 <p>Removes the section with the given ID from the given configuration.</p>
2724 <table class="params">
2735 <th class="last">Description</th>
2744 <td class="name"><code>config</code></td>
2750 <span class="param-type">string</span>
2758 <td class="description last">
2760 <p>The name of the configuration to remove the section from.</p></td>
2767 <td class="name"><code>sid</code></td>
2773 <span class="param-type">string</span>
2781 <td class="description last">
2783 <p>The ID of the section to remove.</p></td>
2792 <dl class="details">
2833 <div class="nameContainer">
2834 <h4 class="name" id="resolveSID">
2836 resolveSID<span class="signature">(config, sid)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string|null}</span>
2840 <div class="tag-source">
2841 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line119">line 119</a>
2851 <div class="description">
2852 <p>Resolves a given section ID in extended notation to the internal
2853 section ID value.</p>
2864 <table class="params">
2875 <th class="last">Description</th>
2884 <td class="name"><code>config</code></td>
2890 <span class="param-type">string</span>
2898 <td class="description last">
2900 <p>The configuration to resolve the section ID for.</p></td>
2907 <td class="name"><code>sid</code></td>
2913 <span class="param-type">string</span>
2921 <td class="description last">
2923 <p>The section ID to resolve. If the ID is in the form <code>@typename[#]</code>,
2924 it will get resolved to an internal anonymous ID in the forms
2925 <code>cfgXXXXXX</code>/<code>newXXXXXX</code> or to the name of a section in case it points
2926 to a named section. When the given ID is not in extended notation,
2927 it will be returned as-is.</p></td>
2936 <dl class="details">
2974 <table class="params">
2979 <th class="last">Description</th>
2995 <td class="description last">Returns the resolved section ID or the original given ID if it was
2996 not in extended notation. Returns <code>null</code> when an extended ID could
2997 not be resolved to existing section ID.</td>
3011 <div class="nameContainer">
3012 <h4 class="name" id="save">
3014 save<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.<string>}</span>
3018 <div class="tag-source">
3019 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line772">line 772</a>
3029 <div class="description">
3030 <p>Submits all local configuration changes to the remove <code>ubus</code> api,
3031 adds, removes and reorders remote sections as needed and reloads
3032 all loaded configurations to resynchronize the local state with
3033 the remote configuration values.</p>
3044 <dl class="details">
3082 <table class="params">
3087 <th class="last">Description</th>
3100 <td class="description last">Returns a promise resolving to an array of configuration names which
3101 have been reloaded by the save operation.</td>
3115 <div class="nameContainer">
3116 <h4 class="name" id="sections">
3118 sections<span class="signature">(config, <span class="optional">type</span>, <span class="optional">cb</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.<<a href="LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject</a>>}</span>
3122 <div class="tag-source">
3123 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line384">line 384</a>
3133 <div class="description">
3134 <p>Enumerates the sections of the given configuration, optionally
3135 filtered by type.</p>
3146 <table class="params">
3157 <th class="last">Description</th>
3166 <td class="name"><code>config</code></td>
3172 <span class="param-type">string</span>
3180 <td class="description last">
3187 <p>The name of the configuration to enumerate the sections for.</p></td>
3194 <td class="name"><code>type</code></td>
3200 <span class="param-type">string</span>
3208 <td class="description last">
3211 <span class="optional">optional</span>
3217 <p>Enumerate only sections of the given type. If omitted, enumerate
3218 all sections.</p></td>
3225 <td class="name"><code>cb</code></td>
3231 <span class="param-type"><a href="LuCI.uci.html#~sectionsFn">LuCI.uci~sectionsFn</a></span>
3239 <td class="description last">
3242 <span class="optional">optional</span>
3248 <p>An optional callback to invoke for each enumerated section.</p></td>
3257 <dl class="details">
3295 <table class="params">
3300 <th class="last">Description</th>
3309 Array.<<a href="LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject</a>>
3313 <td class="description last">Returns a sorted array of the section objects within the given
3314 configuration, filtered by type of a type has been specified.</td>
3328 <div class="nameContainer">
3329 <h4 class="name" id="set">
3331 set<span class="signature">(config, sid, option, value)</span>
3335 <div class="tag-source">
3336 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line516">line 516</a>
3346 <div class="description">
3347 <p>Sets the value of the given option within the specified section
3348 of the given configuration.</p>
3349 <p>If either config, section or option is null, or if <code>option</code> begins
3350 with a dot, the function will do nothing.</p>
3361 <table class="params">
3372 <th class="last">Description</th>
3381 <td class="name"><code>config</code></td>
3387 <span class="param-type">string</span>
3395 <td class="description last">
3397 <p>The name of the configuration to set the option value in.</p></td>
3404 <td class="name"><code>sid</code></td>
3410 <span class="param-type">string</span>
3418 <td class="description last">
3420 <p>The name or ID of the section to set the option value in.</p></td>
3427 <td class="name"><code>option</code></td>
3433 <span class="param-type">string</span>
3441 <td class="description last">
3443 <p>The option name to set the value for.</p></td>
3450 <td class="name"><code>value</code></td>
3456 <span class="param-type">null</span>
3459 <span class="param-type">string</span>
3462 <span class="param-type">Array.<string></span>
3470 <td class="description last">
3472 <p>The option value to set. If the value is <code>null</code> or an empty string,
3473 the option will be removed, otherwise it will be set or overwritten
3474 with the given value.</p></td>
3483 <dl class="details">
3524 <div class="nameContainer">
3525 <h4 class="name" id="set_first">
3527 set_first<span class="signature">(config, <span class="optional">type</span>, option, value)</span>
3531 <div class="tag-source">
3532 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line653">line 653</a>
3542 <div class="description">
3543 <p>Sets the value of the given option within the first found section
3544 of the given configuration matching the specified type or within
3545 the first section of the entire config when no type has is specified.</p>
3546 <p>If either config, type or option is null, or if <code>option</code> begins
3547 with a dot, the function will do nothing.</p>
3558 <table class="params">
3569 <th class="last">Description</th>
3578 <td class="name"><code>config</code></td>
3584 <span class="param-type">string</span>
3592 <td class="description last">
3599 <p>The name of the configuration to set the option value in.</p></td>
3606 <td class="name"><code>type</code></td>
3612 <span class="param-type">string</span>
3620 <td class="description last">
3623 <span class="optional">optional</span>
3629 <p>The type of the first section to find. If it is <code>null</code>, the first
3630 section of the entire config is written to, otherwise the first
3631 section matching the given type is used.</p></td>
3638 <td class="name"><code>option</code></td>
3644 <span class="param-type">string</span>
3652 <td class="description last">
3659 <p>The option name to set the value for.</p></td>
3666 <td class="name"><code>value</code></td>
3672 <span class="param-type">null</span>
3675 <span class="param-type">string</span>
3678 <span class="param-type">Array.<string></span>
3686 <td class="description last">
3693 <p>The option value to set. If the value is <code>null</code> or an empty string,
3694 the option will be removed, otherwise it will be set or overwritten
3695 with the given value.</p></td>
3704 <dl class="details">
3745 <div class="nameContainer">
3746 <h4 class="name" id="unload">
3748 unload<span class="signature">(config)</span>
3752 <div class="tag-source">
3753 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line237">line 237</a>
3763 <div class="description">
3764 <p>Unloads the given UCI configurations from the local cache.</p>
3775 <table class="params">
3786 <th class="last">Description</th>
3795 <td class="name"><code>config</code></td>
3801 <span class="param-type">string</span>
3804 <span class="param-type">Array.<string></span>
3812 <td class="description last">
3814 <p>The name of the configuration or an array of configuration
3815 names to unload.</p></td>
3824 <dl class="details">
3865 <div class="nameContainer">
3866 <h4 class="name" id="unset">
3868 unset<span class="signature">(config, sid, option)</span>
3872 <div class="tag-source">
3873 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line587">line 587</a>
3883 <div class="description">
3884 <p>Remove the given option within the specified section of the given
3886 <p>This function is a convenience wrapper around
3887 <code>uci.set(config, section, option, null)</code>.</p>
3898 <table class="params">
3909 <th class="last">Description</th>
3918 <td class="name"><code>config</code></td>
3924 <span class="param-type">string</span>
3932 <td class="description last">
3934 <p>The name of the configuration to remove the option from.</p></td>
3941 <td class="name"><code>sid</code></td>
3947 <span class="param-type">string</span>
3955 <td class="description last">
3957 <p>The name or ID of the section to remove the option from.</p></td>
3964 <td class="name"><code>option</code></td>
3970 <span class="param-type">string</span>
3978 <td class="description last">
3980 <p>The name of the option to remove.</p></td>
3989 <dl class="details">
4030 <div class="nameContainer">
4031 <h4 class="name" id="unset_first">
4033 unset_first<span class="signature">(config, <span class="optional">type</span>, option)</span>
4037 <div class="tag-source">
4038 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line683">line 683</a>
4048 <div class="description">
4049 <p>Removes the given option within the first found section of the given
4050 configuration matching the specified type or within the first section
4051 of the entire config when no type has is specified.</p>
4052 <p>This function is a convenience wrapper around
4053 <code>uci.set_first(config, type, option, null)</code>.</p>
4064 <table class="params">
4075 <th class="last">Description</th>
4084 <td class="name"><code>config</code></td>
4090 <span class="param-type">string</span>
4098 <td class="description last">
4105 <p>The name of the configuration to set the option value in.</p></td>
4112 <td class="name"><code>type</code></td>
4118 <span class="param-type">string</span>
4126 <td class="description last">
4129 <span class="optional">optional</span>
4135 <p>The type of the first section to find. If it is <code>null</code>, the first
4136 section of the entire config is written to, otherwise the first
4137 section matching the given type is used.</p></td>
4144 <td class="name"><code>option</code></td>
4150 <span class="param-type">string</span>
4158 <td class="description last">
4165 <p>The option name to set the value for.</p></td>
4174 <dl class="details">
4216 <h3 class="subsection-title">Type Definitions</h3>
4221 <div class="nameContainer">
4222 <h4 class="name" id=".ChangeRecord">LuCI.uci.ChangeRecord<span class="type-signature type array.<string>">Array.<string></span> </h4>
4229 <div class="description">
4230 <p>An UCI change record is a plain array containing the change operation
4231 name as first element, the affected section ID as second argument
4232 and an optional third and fourth argument whose meanings depend on
4238 <dl class="details">
4241 <h5 class="subsection-title">Properties:</h5>
4245 <table class="props">
4258 <th class="last">Description</th>
4267 <td class="name"><code>0</code></td>
4273 <span class="param-type">string</span>
4283 <td class="description last"><p>The operation name - may be one of <code>add</code>, <code>set</code>, <code>remove</code>, <code>order</code>,
4284 <code>list-add</code>, <code>list-del</code> or <code>rename</code>.</p></td>
4291 <td class="name"><code>1</code></td>
4297 <span class="param-type">string</span>
4307 <td class="description last"><p>The section ID targeted by the operation.</p></td>
4314 <td class="name"><code>2</code></td>
4320 <span class="param-type">string</span>
4330 <td class="description last"><p>The meaning of the third element depends on the operation.</p>
4332 <li>For <code>add</code> it is type of the section that has been added</li>
4333 <li>For <code>set</code> it either is the option name if a fourth element exists,
4334 or the type of a named section which has been added when the change
4335 entry only contains three elements.</li>
4336 <li>For <code>remove</code> it contains the name of the option that has been
4338 <li>For <code>order</code> it specifies the new sort index of the section.</li>
4339 <li>For <code>list-add</code> it contains the name of the list option a new value
4340 has been added to.</li>
4341 <li>For <code>list-del</code> it contains the name of the list option a value has
4342 been removed from.</li>
4343 <li>For <code>rename</code> it contains the name of the option that has been
4344 renamed if a fourth element exists, else it contains the new name
4345 a section has been renamed to if the change entry only contains
4346 three elements.</li>
4354 <td class="name"><code>4</code></td>
4360 <span class="param-type">string</span>
4370 <td class="description last"><p>The meaning of the fourth element depends on the operation.</p>
4372 <li>For <code>set</code> it is the value an option has been set to.</li>
4373 <li>For <code>list-add</code> it is the new value that has been added to a
4375 <li>For <code>rename</code> it is the new name of an option that has been
4414 <div class="nameContainer">
4415 <h4 class="name" id=".SectionObject">LuCI.uci.SectionObject<span class="type-signature type object.<string, (boolean|number|string|array.<string>)>">Object.<string, (boolean|number|string|Array.<string>)></span> </h4>
4422 <div class="description">
4423 <p>A section object represents the options and their corresponding values
4424 enclosed within a configuration section, as well as some additional
4425 meta data such as sort indexes and internal ID.</p>
4426 <p>Any internal metadata fields are prefixed with a dot which is isn't
4427 an allowed character for normal option names.</p>
4432 <dl class="details">
4435 <h5 class="subsection-title">Properties:</h5>
4439 <table class="props">
4452 <th class="last">Description</th>
4461 <td class="name"><code>.anonymous</code></td>
4467 <span class="param-type">boolean</span>
4477 <td class="description last"><p>The <code>.anonymous</code> property specifies whether the configuration is
4478 anonymous (<code>true</code>) or named (<code>false</code>).</p></td>
4485 <td class="name"><code>.index</code></td>
4491 <span class="param-type">number</span>
4501 <td class="description last"><p>The <code>.index</code> property specifes the sort order of the section.</p></td>
4508 <td class="name"><code>.name</code></td>
4514 <span class="param-type">string</span>
4524 <td class="description last"><p>The <code>.name</code> property holds the name of the section object. It may be
4525 either an anonymous ID in the form <code>cfgXXXXXX</code> or <code>newXXXXXX</code> with <code>X</code>
4526 being a hexadecimal digit or a string holding the name of the section.</p></td>
4533 <td class="name"><code>.type</code></td>
4539 <span class="param-type">string</span>
4549 <td class="description last"><p>The <code>.type</code> property contains the type of the corresponding uci
4557 <td class="name"><code>*</code></td>
4563 <span class="param-type">string</span>
4566 <span class="param-type">Array.<string></span>
4576 <td class="description last"><p>A section object may contain an arbitrary number of further properties
4577 representing the uci option enclosed in the section.</p>
4578 <p>All option property names will be in the form <code>[A-Za-z0-9_]+</code> and
4579 either contain a string value or an array of strings, in case the
4580 underlying option is an UCI list.</p></td>
4617 <div class="nameContainer">
4618 <h4 class="name" id="~sectionsFn">
4620 sectionsFn<span class="signature">(section, sid)</span>
4624 <div class="tag-source">
4625 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line352">line 352</a>
4635 <div class="description">
4636 <p>The sections callback is invoked for each section found within
4637 the given configuration and receives the section object and its
4638 associated name as arguments.</p>
4649 <table class="params">
4660 <th class="last">Description</th>
4669 <td class="name"><code>section</code></td>
4675 <span class="param-type"><a href="LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject</a></span>
4683 <td class="description last">
4685 <p>The section object.</p></td>
4692 <td class="name"><code>sid</code></td>
4698 <span class="param-type">string</span>
4706 <td class="description last">
4708 <p>The name or ID of the section.</p></td>
4717 <dl class="details">
4772 Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Nov 07 2019 12:36:06 GMT+0100 (Central European Standard Time)
4776 <script>prettyPrint();</script>
4777 <script src="scripts/jaguar.js"></script>