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#media"><a href="LuCI.html#media">media</a></li>
79 <li data-name="LuCI#path"><a href="LuCI.html#path">path</a></li>
81 <li data-name="LuCI#poll"><a href="LuCI.html#poll">poll</a></li>
83 <li data-name="LuCI#post"><a href="LuCI.html#post">post</a></li>
85 <li data-name="LuCI#raise"><a href="LuCI.html#raise">raise</a></li>
87 <li data-name="LuCI#require"><a href="LuCI.html#require">require</a></li>
89 <li data-name="LuCI#resolveDefault"><a href="LuCI.html#resolveDefault">resolveDefault</a></li>
91 <li data-name="LuCI#resource"><a href="LuCI.html#resource">resource</a></li>
93 <li data-name="LuCI#run"><a href="LuCI.html#run">run</a></li>
95 <li data-name="LuCI#sortedKeys"><a href="LuCI.html#sortedKeys">sortedKeys</a></li>
97 <li data-name="LuCI#stop"><a href="LuCI.html#stop">stop</a></li>
99 <li data-name="LuCI#toArray"><a href="LuCI.html#toArray">toArray</a></li>
101 <li data-name="LuCI#url"><a href="LuCI.html#url">url</a></li>
104 <ul class="events itemMembers">
109 <li class="item" data-name="LuCI.Class">
111 <a href="LuCI.Class.html">LuCI.Class</a>
114 <ul class="members itemMembers">
117 <ul class="typedefs itemMembers">
120 <ul class="typedefs itemMembers">
123 <ul class="methods itemMembers">
125 <span class="subtitle">Methods</span>
127 <li data-name="LuCI.Class.extend"><a href="LuCI.Class.html#.extend">extend</a></li>
129 <li data-name="LuCI.Class.instantiate"><a href="LuCI.Class.html#.instantiate">instantiate</a></li>
131 <li data-name="LuCI.Class.isSubclass"><a href="LuCI.Class.html#.isSubclass">isSubclass</a></li>
133 <li data-name="LuCI.Class.singleton"><a href="LuCI.Class.html#.singleton">singleton</a></li>
135 <li data-name="LuCI.Class#super"><a href="LuCI.Class.html#super">super</a></li>
137 <li data-name="LuCI.Class#varargs"><a href="LuCI.Class.html#varargs">varargs</a></li>
140 <ul class="events itemMembers">
145 <li class="item" data-name="LuCI.dom">
147 <a href="LuCI.dom.html">LuCI.dom</a>
150 <ul class="members itemMembers">
153 <ul class="typedefs itemMembers">
155 <span class="subtitle">Typedefs</span>
157 <li data-name="LuCI.dom~ignoreCallbackFn"><a href="LuCI.dom.html#~ignoreCallbackFn">ignoreCallbackFn</a></li>
160 <ul class="typedefs itemMembers">
163 <ul class="methods itemMembers">
165 <span class="subtitle">Methods</span>
167 <li data-name="LuCI.dom#append"><a href="LuCI.dom.html#append">append</a></li>
169 <li data-name="LuCI.dom#attr"><a href="LuCI.dom.html#attr">attr</a></li>
171 <li data-name="LuCI.dom#bindClassInstance"><a href="LuCI.dom.html#bindClassInstance">bindClassInstance</a></li>
173 <li data-name="LuCI.dom#callClassMethod"><a href="LuCI.dom.html#callClassMethod">callClassMethod</a></li>
175 <li data-name="LuCI.dom#content"><a href="LuCI.dom.html#content">content</a></li>
177 <li data-name="LuCI.dom#create"><a href="LuCI.dom.html#create">create</a></li>
179 <li data-name="LuCI.dom#data"><a href="LuCI.dom.html#data">data</a></li>
181 <li data-name="LuCI.dom#elem"><a href="LuCI.dom.html#elem">elem</a></li>
183 <li data-name="LuCI.dom#findClassInstance"><a href="LuCI.dom.html#findClassInstance">findClassInstance</a></li>
185 <li data-name="LuCI.dom#isEmpty"><a href="LuCI.dom.html#isEmpty">isEmpty</a></li>
187 <li data-name="LuCI.dom#matches"><a href="LuCI.dom.html#matches">matches</a></li>
189 <li data-name="LuCI.dom#parent"><a href="LuCI.dom.html#parent">parent</a></li>
191 <li data-name="LuCI.dom#parse"><a href="LuCI.dom.html#parse">parse</a></li>
194 <ul class="events itemMembers">
199 <li class="item" data-name="LuCI.fs">
201 <a href="LuCI.fs.html">LuCI.fs</a>
204 <ul class="members itemMembers">
207 <ul class="typedefs itemMembers">
209 <span class="subtitle">Typedefs</span>
211 <li data-name="LuCI.fs.FileExecResult"><a href="LuCI.fs.html#.FileExecResult">FileExecResult</a></li>
213 <li data-name="LuCI.fs.FileStatEntry"><a href="LuCI.fs.html#.FileStatEntry">FileStatEntry</a></li>
216 <ul class="typedefs itemMembers">
219 <ul class="methods itemMembers">
221 <span class="subtitle">Methods</span>
223 <li data-name="LuCI.fs#exec"><a href="LuCI.fs.html#exec">exec</a></li>
225 <li data-name="LuCI.fs#exec_direct"><a href="LuCI.fs.html#exec_direct">exec_direct</a></li>
227 <li data-name="LuCI.fs#lines"><a href="LuCI.fs.html#lines">lines</a></li>
229 <li data-name="LuCI.fs#list"><a href="LuCI.fs.html#list">list</a></li>
231 <li data-name="LuCI.fs#read"><a href="LuCI.fs.html#read">read</a></li>
233 <li data-name="LuCI.fs#read_direct"><a href="LuCI.fs.html#read_direct">read_direct</a></li>
235 <li data-name="LuCI.fs#remove"><a href="LuCI.fs.html#remove">remove</a></li>
237 <li data-name="LuCI.fs#stat"><a href="LuCI.fs.html#stat">stat</a></li>
239 <li data-name="LuCI.fs#trimmed"><a href="LuCI.fs.html#trimmed">trimmed</a></li>
241 <li data-name="LuCI.fs#write"><a href="LuCI.fs.html#write">write</a></li>
244 <ul class="events itemMembers">
249 <li class="item" data-name="LuCI.Headers">
251 <a href="LuCI.Headers.html">LuCI.Headers</a>
254 <ul class="members itemMembers">
257 <ul class="typedefs itemMembers">
260 <ul class="typedefs itemMembers">
263 <ul class="methods itemMembers">
265 <span class="subtitle">Methods</span>
267 <li data-name="LuCI.Headers#get"><a href="LuCI.Headers.html#get">get</a></li>
269 <li data-name="LuCI.Headers#has"><a href="LuCI.Headers.html#has">has</a></li>
272 <ul class="events itemMembers">
277 <li class="item" data-name="LuCI.Network">
279 <a href="LuCI.Network.html">LuCI.Network</a>
282 <ul class="members itemMembers">
285 <ul class="typedefs itemMembers">
287 <span class="subtitle">Typedefs</span>
289 <li data-name="LuCI.Network.SwitchTopology"><a href="LuCI.Network.html#.SwitchTopology">SwitchTopology</a></li>
291 <li data-name="LuCI.Network.WifiEncryption"><a href="LuCI.Network.html#.WifiEncryption">WifiEncryption</a></li>
293 <li data-name="LuCI.Network.WifiPeerEntry"><a href="LuCI.Network.html#.WifiPeerEntry">WifiPeerEntry</a></li>
295 <li data-name="LuCI.Network.WifiRateEntry"><a href="LuCI.Network.html#.WifiRateEntry">WifiRateEntry</a></li>
297 <li data-name="LuCI.Network.WifiScanResult"><a href="LuCI.Network.html#.WifiScanResult">WifiScanResult</a></li>
300 <ul class="typedefs itemMembers">
303 <ul class="methods itemMembers">
305 <span class="subtitle">Methods</span>
307 <li data-name="LuCI.Network#addNetwork"><a href="LuCI.Network.html#addNetwork">addNetwork</a></li>
309 <li data-name="LuCI.Network#addWifiNetwork"><a href="LuCI.Network.html#addWifiNetwork">addWifiNetwork</a></li>
311 <li data-name="LuCI.Network#deleteNetwork"><a href="LuCI.Network.html#deleteNetwork">deleteNetwork</a></li>
313 <li data-name="LuCI.Network#deleteWifiNetwork"><a href="LuCI.Network.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
315 <li data-name="LuCI.Network#flushCache"><a href="LuCI.Network.html#flushCache">flushCache</a></li>
317 <li data-name="LuCI.Network#formatWifiEncryption"><a href="LuCI.Network.html#formatWifiEncryption">formatWifiEncryption</a></li>
319 <li data-name="LuCI.Network#getDevice"><a href="LuCI.Network.html#getDevice">getDevice</a></li>
321 <li data-name="LuCI.Network#getDevices"><a href="LuCI.Network.html#getDevices">getDevices</a></li>
323 <li data-name="LuCI.Network#getDSLModemType"><a href="LuCI.Network.html#getDSLModemType">getDSLModemType</a></li>
325 <li data-name="LuCI.Network#getHostHints"><a href="LuCI.Network.html#getHostHints">getHostHints</a></li>
327 <li data-name="LuCI.Network#getIfnameOf"><a href="LuCI.Network.html#getIfnameOf">getIfnameOf</a></li>
329 <li data-name="LuCI.Network#getNetwork"><a href="LuCI.Network.html#getNetwork">getNetwork</a></li>
331 <li data-name="LuCI.Network#getNetworks"><a href="LuCI.Network.html#getNetworks">getNetworks</a></li>
333 <li data-name="LuCI.Network#getProtocol"><a href="LuCI.Network.html#getProtocol">getProtocol</a></li>
335 <li data-name="LuCI.Network#getProtocols"><a href="LuCI.Network.html#getProtocols">getProtocols</a></li>
337 <li data-name="LuCI.Network#getSwitchTopologies"><a href="LuCI.Network.html#getSwitchTopologies">getSwitchTopologies</a></li>
339 <li data-name="LuCI.Network#getWAN6Networks"><a href="LuCI.Network.html#getWAN6Networks">getWAN6Networks</a></li>
341 <li data-name="LuCI.Network#getWANNetworks"><a href="LuCI.Network.html#getWANNetworks">getWANNetworks</a></li>
343 <li data-name="LuCI.Network#getWifiDevice"><a href="LuCI.Network.html#getWifiDevice">getWifiDevice</a></li>
345 <li data-name="LuCI.Network#getWifiDevices"><a href="LuCI.Network.html#getWifiDevices">getWifiDevices</a></li>
347 <li data-name="LuCI.Network#getWifiNetwork"><a href="LuCI.Network.html#getWifiNetwork">getWifiNetwork</a></li>
349 <li data-name="LuCI.Network#getWifiNetworks"><a href="LuCI.Network.html#getWifiNetworks">getWifiNetworks</a></li>
351 <li data-name="LuCI.Network#isIgnoredDevice"><a href="LuCI.Network.html#isIgnoredDevice">isIgnoredDevice</a></li>
353 <li data-name="LuCI.Network#maskToPrefix"><a href="LuCI.Network.html#maskToPrefix">maskToPrefix</a></li>
355 <li data-name="LuCI.Network#prefixToMask"><a href="LuCI.Network.html#prefixToMask">prefixToMask</a></li>
357 <li data-name="LuCI.Network#registerErrorCode"><a href="LuCI.Network.html#registerErrorCode">registerErrorCode</a></li>
359 <li data-name="LuCI.Network#registerPatternVirtual"><a href="LuCI.Network.html#registerPatternVirtual">registerPatternVirtual</a></li>
361 <li data-name="LuCI.Network#registerProtocol"><a href="LuCI.Network.html#registerProtocol">registerProtocol</a></li>
363 <li data-name="LuCI.Network#renameNetwork"><a href="LuCI.Network.html#renameNetwork">renameNetwork</a></li>
366 <ul class="events itemMembers">
371 <li class="item" data-name="LuCI.Network.Device">
373 <a href="LuCI.Network.Device.html">LuCI.Network.Device</a>
376 <ul class="members itemMembers">
379 <ul class="typedefs itemMembers">
382 <ul class="typedefs itemMembers">
385 <ul class="methods itemMembers">
387 <span class="subtitle">Methods</span>
389 <li data-name="LuCI.Network.Device#getBridgeID"><a href="LuCI.Network.Device.html#getBridgeID">getBridgeID</a></li>
391 <li data-name="LuCI.Network.Device#getBridgeSTP"><a href="LuCI.Network.Device.html#getBridgeSTP">getBridgeSTP</a></li>
393 <li data-name="LuCI.Network.Device#getI18n"><a href="LuCI.Network.Device.html#getI18n">getI18n</a></li>
395 <li data-name="LuCI.Network.Device#getIP6Addrs"><a href="LuCI.Network.Device.html#getIP6Addrs">getIP6Addrs</a></li>
397 <li data-name="LuCI.Network.Device#getIPAddrs"><a href="LuCI.Network.Device.html#getIPAddrs">getIPAddrs</a></li>
399 <li data-name="LuCI.Network.Device#getMAC"><a href="LuCI.Network.Device.html#getMAC">getMAC</a></li>
401 <li data-name="LuCI.Network.Device#getMTU"><a href="LuCI.Network.Device.html#getMTU">getMTU</a></li>
403 <li data-name="LuCI.Network.Device#getName"><a href="LuCI.Network.Device.html#getName">getName</a></li>
405 <li data-name="LuCI.Network.Device#getNetwork"><a href="LuCI.Network.Device.html#getNetwork">getNetwork</a></li>
407 <li data-name="LuCI.Network.Device#getNetworks"><a href="LuCI.Network.Device.html#getNetworks">getNetworks</a></li>
409 <li data-name="LuCI.Network.Device#getPorts"><a href="LuCI.Network.Device.html#getPorts">getPorts</a></li>
411 <li data-name="LuCI.Network.Device#getRXBytes"><a href="LuCI.Network.Device.html#getRXBytes">getRXBytes</a></li>
413 <li data-name="LuCI.Network.Device#getRXPackets"><a href="LuCI.Network.Device.html#getRXPackets">getRXPackets</a></li>
415 <li data-name="LuCI.Network.Device#getShortName"><a href="LuCI.Network.Device.html#getShortName">getShortName</a></li>
417 <li data-name="LuCI.Network.Device#getTXBytes"><a href="LuCI.Network.Device.html#getTXBytes">getTXBytes</a></li>
419 <li data-name="LuCI.Network.Device#getTXPackets"><a href="LuCI.Network.Device.html#getTXPackets">getTXPackets</a></li>
421 <li data-name="LuCI.Network.Device#getType"><a href="LuCI.Network.Device.html#getType">getType</a></li>
423 <li data-name="LuCI.Network.Device#getTypeI18n"><a href="LuCI.Network.Device.html#getTypeI18n">getTypeI18n</a></li>
425 <li data-name="LuCI.Network.Device#getWifiNetwork"><a href="LuCI.Network.Device.html#getWifiNetwork">getWifiNetwork</a></li>
427 <li data-name="LuCI.Network.Device#isBridge"><a href="LuCI.Network.Device.html#isBridge">isBridge</a></li>
429 <li data-name="LuCI.Network.Device#isBridgePort"><a href="LuCI.Network.Device.html#isBridgePort">isBridgePort</a></li>
431 <li data-name="LuCI.Network.Device#isUp"><a href="LuCI.Network.Device.html#isUp">isUp</a></li>
434 <ul class="events itemMembers">
439 <li class="item" data-name="LuCI.Network.Hosts">
441 <a href="LuCI.Network.Hosts.html">LuCI.Network.Hosts</a>
444 <ul class="members itemMembers">
447 <ul class="typedefs itemMembers">
450 <ul class="typedefs itemMembers">
453 <ul class="methods itemMembers">
455 <span class="subtitle">Methods</span>
457 <li data-name="LuCI.Network.Hosts#getHostnameByIP6Addr"><a href="LuCI.Network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr</a></li>
459 <li data-name="LuCI.Network.Hosts#getHostnameByIPAddr"><a href="LuCI.Network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr</a></li>
461 <li data-name="LuCI.Network.Hosts#getHostnameByMACAddr"><a href="LuCI.Network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr</a></li>
463 <li data-name="LuCI.Network.Hosts#getIP6AddrByMACAddr"><a href="LuCI.Network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr</a></li>
465 <li data-name="LuCI.Network.Hosts#getIPAddrByMACAddr"><a href="LuCI.Network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr</a></li>
467 <li data-name="LuCI.Network.Hosts#getMACAddrByIP6Addr"><a href="LuCI.Network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr</a></li>
469 <li data-name="LuCI.Network.Hosts#getMACAddrByIPAddr"><a href="LuCI.Network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr</a></li>
471 <li data-name="LuCI.Network.Hosts#getMACHints"><a href="LuCI.Network.Hosts.html#getMACHints">getMACHints</a></li>
474 <ul class="events itemMembers">
479 <li class="item" data-name="LuCI.Network.Protocol">
481 <a href="LuCI.Network.Protocol.html">LuCI.Network.Protocol</a>
484 <ul class="members itemMembers">
487 <ul class="typedefs itemMembers">
490 <ul class="typedefs itemMembers">
493 <ul class="methods itemMembers">
495 <span class="subtitle">Methods</span>
497 <li data-name="LuCI.Network.Protocol#addDevice"><a href="LuCI.Network.Protocol.html#addDevice">addDevice</a></li>
499 <li data-name="LuCI.Network.Protocol#containsDevice"><a href="LuCI.Network.Protocol.html#containsDevice">containsDevice</a></li>
501 <li data-name="LuCI.Network.Protocol#deleteDevice"><a href="LuCI.Network.Protocol.html#deleteDevice">deleteDevice</a></li>
503 <li data-name="LuCI.Network.Protocol#get"><a href="LuCI.Network.Protocol.html#get">get</a></li>
505 <li data-name="LuCI.Network.Protocol#getDevice"><a href="LuCI.Network.Protocol.html#getDevice">getDevice</a></li>
507 <li data-name="LuCI.Network.Protocol#getDevices"><a href="LuCI.Network.Protocol.html#getDevices">getDevices</a></li>
509 <li data-name="LuCI.Network.Protocol#getDNS6Addrs"><a href="LuCI.Network.Protocol.html#getDNS6Addrs">getDNS6Addrs</a></li>
511 <li data-name="LuCI.Network.Protocol#getDNSAddrs"><a href="LuCI.Network.Protocol.html#getDNSAddrs">getDNSAddrs</a></li>
513 <li data-name="LuCI.Network.Protocol#getErrors"><a href="LuCI.Network.Protocol.html#getErrors">getErrors</a></li>
515 <li data-name="LuCI.Network.Protocol#getExpiry"><a href="LuCI.Network.Protocol.html#getExpiry">getExpiry</a></li>
517 <li data-name="LuCI.Network.Protocol#getGateway6Addr"><a href="LuCI.Network.Protocol.html#getGateway6Addr">getGateway6Addr</a></li>
519 <li data-name="LuCI.Network.Protocol#getGatewayAddr"><a href="LuCI.Network.Protocol.html#getGatewayAddr">getGatewayAddr</a></li>
521 <li data-name="LuCI.Network.Protocol#getI18n"><a href="LuCI.Network.Protocol.html#getI18n">getI18n</a></li>
523 <li data-name="LuCI.Network.Protocol#getIfname"><a href="LuCI.Network.Protocol.html#getIfname">getIfname</a></li>
525 <li data-name="LuCI.Network.Protocol#getIP6Addr"><a href="LuCI.Network.Protocol.html#getIP6Addr">getIP6Addr</a></li>
527 <li data-name="LuCI.Network.Protocol#getIP6Addrs"><a href="LuCI.Network.Protocol.html#getIP6Addrs">getIP6Addrs</a></li>
529 <li data-name="LuCI.Network.Protocol#getIP6Prefix"><a href="LuCI.Network.Protocol.html#getIP6Prefix">getIP6Prefix</a></li>
531 <li data-name="LuCI.Network.Protocol#getIPAddr"><a href="LuCI.Network.Protocol.html#getIPAddr">getIPAddr</a></li>
533 <li data-name="LuCI.Network.Protocol#getIPAddrs"><a href="LuCI.Network.Protocol.html#getIPAddrs">getIPAddrs</a></li>
535 <li data-name="LuCI.Network.Protocol#getL2Device"><a href="LuCI.Network.Protocol.html#getL2Device">getL2Device</a></li>
537 <li data-name="LuCI.Network.Protocol#getL3Device"><a href="LuCI.Network.Protocol.html#getL3Device">getL3Device</a></li>
539 <li data-name="LuCI.Network.Protocol#getMetric"><a href="LuCI.Network.Protocol.html#getMetric">getMetric</a></li>
541 <li data-name="LuCI.Network.Protocol#getName"><a href="LuCI.Network.Protocol.html#getName">getName</a></li>
543 <li data-name="LuCI.Network.Protocol#getNetmask"><a href="LuCI.Network.Protocol.html#getNetmask">getNetmask</a></li>
545 <li data-name="LuCI.Network.Protocol#getOpkgPackage"><a href="LuCI.Network.Protocol.html#getOpkgPackage">getOpkgPackage</a></li>
547 <li data-name="LuCI.Network.Protocol#getProtocol"><a href="LuCI.Network.Protocol.html#getProtocol">getProtocol</a></li>
549 <li data-name="LuCI.Network.Protocol#getType"><a href="LuCI.Network.Protocol.html#getType">getType</a></li>
551 <li data-name="LuCI.Network.Protocol#getUptime"><a href="LuCI.Network.Protocol.html#getUptime">getUptime</a></li>
553 <li data-name="LuCI.Network.Protocol#getZoneName"><a href="LuCI.Network.Protocol.html#getZoneName">getZoneName</a></li>
555 <li data-name="LuCI.Network.Protocol#isAlias"><a href="LuCI.Network.Protocol.html#isAlias">isAlias</a></li>
557 <li data-name="LuCI.Network.Protocol#isBridge"><a href="LuCI.Network.Protocol.html#isBridge">isBridge</a></li>
559 <li data-name="LuCI.Network.Protocol#isDynamic"><a href="LuCI.Network.Protocol.html#isDynamic">isDynamic</a></li>
561 <li data-name="LuCI.Network.Protocol#isEmpty"><a href="LuCI.Network.Protocol.html#isEmpty">isEmpty</a></li>
563 <li data-name="LuCI.Network.Protocol#isFloating"><a href="LuCI.Network.Protocol.html#isFloating">isFloating</a></li>
565 <li data-name="LuCI.Network.Protocol#isInstalled"><a href="LuCI.Network.Protocol.html#isInstalled">isInstalled</a></li>
567 <li data-name="LuCI.Network.Protocol#isUp"><a href="LuCI.Network.Protocol.html#isUp">isUp</a></li>
569 <li data-name="LuCI.Network.Protocol#isVirtual"><a href="LuCI.Network.Protocol.html#isVirtual">isVirtual</a></li>
571 <li data-name="LuCI.Network.Protocol#set"><a href="LuCI.Network.Protocol.html#set">set</a></li>
574 <ul class="events itemMembers">
579 <li class="item" data-name="LuCI.Network.WifiDevice">
581 <a href="LuCI.Network.WifiDevice.html">LuCI.Network.WifiDevice</a>
584 <ul class="members itemMembers">
587 <ul class="typedefs itemMembers">
590 <ul class="typedefs itemMembers">
593 <ul class="methods itemMembers">
595 <span class="subtitle">Methods</span>
597 <li data-name="LuCI.Network.WifiDevice#addWifiNetwork"><a href="LuCI.Network.WifiDevice.html#addWifiNetwork">addWifiNetwork</a></li>
599 <li data-name="LuCI.Network.WifiDevice#deleteWifiNetwork"><a href="LuCI.Network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
601 <li data-name="LuCI.Network.WifiDevice#get"><a href="LuCI.Network.WifiDevice.html#get">get</a></li>
603 <li data-name="LuCI.Network.WifiDevice#getHTModes"><a href="LuCI.Network.WifiDevice.html#getHTModes">getHTModes</a></li>
605 <li data-name="LuCI.Network.WifiDevice#getHWModes"><a href="LuCI.Network.WifiDevice.html#getHWModes">getHWModes</a></li>
607 <li data-name="LuCI.Network.WifiDevice#getI18n"><a href="LuCI.Network.WifiDevice.html#getI18n">getI18n</a></li>
609 <li data-name="LuCI.Network.WifiDevice#getName"><a href="LuCI.Network.WifiDevice.html#getName">getName</a></li>
611 <li data-name="LuCI.Network.WifiDevice#getScanList"><a href="LuCI.Network.WifiDevice.html#getScanList">getScanList</a></li>
613 <li data-name="LuCI.Network.WifiDevice#getWifiNetwork"><a href="LuCI.Network.WifiDevice.html#getWifiNetwork">getWifiNetwork</a></li>
615 <li data-name="LuCI.Network.WifiDevice#getWifiNetworks"><a href="LuCI.Network.WifiDevice.html#getWifiNetworks">getWifiNetworks</a></li>
617 <li data-name="LuCI.Network.WifiDevice#isDisabled"><a href="LuCI.Network.WifiDevice.html#isDisabled">isDisabled</a></li>
619 <li data-name="LuCI.Network.WifiDevice#isUp"><a href="LuCI.Network.WifiDevice.html#isUp">isUp</a></li>
621 <li data-name="LuCI.Network.WifiDevice#set"><a href="LuCI.Network.WifiDevice.html#set">set</a></li>
624 <ul class="events itemMembers">
629 <li class="item" data-name="LuCI.Network.WifiNetwork">
631 <a href="LuCI.Network.WifiNetwork.html">LuCI.Network.WifiNetwork</a>
634 <ul class="members itemMembers">
637 <ul class="typedefs itemMembers">
640 <ul class="typedefs itemMembers">
643 <ul class="methods itemMembers">
645 <span class="subtitle">Methods</span>
647 <li data-name="LuCI.Network.WifiNetwork#disconnectClient"><a href="LuCI.Network.WifiNetwork.html#disconnectClient">disconnectClient</a></li>
649 <li data-name="LuCI.Network.WifiNetwork#get"><a href="LuCI.Network.WifiNetwork.html#get">get</a></li>
651 <li data-name="LuCI.Network.WifiNetwork#getActiveBSSID"><a href="LuCI.Network.WifiNetwork.html#getActiveBSSID">getActiveBSSID</a></li>
653 <li data-name="LuCI.Network.WifiNetwork#getActiveEncryption"><a href="LuCI.Network.WifiNetwork.html#getActiveEncryption">getActiveEncryption</a></li>
655 <li data-name="LuCI.Network.WifiNetwork#getActiveMode"><a href="LuCI.Network.WifiNetwork.html#getActiveMode">getActiveMode</a></li>
657 <li data-name="LuCI.Network.WifiNetwork#getActiveModeI18n"><a href="LuCI.Network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n</a></li>
659 <li data-name="LuCI.Network.WifiNetwork#getActiveSSID"><a href="LuCI.Network.WifiNetwork.html#getActiveSSID">getActiveSSID</a></li>
661 <li data-name="LuCI.Network.WifiNetwork#getAssocList"><a href="LuCI.Network.WifiNetwork.html#getAssocList">getAssocList</a></li>
663 <li data-name="LuCI.Network.WifiNetwork#getBitRate"><a href="LuCI.Network.WifiNetwork.html#getBitRate">getBitRate</a></li>
665 <li data-name="LuCI.Network.WifiNetwork#getBSSID"><a href="LuCI.Network.WifiNetwork.html#getBSSID">getBSSID</a></li>
667 <li data-name="LuCI.Network.WifiNetwork#getChannel"><a href="LuCI.Network.WifiNetwork.html#getChannel">getChannel</a></li>
669 <li data-name="LuCI.Network.WifiNetwork#getCountryCode"><a href="LuCI.Network.WifiNetwork.html#getCountryCode">getCountryCode</a></li>
671 <li data-name="LuCI.Network.WifiNetwork#getDevice"><a href="LuCI.Network.WifiNetwork.html#getDevice">getDevice</a></li>
673 <li data-name="LuCI.Network.WifiNetwork#getFrequency"><a href="LuCI.Network.WifiNetwork.html#getFrequency">getFrequency</a></li>
675 <li data-name="LuCI.Network.WifiNetwork#getI18n"><a href="LuCI.Network.WifiNetwork.html#getI18n">getI18n</a></li>
677 <li data-name="LuCI.Network.WifiNetwork#getID"><a href="LuCI.Network.WifiNetwork.html#getID">getID</a></li>
679 <li data-name="LuCI.Network.WifiNetwork#getIfname"><a href="LuCI.Network.WifiNetwork.html#getIfname">getIfname</a></li>
681 <li data-name="LuCI.Network.WifiNetwork#getMeshID"><a href="LuCI.Network.WifiNetwork.html#getMeshID">getMeshID</a></li>
683 <li data-name="LuCI.Network.WifiNetwork#getMode"><a href="LuCI.Network.WifiNetwork.html#getMode">getMode</a></li>
685 <li data-name="LuCI.Network.WifiNetwork#getName"><a href="LuCI.Network.WifiNetwork.html#getName">getName</a></li>
687 <li data-name="LuCI.Network.WifiNetwork#getNetwork"><a href="LuCI.Network.WifiNetwork.html#getNetwork">getNetwork</a></li>
689 <li data-name="LuCI.Network.WifiNetwork#getNetworkNames"><a href="LuCI.Network.WifiNetwork.html#getNetworkNames">getNetworkNames</a></li>
691 <li data-name="LuCI.Network.WifiNetwork#getNetworks"><a href="LuCI.Network.WifiNetwork.html#getNetworks">getNetworks</a></li>
693 <li data-name="LuCI.Network.WifiNetwork#getNoise"><a href="LuCI.Network.WifiNetwork.html#getNoise">getNoise</a></li>
695 <li data-name="LuCI.Network.WifiNetwork#getShortName"><a href="LuCI.Network.WifiNetwork.html#getShortName">getShortName</a></li>
697 <li data-name="LuCI.Network.WifiNetwork#getSignal"><a href="LuCI.Network.WifiNetwork.html#getSignal">getSignal</a></li>
699 <li data-name="LuCI.Network.WifiNetwork#getSignalLevel"><a href="LuCI.Network.WifiNetwork.html#getSignalLevel">getSignalLevel</a></li>
701 <li data-name="LuCI.Network.WifiNetwork#getSignalPercent"><a href="LuCI.Network.WifiNetwork.html#getSignalPercent">getSignalPercent</a></li>
703 <li data-name="LuCI.Network.WifiNetwork#getSSID"><a href="LuCI.Network.WifiNetwork.html#getSSID">getSSID</a></li>
705 <li data-name="LuCI.Network.WifiNetwork#getTXPower"><a href="LuCI.Network.WifiNetwork.html#getTXPower">getTXPower</a></li>
707 <li data-name="LuCI.Network.WifiNetwork#getTXPowerOffset"><a href="LuCI.Network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset</a></li>
709 <li data-name="LuCI.Network.WifiNetwork#getWifiDevice"><a href="LuCI.Network.WifiNetwork.html#getWifiDevice">getWifiDevice</a></li>
711 <li data-name="LuCI.Network.WifiNetwork#getWifiDeviceName"><a href="LuCI.Network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName</a></li>
713 <li data-name="LuCI.Network.WifiNetwork#isClientDisconnectSupported"><a href="LuCI.Network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported</a></li>
715 <li data-name="LuCI.Network.WifiNetwork#isDisabled"><a href="LuCI.Network.WifiNetwork.html#isDisabled">isDisabled</a></li>
717 <li data-name="LuCI.Network.WifiNetwork#isUp"><a href="LuCI.Network.WifiNetwork.html#isUp">isUp</a></li>
719 <li data-name="LuCI.Network.WifiNetwork#set"><a href="LuCI.Network.WifiNetwork.html#set">set</a></li>
722 <ul class="events itemMembers">
727 <li class="item" data-name="LuCI.Poll">
729 <a href="LuCI.Poll.html">LuCI.Poll</a>
732 <ul class="members itemMembers">
735 <ul class="typedefs itemMembers">
738 <ul class="typedefs itemMembers">
741 <ul class="methods itemMembers">
743 <span class="subtitle">Methods</span>
745 <li data-name="LuCI.Poll#active"><a href="LuCI.Poll.html#active">active</a></li>
747 <li data-name="LuCI.Poll#add"><a href="LuCI.Poll.html#add">add</a></li>
749 <li data-name="LuCI.Poll#remove"><a href="LuCI.Poll.html#remove">remove</a></li>
751 <li data-name="LuCI.Poll#start"><a href="LuCI.Poll.html#start">start</a></li>
753 <li data-name="LuCI.Poll#stop"><a href="LuCI.Poll.html#stop">stop</a></li>
756 <ul class="events itemMembers">
761 <li class="item" data-name="LuCI.Request">
763 <a href="LuCI.Request.html">LuCI.Request</a>
766 <ul class="members itemMembers">
769 <ul class="typedefs itemMembers">
771 <span class="subtitle">Typedefs</span>
773 <li data-name="LuCI.Request.interceptorFn"><a href="LuCI.Request.html#.interceptorFn">interceptorFn</a></li>
775 <li data-name="LuCI.Request.RequestOptions"><a href="LuCI.Request.html#.RequestOptions">RequestOptions</a></li>
778 <ul class="typedefs itemMembers">
781 <ul class="methods itemMembers">
783 <span class="subtitle">Methods</span>
785 <li data-name="LuCI.Request#addInterceptor"><a href="LuCI.Request.html#addInterceptor">addInterceptor</a></li>
787 <li data-name="LuCI.Request#expandURL"><a href="LuCI.Request.html#expandURL">expandURL</a></li>
789 <li data-name="LuCI.Request#get"><a href="LuCI.Request.html#get">get</a></li>
791 <li data-name="LuCI.Request#post"><a href="LuCI.Request.html#post">post</a></li>
793 <li data-name="LuCI.Request#removeInterceptor"><a href="LuCI.Request.html#removeInterceptor">removeInterceptor</a></li>
795 <li data-name="LuCI.Request#request"><a href="LuCI.Request.html#request">request</a></li>
798 <ul class="events itemMembers">
803 <li class="item" data-name="LuCI.Request.poll">
805 <a href="LuCI.Request.poll.html">LuCI.Request.poll</a>
808 <ul class="members itemMembers">
811 <ul class="typedefs itemMembers">
813 <span class="subtitle">Typedefs</span>
815 <li data-name="LuCI.Request.poll~callbackFn"><a href="LuCI.Request.poll.html#~callbackFn">callbackFn</a></li>
818 <ul class="typedefs itemMembers">
821 <ul class="methods itemMembers">
823 <span class="subtitle">Methods</span>
825 <li data-name="LuCI.Request.poll#active"><a href="LuCI.Request.poll.html#active">active</a></li>
827 <li data-name="LuCI.Request.poll#add"><a href="LuCI.Request.poll.html#add">add</a></li>
829 <li data-name="LuCI.Request.poll#remove"><a href="LuCI.Request.poll.html#remove">remove</a></li>
831 <li data-name="LuCI.Request.poll#start"><a href="LuCI.Request.poll.html#start">start</a></li>
833 <li data-name="LuCI.Request.poll#stop"><a href="LuCI.Request.poll.html#stop">stop</a></li>
836 <ul class="events itemMembers">
841 <li class="item" data-name="LuCI.Response">
843 <a href="LuCI.Response.html">LuCI.Response</a>
846 <ul class="members itemMembers">
848 <span class="subtitle">Members</span>
850 <li data-name="LuCI.Response#duration"><a href="LuCI.Response.html#duration">duration</a></li>
852 <li data-name="LuCI.Response#headers"><a href="LuCI.Response.html#headers">headers</a></li>
854 <li data-name="LuCI.Response#ok"><a href="LuCI.Response.html#ok">ok</a></li>
856 <li data-name="LuCI.Response#status"><a href="LuCI.Response.html#status">status</a></li>
858 <li data-name="LuCI.Response#statusText"><a href="LuCI.Response.html#statusText">statusText</a></li>
860 <li data-name="LuCI.Response#url"><a href="LuCI.Response.html#url">url</a></li>
863 <ul class="typedefs itemMembers">
866 <ul class="typedefs itemMembers">
869 <ul class="methods itemMembers">
871 <span class="subtitle">Methods</span>
873 <li data-name="LuCI.Response#blob"><a href="LuCI.Response.html#blob">blob</a></li>
875 <li data-name="LuCI.Response#clone"><a href="LuCI.Response.html#clone">clone</a></li>
877 <li data-name="LuCI.Response#json"><a href="LuCI.Response.html#json">json</a></li>
879 <li data-name="LuCI.Response#text"><a href="LuCI.Response.html#text">text</a></li>
882 <ul class="events itemMembers">
887 <li class="item" data-name="LuCI.rpc">
889 <a href="LuCI.rpc.html">LuCI.rpc</a>
892 <ul class="members itemMembers">
895 <ul class="typedefs itemMembers">
897 <span class="subtitle">Typedefs</span>
899 <li data-name="LuCI.rpc.DeclareOptions"><a href="LuCI.rpc.html#.DeclareOptions">DeclareOptions</a></li>
901 <li data-name="LuCI.rpc~filterFn"><a href="LuCI.rpc.html#~filterFn">filterFn</a></li>
903 <li data-name="LuCI.rpc~interceptorFn"><a href="LuCI.rpc.html#~interceptorFn">interceptorFn</a></li>
905 <li data-name="LuCI.rpc~invokeFn"><a href="LuCI.rpc.html#~invokeFn">invokeFn</a></li>
908 <ul class="typedefs itemMembers">
911 <ul class="methods itemMembers">
913 <span class="subtitle">Methods</span>
915 <li data-name="LuCI.rpc#addInterceptor"><a href="LuCI.rpc.html#addInterceptor">addInterceptor</a></li>
917 <li data-name="LuCI.rpc#declare"><a href="LuCI.rpc.html#declare">declare</a></li>
919 <li data-name="LuCI.rpc#getBaseURL"><a href="LuCI.rpc.html#getBaseURL">getBaseURL</a></li>
921 <li data-name="LuCI.rpc#getSessionID"><a href="LuCI.rpc.html#getSessionID">getSessionID</a></li>
923 <li data-name="LuCI.rpc#getStatusText"><a href="LuCI.rpc.html#getStatusText">getStatusText</a></li>
925 <li data-name="LuCI.rpc#list"><a href="LuCI.rpc.html#list">list</a></li>
927 <li data-name="LuCI.rpc#removeInterceptor"><a href="LuCI.rpc.html#removeInterceptor">removeInterceptor</a></li>
929 <li data-name="LuCI.rpc#setBaseURL"><a href="LuCI.rpc.html#setBaseURL">setBaseURL</a></li>
931 <li data-name="LuCI.rpc#setSessionID"><a href="LuCI.rpc.html#setSessionID">setSessionID</a></li>
934 <ul class="events itemMembers">
939 <li class="item" data-name="LuCI.uci">
941 <a href="LuCI.uci.html">LuCI.uci</a>
944 <ul class="members itemMembers">
947 <ul class="typedefs itemMembers">
949 <span class="subtitle">Typedefs</span>
951 <li data-name="LuCI.uci.ChangeRecord"><a href="LuCI.uci.html#.ChangeRecord">ChangeRecord</a></li>
953 <li data-name="LuCI.uci.SectionObject"><a href="LuCI.uci.html#.SectionObject">SectionObject</a></li>
955 <li data-name="LuCI.uci~sectionsFn"><a href="LuCI.uci.html#~sectionsFn">sectionsFn</a></li>
958 <ul class="typedefs itemMembers">
961 <ul class="methods itemMembers">
963 <span class="subtitle">Methods</span>
965 <li data-name="LuCI.uci#add"><a href="LuCI.uci.html#add">add</a></li>
967 <li data-name="LuCI.uci#apply"><a href="LuCI.uci.html#apply">apply</a></li>
969 <li data-name="LuCI.uci#changes"><a href="LuCI.uci.html#changes">changes</a></li>
971 <li data-name="LuCI.uci#createSID"><a href="LuCI.uci.html#createSID">createSID</a></li>
973 <li data-name="LuCI.uci#get"><a href="LuCI.uci.html#get">get</a></li>
975 <li data-name="LuCI.uci#get_first"><a href="LuCI.uci.html#get_first">get_first</a></li>
977 <li data-name="LuCI.uci#load"><a href="LuCI.uci.html#load">load</a></li>
979 <li data-name="LuCI.uci#move"><a href="LuCI.uci.html#move">move</a></li>
981 <li data-name="LuCI.uci#remove"><a href="LuCI.uci.html#remove">remove</a></li>
983 <li data-name="LuCI.uci#resolveSID"><a href="LuCI.uci.html#resolveSID">resolveSID</a></li>
985 <li data-name="LuCI.uci#save"><a href="LuCI.uci.html#save">save</a></li>
987 <li data-name="LuCI.uci#sections"><a href="LuCI.uci.html#sections">sections</a></li>
989 <li data-name="LuCI.uci#set"><a href="LuCI.uci.html#set">set</a></li>
991 <li data-name="LuCI.uci#set_first"><a href="LuCI.uci.html#set_first">set_first</a></li>
993 <li data-name="LuCI.uci#unload"><a href="LuCI.uci.html#unload">unload</a></li>
995 <li data-name="LuCI.uci#unset"><a href="LuCI.uci.html#unset">unset</a></li>
997 <li data-name="LuCI.uci#unset_first"><a href="LuCI.uci.html#unset_first">unset_first</a></li>
1000 <ul class="events itemMembers">
1005 <li class="item" data-name="LuCI.view">
1006 <span class="title">
1007 <a href="LuCI.view.html">LuCI.view</a>
1010 <ul class="members itemMembers">
1013 <ul class="typedefs itemMembers">
1016 <ul class="typedefs itemMembers">
1019 <ul class="methods itemMembers">
1021 <span class="subtitle">Methods</span>
1023 <li data-name="LuCI.view#addFooter"><a href="LuCI.view.html#addFooter">addFooter</a></li>
1025 <li data-name="LuCI.view#handleReset"><a href="LuCI.view.html#handleReset">handleReset</a></li>
1027 <li data-name="LuCI.view#handleSave"><a href="LuCI.view.html#handleSave">handleSave</a></li>
1029 <li data-name="LuCI.view#handleSaveApply"><a href="LuCI.view.html#handleSaveApply">handleSaveApply</a></li>
1031 <li data-name="LuCI.view#load"><a href="LuCI.view.html#load">load</a></li>
1033 <li data-name="LuCI.view#render"><a href="LuCI.view.html#render">render</a></li>
1036 <ul class="events itemMembers">
1041 <li class="item" data-name="LuCI.XHR">
1042 <span class="title">
1043 <a href="LuCI.XHR.html">LuCI.XHR</a>
1046 <ul class="members itemMembers">
1049 <ul class="typedefs itemMembers">
1052 <ul class="typedefs itemMembers">
1055 <ul class="methods itemMembers">
1057 <span class="subtitle">Methods</span>
1059 <li data-name="LuCI.XHR#abort"><a href="LuCI.XHR.html#abort">abort</a></li>
1061 <li data-name="LuCI.XHR#busy"><a href="LuCI.XHR.html#busy">busy</a></li>
1063 <li data-name="LuCI.XHR#cancel"><a href="LuCI.XHR.html#cancel">cancel</a></li>
1065 <li data-name="LuCI.XHR#get"><a href="LuCI.XHR.html#get">get</a></li>
1067 <li data-name="LuCI.XHR#post"><a href="LuCI.XHR.html#post">post</a></li>
1069 <li data-name="LuCI.XHR#send_form"><a href="LuCI.XHR.html#send_form">send_form</a></li>
1072 <ul class="events itemMembers">
1080 <h1 class="page-title" data-filename="LuCI.uci.html">Class: uci</h1>
1089 <span class="ancestors"><a href="LuCI.html">LuCI</a>.</span>
1094 <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
1095 remote UCI <code>ubus</code> procedures and implements a local caching and data
1096 manipulation layer on top to allow for synchroneous operations on
1097 UCI configuration data.</p></div>
1102 <div class="container-overview">
1108 <div class="nameContainer">
1109 <h4 class="name" id="uci">
1111 new LuCI.uci<span class="signature">()</span>
1115 <div class="tag-source">
1116 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line4">line 4</a>
1134 <dl class="details">
1188 <h3 class="subsection-title">Methods</h3>
1193 <div class="nameContainer">
1194 <h4 class="name" id="add">
1196 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>
1200 <div class="tag-source">
1201 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line269">line 269</a>
1211 <div class="description">
1212 <p>Adds a new section of the given type to the given configuration,
1213 optionally named according to the given name.</p>
1224 <table class="params">
1235 <th class="last">Description</th>
1244 <td class="name"><code>config</code></td>
1250 <span class="param-type">string</span>
1258 <td class="description last">
1265 <p>The name of the configuration to add the section to.</p></td>
1272 <td class="name"><code>type</code></td>
1278 <span class="param-type">string</span>
1286 <td class="description last">
1293 <p>The type of the section to add.</p></td>
1300 <td class="name"><code>name</code></td>
1306 <span class="param-type">string</span>
1314 <td class="description last">
1317 <span class="optional">optional</span>
1323 <p>The name of the section to add. If the name is omitted, an anonymous
1324 section will be added instead.</p></td>
1333 <dl class="details">
1371 <table class="params">
1376 <th class="last">Description</th>
1389 <td class="description last">Returns the section ID of the newly added section which is equivalent
1390 to the given name for non-anonymous sections.</td>
1404 <div class="nameContainer">
1405 <h4 class="name" id="apply">
1407 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>
1411 <div class="tag-source">
1412 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line858">line 858</a>
1422 <div class="description">
1423 <p>Instructs the remote <code>ubus</code> UCI api to commit all saved changes with
1424 rollback protection and attempts to confirm the pending commit
1425 operation to cancel the rollback timer.</p>
1436 <table class="params">
1449 <th class="last">Description</th>
1458 <td class="name"><code>timeout</code></td>
1464 <span class="param-type">number</span>
1471 <td class="default">
1478 <td class="description last">
1481 <span class="optional">optional</span>
1487 <p>Override the confirmation timeout after which a rollback is triggered.</p></td>
1496 <dl class="details">
1534 <table class="params">
1539 <th class="last">Description</th>
1552 <td class="description last">Returns a promise resolving/rejecting with the <code>ubus</code> RPC status code.</td>
1566 <div class="nameContainer">
1567 <h4 class="name" id="changes">
1569 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>
1573 <div class="tag-source">
1574 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line938">line 938</a>
1584 <div class="description">
1585 <p>Fetches uncommitted UCI changes from the remote <code>ubus</code> RPC api.</p>
1596 <dl class="details">
1634 <table class="params">
1639 <th class="last">Description</th>
1648 Promise.<Object.<string, Array.<<a href="LuCI.uci.html#.ChangeRecord">LuCI.uci.ChangeRecord</a>>>>
1652 <td class="description last">Returns a promise resolving to an object containing the configuration
1653 names as keys and arrays of related change records as values.</td>
1667 <div class="nameContainer">
1668 <h4 class="name" id="createSID">
1670 createSID<span class="signature">(config)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
1674 <div class="tag-source">
1675 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line88">line 88</a>
1685 <div class="description">
1686 <p>Generates a new, unique section ID for the given configuration.</p>
1687 <p>Note that the generated ID is temporary, it will get replaced by an
1688 identifier in the form <code>cfgXXXXXX</code> once the configuration is saved
1689 by the remote <code>ubus</code> UCI api.</p>
1700 <table class="params">
1711 <th class="last">Description</th>
1720 <td class="name"><code>config</code></td>
1726 <span class="param-type">string</span>
1734 <td class="description last">
1736 <p>The configuration to generate the new section ID for.</p></td>
1745 <dl class="details">
1783 <table class="params">
1788 <th class="last">Description</th>
1801 <td class="description last">A newly generated, unique section ID in the form <code>newXXXXXX</code>
1802 where <code>X</code> denotes a hexadecimal digit.</td>
1816 <div class="nameContainer">
1817 <h4 class="name" id="get">
1819 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>
1823 <div class="tag-source">
1824 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line443">line 443</a>
1834 <div class="description">
1835 <p>Gets the value of the given option within the specified section
1836 of the given configuration or the entire section object if the
1837 option name is omitted.</p>
1848 <table class="params">
1859 <th class="last">Description</th>
1868 <td class="name"><code>config</code></td>
1874 <span class="param-type">string</span>
1882 <td class="description last">
1889 <p>The name of the configuration to read the value from.</p></td>
1896 <td class="name"><code>sid</code></td>
1902 <span class="param-type">string</span>
1910 <td class="description last">
1917 <p>The name or ID of the section to read.</p></td>
1924 <td class="name"><code>option</code></td>
1930 <span class="param-type">string</span>
1938 <td class="description last">
1941 <span class="optional">optional</span>
1947 <p>The option name to read the value from. If the option name is
1948 omitted or <code>null</code>, the entire section is returned instead.</p></td>
1957 <dl class="details">
1995 <table class="params">
2000 <th class="last">Description</th>
2018 <a href="LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject</a>
2022 <td class="description last"><ul>
2023 <li>Returns a string containing the option value in case of a
2024 plain UCI option.</li>
2025 <li>Returns an array of strings containing the option values in
2026 case of <code>option</code> pointing to an UCI list.</li>
2027 <li>Returns a <a href="LuCI.uci.html#.SectionObject"><code>section object</code></a> if
2028 the <code>option</code> argument has been omitted or is <code>null</code>.</li>
2029 <li>Returns <code>null</code> if the config, section or option has not been
2030 found or if the corresponding configuration is not loaded.</li>
2045 <div class="nameContainer">
2046 <h4 class="name" id="get_first">
2048 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>
2052 <div class="tag-source">
2053 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line618">line 618</a>
2063 <div class="description">
2064 <p>Gets the value of the given option or the entire section object of
2065 the first found section of the specified type or the first found
2066 section of the entire configuration if no type is specfied.</p>
2077 <table class="params">
2088 <th class="last">Description</th>
2097 <td class="name"><code>config</code></td>
2103 <span class="param-type">string</span>
2111 <td class="description last">
2118 <p>The name of the configuration to read the value from.</p></td>
2125 <td class="name"><code>type</code></td>
2131 <span class="param-type">string</span>
2139 <td class="description last">
2142 <span class="optional">optional</span>
2148 <p>The type of the first section to find. If it is <code>null</code>, the first
2149 section of the entire config is read, otherwise the first section
2150 matching the given type.</p></td>
2157 <td class="name"><code>option</code></td>
2163 <span class="param-type">string</span>
2171 <td class="description last">
2174 <span class="optional">optional</span>
2180 <p>The option name to read the value from. If the option name is
2181 omitted or <code>null</code>, the entire section is returned instead.</p></td>
2190 <dl class="details">
2228 <table class="params">
2233 <th class="last">Description</th>
2251 <a href="LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject</a>
2255 <td class="description last"><ul>
2256 <li>Returns a string containing the option value in case of a
2257 plain UCI option.</li>
2258 <li>Returns an array of strings containing the option values in
2259 case of <code>option</code> pointing to an UCI list.</li>
2260 <li>Returns a <a href="LuCI.uci.html#.SectionObject"><code>section object</code></a> if
2261 the <code>option</code> argument has been omitted or is <code>null</code>.</li>
2262 <li>Returns <code>null</code> if the config, section or option has not been
2263 found or if the corresponding configuration is not loaded.</li>
2278 <div class="nameContainer">
2279 <h4 class="name" id="load">
2281 load<span class="signature">(config)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Array.<string>>}</span>
2285 <div class="tag-source">
2286 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line205">line 205</a>
2296 <div class="description">
2297 <p>Loads the given UCI configurations from the remote <code>ubus</code> api.</p>
2298 <p>Loaded configurations are cached and only loaded once. Subsequent
2299 load operations of the same configurations will return the cached
2301 <p>To force reloading a configuration, it has to be unloaded with
2302 <a href="LuCI.uci.html#unload"><code>uci.unload()</code></a> first.</p>
2313 <table class="params">
2324 <th class="last">Description</th>
2333 <td class="name"><code>config</code></td>
2339 <span class="param-type">string</span>
2342 <span class="param-type">Array.<string></span>
2350 <td class="description last">
2352 <p>The name of the configuration or an array of configuration
2353 names to load.</p></td>
2362 <dl class="details">
2400 <table class="params">
2405 <th class="last">Description</th>
2414 Promise.<Array.<string>>
2418 <td class="description last">Returns a promise resolving to the names of the configurations
2419 that have been successfully loaded.</td>
2433 <div class="nameContainer">
2434 <h4 class="name" id="move">
2436 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>
2440 <div class="tag-source">
2441 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line718">line 718</a>
2451 <div class="description">
2452 <p>Move the first specified section within the given configuration
2453 before or after the second specified section.</p>
2464 <table class="params">
2477 <th class="last">Description</th>
2486 <td class="name"><code>config</code></td>
2492 <span class="param-type">string</span>
2499 <td class="default">
2504 <td class="description last">
2511 <p>The configuration to move the section within.</p></td>
2518 <td class="name"><code>sid1</code></td>
2524 <span class="param-type">string</span>
2531 <td class="default">
2536 <td class="description last">
2543 <p>The ID of the section to move within the configuration.</p></td>
2550 <td class="name"><code>sid2</code></td>
2556 <span class="param-type">string</span>
2563 <td class="default">
2568 <td class="description last">
2571 <span class="optional">optional</span>
2577 <p>The ID of the target section for the move operation. If the
2578 <code>after</code> argument is <code>false</code> or not specified, the section named by
2579 <code>sid1</code> will be moved before this target section, if the <code>after</code>
2580 argument is <code>true</code>, the <code>sid1</code> section will be moved after this
2582 <p>When the <code>sid2</code> argument is <code>null</code>, the section specified by <code>sid1</code>
2583 is moved to the end of the configuration.</p></td>
2590 <td class="name"><code>after</code></td>
2596 <span class="param-type">boolean</span>
2603 <td class="default">
2610 <td class="description last">
2613 <span class="optional">optional</span>
2619 <p>When <code>true</code>, the section <code>sid1</code> is moved after the section <code>sid2</code>,
2620 when <code>false</code>, the section <code>sid1</code> is moved before <code>sid2</code>.</p>
2621 <p>If <code>sid2</code> is null, then this parameter has no effect and the section
2622 <code>sid1</code> is moved to the end of the configuration instead.</p></td>
2631 <dl class="details">
2669 <table class="params">
2674 <th class="last">Description</th>
2687 <td class="description last">Returns <code>true</code> when the section was successfully moved, or <code>false</code>
2688 when either the section specified by <code>sid1</code> or by <code>sid2</code> is not found.</td>
2702 <div class="nameContainer">
2703 <h4 class="name" id="remove">
2705 remove<span class="signature">(config, sid)</span>
2709 <div class="tag-source">
2710 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line296">line 296</a>
2720 <div class="description">
2721 <p>Removes the section with the given ID from the given configuration.</p>
2732 <table class="params">
2743 <th class="last">Description</th>
2752 <td class="name"><code>config</code></td>
2758 <span class="param-type">string</span>
2766 <td class="description last">
2768 <p>The name of the configuration to remove the section from.</p></td>
2775 <td class="name"><code>sid</code></td>
2781 <span class="param-type">string</span>
2789 <td class="description last">
2791 <p>The ID of the section to remove.</p></td>
2800 <dl class="details">
2841 <div class="nameContainer">
2842 <h4 class="name" id="resolveSID">
2844 resolveSID<span class="signature">(config, sid)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string|null}</span>
2848 <div class="tag-source">
2849 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line119">line 119</a>
2859 <div class="description">
2860 <p>Resolves a given section ID in extended notation to the internal
2861 section ID value.</p>
2872 <table class="params">
2883 <th class="last">Description</th>
2892 <td class="name"><code>config</code></td>
2898 <span class="param-type">string</span>
2906 <td class="description last">
2908 <p>The configuration to resolve the section ID for.</p></td>
2915 <td class="name"><code>sid</code></td>
2921 <span class="param-type">string</span>
2929 <td class="description last">
2931 <p>The section ID to resolve. If the ID is in the form <code>@typename[#]</code>,
2932 it will get resolved to an internal anonymous ID in the forms
2933 <code>cfgXXXXXX</code>/<code>newXXXXXX</code> or to the name of a section in case it points
2934 to a named section. When the given ID is not in extended notation,
2935 it will be returned as-is.</p></td>
2944 <dl class="details">
2982 <table class="params">
2987 <th class="last">Description</th>
3003 <td class="description last">Returns the resolved section ID or the original given ID if it was
3004 not in extended notation. Returns <code>null</code> when an extended ID could
3005 not be resolved to existing section ID.</td>
3019 <div class="nameContainer">
3020 <h4 class="name" id="save">
3022 save<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.<string>}</span>
3026 <div class="tag-source">
3027 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line772">line 772</a>
3037 <div class="description">
3038 <p>Submits all local configuration changes to the remove <code>ubus</code> api,
3039 adds, removes and reorders remote sections as needed and reloads
3040 all loaded configurations to resynchronize the local state with
3041 the remote configuration values.</p>
3052 <dl class="details">
3090 <table class="params">
3095 <th class="last">Description</th>
3108 <td class="description last">Returns a promise resolving to an array of configuration names which
3109 have been reloaded by the save operation.</td>
3123 <div class="nameContainer">
3124 <h4 class="name" id="sections">
3126 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>
3130 <div class="tag-source">
3131 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line384">line 384</a>
3141 <div class="description">
3142 <p>Enumerates the sections of the given configuration, optionally
3143 filtered by type.</p>
3154 <table class="params">
3165 <th class="last">Description</th>
3174 <td class="name"><code>config</code></td>
3180 <span class="param-type">string</span>
3188 <td class="description last">
3195 <p>The name of the configuration to enumerate the sections for.</p></td>
3202 <td class="name"><code>type</code></td>
3208 <span class="param-type">string</span>
3216 <td class="description last">
3219 <span class="optional">optional</span>
3225 <p>Enumerate only sections of the given type. If omitted, enumerate
3226 all sections.</p></td>
3233 <td class="name"><code>cb</code></td>
3239 <span class="param-type"><a href="LuCI.uci.html#~sectionsFn">LuCI.uci~sectionsFn</a></span>
3247 <td class="description last">
3250 <span class="optional">optional</span>
3256 <p>An optional callback to invoke for each enumerated section.</p></td>
3265 <dl class="details">
3303 <table class="params">
3308 <th class="last">Description</th>
3317 Array.<<a href="LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject</a>>
3321 <td class="description last">Returns a sorted array of the section objects within the given
3322 configuration, filtered by type of a type has been specified.</td>
3336 <div class="nameContainer">
3337 <h4 class="name" id="set">
3339 set<span class="signature">(config, sid, option, value)</span>
3343 <div class="tag-source">
3344 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line516">line 516</a>
3354 <div class="description">
3355 <p>Sets the value of the given option within the specified section
3356 of the given configuration.</p>
3357 <p>If either config, section or option is null, or if <code>option</code> begins
3358 with a dot, the function will do nothing.</p>
3369 <table class="params">
3380 <th class="last">Description</th>
3389 <td class="name"><code>config</code></td>
3395 <span class="param-type">string</span>
3403 <td class="description last">
3405 <p>The name of the configuration to set the option value in.</p></td>
3412 <td class="name"><code>sid</code></td>
3418 <span class="param-type">string</span>
3426 <td class="description last">
3428 <p>The name or ID of the section to set the option value in.</p></td>
3435 <td class="name"><code>option</code></td>
3441 <span class="param-type">string</span>
3449 <td class="description last">
3451 <p>The option name to set the value for.</p></td>
3458 <td class="name"><code>value</code></td>
3464 <span class="param-type">null</span>
3467 <span class="param-type">string</span>
3470 <span class="param-type">Array.<string></span>
3478 <td class="description last">
3480 <p>The option value to set. If the value is <code>null</code> or an empty string,
3481 the option will be removed, otherwise it will be set or overwritten
3482 with the given value.</p></td>
3491 <dl class="details">
3532 <div class="nameContainer">
3533 <h4 class="name" id="set_first">
3535 set_first<span class="signature">(config, <span class="optional">type</span>, option, value)</span>
3539 <div class="tag-source">
3540 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line653">line 653</a>
3550 <div class="description">
3551 <p>Sets the value of the given option within the first found section
3552 of the given configuration matching the specified type or within
3553 the first section of the entire config when no type has is specified.</p>
3554 <p>If either config, type or option is null, or if <code>option</code> begins
3555 with a dot, the function will do nothing.</p>
3566 <table class="params">
3577 <th class="last">Description</th>
3586 <td class="name"><code>config</code></td>
3592 <span class="param-type">string</span>
3600 <td class="description last">
3607 <p>The name of the configuration to set the option value in.</p></td>
3614 <td class="name"><code>type</code></td>
3620 <span class="param-type">string</span>
3628 <td class="description last">
3631 <span class="optional">optional</span>
3637 <p>The type of the first section to find. If it is <code>null</code>, the first
3638 section of the entire config is written to, otherwise the first
3639 section matching the given type is used.</p></td>
3646 <td class="name"><code>option</code></td>
3652 <span class="param-type">string</span>
3660 <td class="description last">
3667 <p>The option name to set the value for.</p></td>
3674 <td class="name"><code>value</code></td>
3680 <span class="param-type">null</span>
3683 <span class="param-type">string</span>
3686 <span class="param-type">Array.<string></span>
3694 <td class="description last">
3701 <p>The option value to set. If the value is <code>null</code> or an empty string,
3702 the option will be removed, otherwise it will be set or overwritten
3703 with the given value.</p></td>
3712 <dl class="details">
3753 <div class="nameContainer">
3754 <h4 class="name" id="unload">
3756 unload<span class="signature">(config)</span>
3760 <div class="tag-source">
3761 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line237">line 237</a>
3771 <div class="description">
3772 <p>Unloads the given UCI configurations from the local cache.</p>
3783 <table class="params">
3794 <th class="last">Description</th>
3803 <td class="name"><code>config</code></td>
3809 <span class="param-type">string</span>
3812 <span class="param-type">Array.<string></span>
3820 <td class="description last">
3822 <p>The name of the configuration or an array of configuration
3823 names to unload.</p></td>
3832 <dl class="details">
3873 <div class="nameContainer">
3874 <h4 class="name" id="unset">
3876 unset<span class="signature">(config, sid, option)</span>
3880 <div class="tag-source">
3881 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line587">line 587</a>
3891 <div class="description">
3892 <p>Remove the given option within the specified section of the given
3894 <p>This function is a convenience wrapper around
3895 <code>uci.set(config, section, option, null)</code>.</p>
3906 <table class="params">
3917 <th class="last">Description</th>
3926 <td class="name"><code>config</code></td>
3932 <span class="param-type">string</span>
3940 <td class="description last">
3942 <p>The name of the configuration to remove the option from.</p></td>
3949 <td class="name"><code>sid</code></td>
3955 <span class="param-type">string</span>
3963 <td class="description last">
3965 <p>The name or ID of the section to remove the option from.</p></td>
3972 <td class="name"><code>option</code></td>
3978 <span class="param-type">string</span>
3986 <td class="description last">
3988 <p>The name of the option to remove.</p></td>
3997 <dl class="details">
4038 <div class="nameContainer">
4039 <h4 class="name" id="unset_first">
4041 unset_first<span class="signature">(config, <span class="optional">type</span>, option)</span>
4045 <div class="tag-source">
4046 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line683">line 683</a>
4056 <div class="description">
4057 <p>Removes the given option within the first found section of the given
4058 configuration matching the specified type or within the first section
4059 of the entire config when no type has is specified.</p>
4060 <p>This function is a convenience wrapper around
4061 <code>uci.set_first(config, type, option, null)</code>.</p>
4072 <table class="params">
4083 <th class="last">Description</th>
4092 <td class="name"><code>config</code></td>
4098 <span class="param-type">string</span>
4106 <td class="description last">
4113 <p>The name of the configuration to set the option value in.</p></td>
4120 <td class="name"><code>type</code></td>
4126 <span class="param-type">string</span>
4134 <td class="description last">
4137 <span class="optional">optional</span>
4143 <p>The type of the first section to find. If it is <code>null</code>, the first
4144 section of the entire config is written to, otherwise the first
4145 section matching the given type is used.</p></td>
4152 <td class="name"><code>option</code></td>
4158 <span class="param-type">string</span>
4166 <td class="description last">
4173 <p>The option name to set the value for.</p></td>
4182 <dl class="details">
4224 <h3 class="subsection-title">Type Definitions</h3>
4229 <div class="nameContainer">
4230 <h4 class="name" id=".ChangeRecord">LuCI.uci.ChangeRecord<span class="type-signature type array.<string>">Array.<string></span> </h4>
4237 <div class="description">
4238 <p>An UCI change record is a plain array containing the change operation
4239 name as first element, the affected section ID as second argument
4240 and an optional third and fourth argument whose meanings depend on
4246 <dl class="details">
4249 <h5 class="subsection-title">Properties:</h5>
4253 <table class="props">
4266 <th class="last">Description</th>
4275 <td class="name"><code>0</code></td>
4281 <span class="param-type">string</span>
4291 <td class="description last"><p>The operation name - may be one of <code>add</code>, <code>set</code>, <code>remove</code>, <code>order</code>,
4292 <code>list-add</code>, <code>list-del</code> or <code>rename</code>.</p></td>
4299 <td class="name"><code>1</code></td>
4305 <span class="param-type">string</span>
4315 <td class="description last"><p>The section ID targeted by the operation.</p></td>
4322 <td class="name"><code>2</code></td>
4328 <span class="param-type">string</span>
4338 <td class="description last"><p>The meaning of the third element depends on the operation.</p>
4340 <li>For <code>add</code> it is type of the section that has been added</li>
4341 <li>For <code>set</code> it either is the option name if a fourth element exists,
4342 or the type of a named section which has been added when the change
4343 entry only contains three elements.</li>
4344 <li>For <code>remove</code> it contains the name of the option that has been
4346 <li>For <code>order</code> it specifies the new sort index of the section.</li>
4347 <li>For <code>list-add</code> it contains the name of the list option a new value
4348 has been added to.</li>
4349 <li>For <code>list-del</code> it contains the name of the list option a value has
4350 been removed from.</li>
4351 <li>For <code>rename</code> it contains the name of the option that has been
4352 renamed if a fourth element exists, else it contains the new name
4353 a section has been renamed to if the change entry only contains
4354 three elements.</li>
4362 <td class="name"><code>4</code></td>
4368 <span class="param-type">string</span>
4378 <td class="description last"><p>The meaning of the fourth element depends on the operation.</p>
4380 <li>For <code>set</code> it is the value an option has been set to.</li>
4381 <li>For <code>list-add</code> it is the new value that has been added to a
4383 <li>For <code>rename</code> it is the new name of an option that has been
4422 <div class="nameContainer">
4423 <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>
4430 <div class="description">
4431 <p>A section object represents the options and their corresponding values
4432 enclosed within a configuration section, as well as some additional
4433 meta data such as sort indexes and internal ID.</p>
4434 <p>Any internal metadata fields are prefixed with a dot which is isn't
4435 an allowed character for normal option names.</p>
4440 <dl class="details">
4443 <h5 class="subsection-title">Properties:</h5>
4447 <table class="props">
4460 <th class="last">Description</th>
4469 <td class="name"><code>.anonymous</code></td>
4475 <span class="param-type">boolean</span>
4485 <td class="description last"><p>The <code>.anonymous</code> property specifies whether the configuration is
4486 anonymous (<code>true</code>) or named (<code>false</code>).</p></td>
4493 <td class="name"><code>.index</code></td>
4499 <span class="param-type">number</span>
4509 <td class="description last"><p>The <code>.index</code> property specifes the sort order of the section.</p></td>
4516 <td class="name"><code>.name</code></td>
4522 <span class="param-type">string</span>
4532 <td class="description last"><p>The <code>.name</code> property holds the name of the section object. It may be
4533 either an anonymous ID in the form <code>cfgXXXXXX</code> or <code>newXXXXXX</code> with <code>X</code>
4534 being a hexadecimal digit or a string holding the name of the section.</p></td>
4541 <td class="name"><code>.type</code></td>
4547 <span class="param-type">string</span>
4557 <td class="description last"><p>The <code>.type</code> property contains the type of the corresponding uci
4565 <td class="name"><code>*</code></td>
4571 <span class="param-type">string</span>
4574 <span class="param-type">Array.<string></span>
4584 <td class="description last"><p>A section object may contain an arbitrary number of further properties
4585 representing the uci option enclosed in the section.</p>
4586 <p>All option property names will be in the form <code>[A-Za-z0-9_]+</code> and
4587 either contain a string value or an array of strings, in case the
4588 underlying option is an UCI list.</p></td>
4625 <div class="nameContainer">
4626 <h4 class="name" id="~sectionsFn">
4628 sectionsFn<span class="signature">(section, sid)</span>
4632 <div class="tag-source">
4633 <a href="uci.js.html">uci.js</a>, <a href="uci.js.html#line352">line 352</a>
4643 <div class="description">
4644 <p>The sections callback is invoked for each section found within
4645 the given configuration and receives the section object and its
4646 associated name as arguments.</p>
4657 <table class="params">
4668 <th class="last">Description</th>
4677 <td class="name"><code>section</code></td>
4683 <span class="param-type"><a href="LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject</a></span>
4691 <td class="description last">
4693 <p>The section object.</p></td>
4700 <td class="name"><code>sid</code></td>
4706 <span class="param-type">string</span>
4714 <td class="description last">
4716 <p>The name or ID of the section.</p></td>
4725 <dl class="details">
4780 Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Wed Feb 12 2020 11:56:59 GMT+0100 (Central European Standard Time)
4784 <script>prettyPrint();</script>
4785 <script src="scripts/jaguar.js"></script>