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":{}};
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#isIgnoredDevice"><a href=
"LuCI.Network.html#isIgnoredDevice">isIgnoredDevice
</a></li>
345 <li data-name=
"LuCI.Network#maskToPrefix"><a href=
"LuCI.Network.html#maskToPrefix">maskToPrefix
</a></li>
347 <li data-name=
"LuCI.Network#prefixToMask"><a href=
"LuCI.Network.html#prefixToMask">prefixToMask
</a></li>
349 <li data-name=
"LuCI.Network#registerErrorCode"><a href=
"LuCI.Network.html#registerErrorCode">registerErrorCode
</a></li>
351 <li data-name=
"LuCI.Network#registerPatternVirtual"><a href=
"LuCI.Network.html#registerPatternVirtual">registerPatternVirtual
</a></li>
353 <li data-name=
"LuCI.Network#registerProtocol"><a href=
"LuCI.Network.html#registerProtocol">registerProtocol
</a></li>
355 <li data-name=
"LuCI.Network#renameNetwork"><a href=
"LuCI.Network.html#renameNetwork">renameNetwork
</a></li>
358 <ul class=
"events itemMembers">
363 <li class=
"item" data-name=
"LuCI.Network.Device">
365 <a href=
"LuCI.Network.Device.html">LuCI.Network.Device
</a>
368 <ul class=
"members itemMembers">
371 <ul class=
"typedefs itemMembers">
374 <ul class=
"typedefs itemMembers">
377 <ul class=
"methods itemMembers">
379 <span class=
"subtitle">Methods
</span>
381 <li data-name=
"LuCI.Network.Device#getBridgeID"><a href=
"LuCI.Network.Device.html#getBridgeID">getBridgeID
</a></li>
383 <li data-name=
"LuCI.Network.Device#getBridgeSTP"><a href=
"LuCI.Network.Device.html#getBridgeSTP">getBridgeSTP
</a></li>
385 <li data-name=
"LuCI.Network.Device#getI18n"><a href=
"LuCI.Network.Device.html#getI18n">getI18n
</a></li>
387 <li data-name=
"LuCI.Network.Device#getIP6Addrs"><a href=
"LuCI.Network.Device.html#getIP6Addrs">getIP6Addrs
</a></li>
389 <li data-name=
"LuCI.Network.Device#getIPAddrs"><a href=
"LuCI.Network.Device.html#getIPAddrs">getIPAddrs
</a></li>
391 <li data-name=
"LuCI.Network.Device#getMAC"><a href=
"LuCI.Network.Device.html#getMAC">getMAC
</a></li>
393 <li data-name=
"LuCI.Network.Device#getMTU"><a href=
"LuCI.Network.Device.html#getMTU">getMTU
</a></li>
395 <li data-name=
"LuCI.Network.Device#getName"><a href=
"LuCI.Network.Device.html#getName">getName
</a></li>
397 <li data-name=
"LuCI.Network.Device#getNetwork"><a href=
"LuCI.Network.Device.html#getNetwork">getNetwork
</a></li>
399 <li data-name=
"LuCI.Network.Device#getNetworks"><a href=
"LuCI.Network.Device.html#getNetworks">getNetworks
</a></li>
401 <li data-name=
"LuCI.Network.Device#getPorts"><a href=
"LuCI.Network.Device.html#getPorts">getPorts
</a></li>
403 <li data-name=
"LuCI.Network.Device#getRXBytes"><a href=
"LuCI.Network.Device.html#getRXBytes">getRXBytes
</a></li>
405 <li data-name=
"LuCI.Network.Device#getRXPackets"><a href=
"LuCI.Network.Device.html#getRXPackets">getRXPackets
</a></li>
407 <li data-name=
"LuCI.Network.Device#getShortName"><a href=
"LuCI.Network.Device.html#getShortName">getShortName
</a></li>
409 <li data-name=
"LuCI.Network.Device#getTXBytes"><a href=
"LuCI.Network.Device.html#getTXBytes">getTXBytes
</a></li>
411 <li data-name=
"LuCI.Network.Device#getTXPackets"><a href=
"LuCI.Network.Device.html#getTXPackets">getTXPackets
</a></li>
413 <li data-name=
"LuCI.Network.Device#getType"><a href=
"LuCI.Network.Device.html#getType">getType
</a></li>
415 <li data-name=
"LuCI.Network.Device#getTypeI18n"><a href=
"LuCI.Network.Device.html#getTypeI18n">getTypeI18n
</a></li>
417 <li data-name=
"LuCI.Network.Device#getWifiNetwork"><a href=
"LuCI.Network.Device.html#getWifiNetwork">getWifiNetwork
</a></li>
419 <li data-name=
"LuCI.Network.Device#isBridge"><a href=
"LuCI.Network.Device.html#isBridge">isBridge
</a></li>
421 <li data-name=
"LuCI.Network.Device#isBridgePort"><a href=
"LuCI.Network.Device.html#isBridgePort">isBridgePort
</a></li>
423 <li data-name=
"LuCI.Network.Device#isUp"><a href=
"LuCI.Network.Device.html#isUp">isUp
</a></li>
426 <ul class=
"events itemMembers">
431 <li class=
"item" data-name=
"LuCI.Network.Hosts">
433 <a href=
"LuCI.Network.Hosts.html">LuCI.Network.Hosts
</a>
436 <ul class=
"members itemMembers">
439 <ul class=
"typedefs itemMembers">
442 <ul class=
"typedefs itemMembers">
445 <ul class=
"methods itemMembers">
447 <span class=
"subtitle">Methods
</span>
449 <li data-name=
"LuCI.Network.Hosts#getHostnameByIP6Addr"><a href=
"LuCI.Network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr
</a></li>
451 <li data-name=
"LuCI.Network.Hosts#getHostnameByIPAddr"><a href=
"LuCI.Network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr
</a></li>
453 <li data-name=
"LuCI.Network.Hosts#getHostnameByMACAddr"><a href=
"LuCI.Network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr
</a></li>
455 <li data-name=
"LuCI.Network.Hosts#getIP6AddrByMACAddr"><a href=
"LuCI.Network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr
</a></li>
457 <li data-name=
"LuCI.Network.Hosts#getIPAddrByMACAddr"><a href=
"LuCI.Network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr
</a></li>
459 <li data-name=
"LuCI.Network.Hosts#getMACAddrByIP6Addr"><a href=
"LuCI.Network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr
</a></li>
461 <li data-name=
"LuCI.Network.Hosts#getMACAddrByIPAddr"><a href=
"LuCI.Network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr
</a></li>
463 <li data-name=
"LuCI.Network.Hosts#getMACHints"><a href=
"LuCI.Network.Hosts.html#getMACHints">getMACHints
</a></li>
466 <ul class=
"events itemMembers">
471 <li class=
"item" data-name=
"LuCI.Network.Protocol">
473 <a href=
"LuCI.Network.Protocol.html">LuCI.Network.Protocol
</a>
476 <ul class=
"members itemMembers">
479 <ul class=
"typedefs itemMembers">
482 <ul class=
"typedefs itemMembers">
485 <ul class=
"methods itemMembers">
487 <span class=
"subtitle">Methods
</span>
489 <li data-name=
"LuCI.Network.Protocol#addDevice"><a href=
"LuCI.Network.Protocol.html#addDevice">addDevice
</a></li>
491 <li data-name=
"LuCI.Network.Protocol#containsDevice"><a href=
"LuCI.Network.Protocol.html#containsDevice">containsDevice
</a></li>
493 <li data-name=
"LuCI.Network.Protocol#deleteDevice"><a href=
"LuCI.Network.Protocol.html#deleteDevice">deleteDevice
</a></li>
495 <li data-name=
"LuCI.Network.Protocol#get"><a href=
"LuCI.Network.Protocol.html#get">get
</a></li>
497 <li data-name=
"LuCI.Network.Protocol#getDevice"><a href=
"LuCI.Network.Protocol.html#getDevice">getDevice
</a></li>
499 <li data-name=
"LuCI.Network.Protocol#getDevices"><a href=
"LuCI.Network.Protocol.html#getDevices">getDevices
</a></li>
501 <li data-name=
"LuCI.Network.Protocol#getDNS6Addrs"><a href=
"LuCI.Network.Protocol.html#getDNS6Addrs">getDNS6Addrs
</a></li>
503 <li data-name=
"LuCI.Network.Protocol#getDNSAddrs"><a href=
"LuCI.Network.Protocol.html#getDNSAddrs">getDNSAddrs
</a></li>
505 <li data-name=
"LuCI.Network.Protocol#getErrors"><a href=
"LuCI.Network.Protocol.html#getErrors">getErrors
</a></li>
507 <li data-name=
"LuCI.Network.Protocol#getExpiry"><a href=
"LuCI.Network.Protocol.html#getExpiry">getExpiry
</a></li>
509 <li data-name=
"LuCI.Network.Protocol#getGateway6Addr"><a href=
"LuCI.Network.Protocol.html#getGateway6Addr">getGateway6Addr
</a></li>
511 <li data-name=
"LuCI.Network.Protocol#getGatewayAddr"><a href=
"LuCI.Network.Protocol.html#getGatewayAddr">getGatewayAddr
</a></li>
513 <li data-name=
"LuCI.Network.Protocol#getI18n"><a href=
"LuCI.Network.Protocol.html#getI18n">getI18n
</a></li>
515 <li data-name=
"LuCI.Network.Protocol#getIfname"><a href=
"LuCI.Network.Protocol.html#getIfname">getIfname
</a></li>
517 <li data-name=
"LuCI.Network.Protocol#getIP6Addr"><a href=
"LuCI.Network.Protocol.html#getIP6Addr">getIP6Addr
</a></li>
519 <li data-name=
"LuCI.Network.Protocol#getIP6Addrs"><a href=
"LuCI.Network.Protocol.html#getIP6Addrs">getIP6Addrs
</a></li>
521 <li data-name=
"LuCI.Network.Protocol#getIP6Prefix"><a href=
"LuCI.Network.Protocol.html#getIP6Prefix">getIP6Prefix
</a></li>
523 <li data-name=
"LuCI.Network.Protocol#getIPAddr"><a href=
"LuCI.Network.Protocol.html#getIPAddr">getIPAddr
</a></li>
525 <li data-name=
"LuCI.Network.Protocol#getIPAddrs"><a href=
"LuCI.Network.Protocol.html#getIPAddrs">getIPAddrs
</a></li>
527 <li data-name=
"LuCI.Network.Protocol#getL2Device"><a href=
"LuCI.Network.Protocol.html#getL2Device">getL2Device
</a></li>
529 <li data-name=
"LuCI.Network.Protocol#getL3Device"><a href=
"LuCI.Network.Protocol.html#getL3Device">getL3Device
</a></li>
531 <li data-name=
"LuCI.Network.Protocol#getMetric"><a href=
"LuCI.Network.Protocol.html#getMetric">getMetric
</a></li>
533 <li data-name=
"LuCI.Network.Protocol#getName"><a href=
"LuCI.Network.Protocol.html#getName">getName
</a></li>
535 <li data-name=
"LuCI.Network.Protocol#getNetmask"><a href=
"LuCI.Network.Protocol.html#getNetmask">getNetmask
</a></li>
537 <li data-name=
"LuCI.Network.Protocol#getOpkgPackage"><a href=
"LuCI.Network.Protocol.html#getOpkgPackage">getOpkgPackage
</a></li>
539 <li data-name=
"LuCI.Network.Protocol#getProtocol"><a href=
"LuCI.Network.Protocol.html#getProtocol">getProtocol
</a></li>
541 <li data-name=
"LuCI.Network.Protocol#getType"><a href=
"LuCI.Network.Protocol.html#getType">getType
</a></li>
543 <li data-name=
"LuCI.Network.Protocol#getUptime"><a href=
"LuCI.Network.Protocol.html#getUptime">getUptime
</a></li>
545 <li data-name=
"LuCI.Network.Protocol#getZoneName"><a href=
"LuCI.Network.Protocol.html#getZoneName">getZoneName
</a></li>
547 <li data-name=
"LuCI.Network.Protocol#isAlias"><a href=
"LuCI.Network.Protocol.html#isAlias">isAlias
</a></li>
549 <li data-name=
"LuCI.Network.Protocol#isBridge"><a href=
"LuCI.Network.Protocol.html#isBridge">isBridge
</a></li>
551 <li data-name=
"LuCI.Network.Protocol#isDynamic"><a href=
"LuCI.Network.Protocol.html#isDynamic">isDynamic
</a></li>
553 <li data-name=
"LuCI.Network.Protocol#isEmpty"><a href=
"LuCI.Network.Protocol.html#isEmpty">isEmpty
</a></li>
555 <li data-name=
"LuCI.Network.Protocol#isFloating"><a href=
"LuCI.Network.Protocol.html#isFloating">isFloating
</a></li>
557 <li data-name=
"LuCI.Network.Protocol#isInstalled"><a href=
"LuCI.Network.Protocol.html#isInstalled">isInstalled
</a></li>
559 <li data-name=
"LuCI.Network.Protocol#isUp"><a href=
"LuCI.Network.Protocol.html#isUp">isUp
</a></li>
561 <li data-name=
"LuCI.Network.Protocol#isVirtual"><a href=
"LuCI.Network.Protocol.html#isVirtual">isVirtual
</a></li>
563 <li data-name=
"LuCI.Network.Protocol#set"><a href=
"LuCI.Network.Protocol.html#set">set
</a></li>
566 <ul class=
"events itemMembers">
571 <li class=
"item" data-name=
"LuCI.Network.WifiDevice">
573 <a href=
"LuCI.Network.WifiDevice.html">LuCI.Network.WifiDevice
</a>
576 <ul class=
"members itemMembers">
579 <ul class=
"typedefs itemMembers">
582 <ul class=
"typedefs itemMembers">
585 <ul class=
"methods itemMembers">
587 <span class=
"subtitle">Methods
</span>
589 <li data-name=
"LuCI.Network.WifiDevice#addWifiNetwork"><a href=
"LuCI.Network.WifiDevice.html#addWifiNetwork">addWifiNetwork
</a></li>
591 <li data-name=
"LuCI.Network.WifiDevice#deleteWifiNetwork"><a href=
"LuCI.Network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork
</a></li>
593 <li data-name=
"LuCI.Network.WifiDevice#get"><a href=
"LuCI.Network.WifiDevice.html#get">get
</a></li>
595 <li data-name=
"LuCI.Network.WifiDevice#getHTModes"><a href=
"LuCI.Network.WifiDevice.html#getHTModes">getHTModes
</a></li>
597 <li data-name=
"LuCI.Network.WifiDevice#getHWModes"><a href=
"LuCI.Network.WifiDevice.html#getHWModes">getHWModes
</a></li>
599 <li data-name=
"LuCI.Network.WifiDevice#getI18n"><a href=
"LuCI.Network.WifiDevice.html#getI18n">getI18n
</a></li>
601 <li data-name=
"LuCI.Network.WifiDevice#getName"><a href=
"LuCI.Network.WifiDevice.html#getName">getName
</a></li>
603 <li data-name=
"LuCI.Network.WifiDevice#getScanList"><a href=
"LuCI.Network.WifiDevice.html#getScanList">getScanList
</a></li>
605 <li data-name=
"LuCI.Network.WifiDevice#getWifiNetwork"><a href=
"LuCI.Network.WifiDevice.html#getWifiNetwork">getWifiNetwork
</a></li>
607 <li data-name=
"LuCI.Network.WifiDevice#getWifiNetworks"><a href=
"LuCI.Network.WifiDevice.html#getWifiNetworks">getWifiNetworks
</a></li>
609 <li data-name=
"LuCI.Network.WifiDevice#isDisabled"><a href=
"LuCI.Network.WifiDevice.html#isDisabled">isDisabled
</a></li>
611 <li data-name=
"LuCI.Network.WifiDevice#isUp"><a href=
"LuCI.Network.WifiDevice.html#isUp">isUp
</a></li>
613 <li data-name=
"LuCI.Network.WifiDevice#set"><a href=
"LuCI.Network.WifiDevice.html#set">set
</a></li>
616 <ul class=
"events itemMembers">
621 <li class=
"item" data-name=
"LuCI.Network.WifiNetwork">
623 <a href=
"LuCI.Network.WifiNetwork.html">LuCI.Network.WifiNetwork
</a>
626 <ul class=
"members itemMembers">
629 <ul class=
"typedefs itemMembers">
632 <ul class=
"typedefs itemMembers">
635 <ul class=
"methods itemMembers">
637 <span class=
"subtitle">Methods
</span>
639 <li data-name=
"LuCI.Network.WifiNetwork#get"><a href=
"LuCI.Network.WifiNetwork.html#get">get
</a></li>
641 <li data-name=
"LuCI.Network.WifiNetwork#getActiveBSSID"><a href=
"LuCI.Network.WifiNetwork.html#getActiveBSSID">getActiveBSSID
</a></li>
643 <li data-name=
"LuCI.Network.WifiNetwork#getActiveEncryption"><a href=
"LuCI.Network.WifiNetwork.html#getActiveEncryption">getActiveEncryption
</a></li>
645 <li data-name=
"LuCI.Network.WifiNetwork#getActiveMode"><a href=
"LuCI.Network.WifiNetwork.html#getActiveMode">getActiveMode
</a></li>
647 <li data-name=
"LuCI.Network.WifiNetwork#getActiveModeI18n"><a href=
"LuCI.Network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n
</a></li>
649 <li data-name=
"LuCI.Network.WifiNetwork#getActiveSSID"><a href=
"LuCI.Network.WifiNetwork.html#getActiveSSID">getActiveSSID
</a></li>
651 <li data-name=
"LuCI.Network.WifiNetwork#getAssocList"><a href=
"LuCI.Network.WifiNetwork.html#getAssocList">getAssocList
</a></li>
653 <li data-name=
"LuCI.Network.WifiNetwork#getBitRate"><a href=
"LuCI.Network.WifiNetwork.html#getBitRate">getBitRate
</a></li>
655 <li data-name=
"LuCI.Network.WifiNetwork#getBSSID"><a href=
"LuCI.Network.WifiNetwork.html#getBSSID">getBSSID
</a></li>
657 <li data-name=
"LuCI.Network.WifiNetwork#getChannel"><a href=
"LuCI.Network.WifiNetwork.html#getChannel">getChannel
</a></li>
659 <li data-name=
"LuCI.Network.WifiNetwork#getCountryCode"><a href=
"LuCI.Network.WifiNetwork.html#getCountryCode">getCountryCode
</a></li>
661 <li data-name=
"LuCI.Network.WifiNetwork#getDevice"><a href=
"LuCI.Network.WifiNetwork.html#getDevice">getDevice
</a></li>
663 <li data-name=
"LuCI.Network.WifiNetwork#getFrequency"><a href=
"LuCI.Network.WifiNetwork.html#getFrequency">getFrequency
</a></li>
665 <li data-name=
"LuCI.Network.WifiNetwork#getI18n"><a href=
"LuCI.Network.WifiNetwork.html#getI18n">getI18n
</a></li>
667 <li data-name=
"LuCI.Network.WifiNetwork#getID"><a href=
"LuCI.Network.WifiNetwork.html#getID">getID
</a></li>
669 <li data-name=
"LuCI.Network.WifiNetwork#getIfname"><a href=
"LuCI.Network.WifiNetwork.html#getIfname">getIfname
</a></li>
671 <li data-name=
"LuCI.Network.WifiNetwork#getMeshID"><a href=
"LuCI.Network.WifiNetwork.html#getMeshID">getMeshID
</a></li>
673 <li data-name=
"LuCI.Network.WifiNetwork#getMode"><a href=
"LuCI.Network.WifiNetwork.html#getMode">getMode
</a></li>
675 <li data-name=
"LuCI.Network.WifiNetwork#getName"><a href=
"LuCI.Network.WifiNetwork.html#getName">getName
</a></li>
677 <li data-name=
"LuCI.Network.WifiNetwork#getNetwork"><a href=
"LuCI.Network.WifiNetwork.html#getNetwork">getNetwork
</a></li>
679 <li data-name=
"LuCI.Network.WifiNetwork#getNetworkNames"><a href=
"LuCI.Network.WifiNetwork.html#getNetworkNames">getNetworkNames
</a></li>
681 <li data-name=
"LuCI.Network.WifiNetwork#getNetworks"><a href=
"LuCI.Network.WifiNetwork.html#getNetworks">getNetworks
</a></li>
683 <li data-name=
"LuCI.Network.WifiNetwork#getNoise"><a href=
"LuCI.Network.WifiNetwork.html#getNoise">getNoise
</a></li>
685 <li data-name=
"LuCI.Network.WifiNetwork#getShortName"><a href=
"LuCI.Network.WifiNetwork.html#getShortName">getShortName
</a></li>
687 <li data-name=
"LuCI.Network.WifiNetwork#getSignal"><a href=
"LuCI.Network.WifiNetwork.html#getSignal">getSignal
</a></li>
689 <li data-name=
"LuCI.Network.WifiNetwork#getSignalLevel"><a href=
"LuCI.Network.WifiNetwork.html#getSignalLevel">getSignalLevel
</a></li>
691 <li data-name=
"LuCI.Network.WifiNetwork#getSignalPercent"><a href=
"LuCI.Network.WifiNetwork.html#getSignalPercent">getSignalPercent
</a></li>
693 <li data-name=
"LuCI.Network.WifiNetwork#getSSID"><a href=
"LuCI.Network.WifiNetwork.html#getSSID">getSSID
</a></li>
695 <li data-name=
"LuCI.Network.WifiNetwork#getTXPower"><a href=
"LuCI.Network.WifiNetwork.html#getTXPower">getTXPower
</a></li>
697 <li data-name=
"LuCI.Network.WifiNetwork#getTXPowerOffset"><a href=
"LuCI.Network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset
</a></li>
699 <li data-name=
"LuCI.Network.WifiNetwork#getWifiDevice"><a href=
"LuCI.Network.WifiNetwork.html#getWifiDevice">getWifiDevice
</a></li>
701 <li data-name=
"LuCI.Network.WifiNetwork#getWifiDeviceName"><a href=
"LuCI.Network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName
</a></li>
703 <li data-name=
"LuCI.Network.WifiNetwork#isDisabled"><a href=
"LuCI.Network.WifiNetwork.html#isDisabled">isDisabled
</a></li>
705 <li data-name=
"LuCI.Network.WifiNetwork#isUp"><a href=
"LuCI.Network.WifiNetwork.html#isUp">isUp
</a></li>
707 <li data-name=
"LuCI.Network.WifiNetwork#set"><a href=
"LuCI.Network.WifiNetwork.html#set">set
</a></li>
710 <ul class=
"events itemMembers">
715 <li class=
"item" data-name=
"LuCI.Poll">
717 <a href=
"LuCI.Poll.html">LuCI.Poll
</a>
720 <ul class=
"members itemMembers">
723 <ul class=
"typedefs itemMembers">
726 <ul class=
"typedefs itemMembers">
729 <ul class=
"methods itemMembers">
731 <span class=
"subtitle">Methods
</span>
733 <li data-name=
"LuCI.Poll#active"><a href=
"LuCI.Poll.html#active">active
</a></li>
735 <li data-name=
"LuCI.Poll#add"><a href=
"LuCI.Poll.html#add">add
</a></li>
737 <li data-name=
"LuCI.Poll#remove"><a href=
"LuCI.Poll.html#remove">remove
</a></li>
739 <li data-name=
"LuCI.Poll#start"><a href=
"LuCI.Poll.html#start">start
</a></li>
741 <li data-name=
"LuCI.Poll#stop"><a href=
"LuCI.Poll.html#stop">stop
</a></li>
744 <ul class=
"events itemMembers">
749 <li class=
"item" data-name=
"LuCI.Request">
751 <a href=
"LuCI.Request.html">LuCI.Request
</a>
754 <ul class=
"members itemMembers">
757 <ul class=
"typedefs itemMembers">
759 <span class=
"subtitle">Typedefs
</span>
761 <li data-name=
"LuCI.Request.interceptorFn"><a href=
"LuCI.Request.html#.interceptorFn">interceptorFn
</a></li>
763 <li data-name=
"LuCI.Request.RequestOptions"><a href=
"LuCI.Request.html#.RequestOptions">RequestOptions
</a></li>
766 <ul class=
"typedefs itemMembers">
769 <ul class=
"methods itemMembers">
771 <span class=
"subtitle">Methods
</span>
773 <li data-name=
"LuCI.Request#addInterceptor"><a href=
"LuCI.Request.html#addInterceptor">addInterceptor
</a></li>
775 <li data-name=
"LuCI.Request#expandURL"><a href=
"LuCI.Request.html#expandURL">expandURL
</a></li>
777 <li data-name=
"LuCI.Request#get"><a href=
"LuCI.Request.html#get">get
</a></li>
779 <li data-name=
"LuCI.Request#post"><a href=
"LuCI.Request.html#post">post
</a></li>
781 <li data-name=
"LuCI.Request#removeInterceptor"><a href=
"LuCI.Request.html#removeInterceptor">removeInterceptor
</a></li>
783 <li data-name=
"LuCI.Request#request"><a href=
"LuCI.Request.html#request">request
</a></li>
786 <ul class=
"events itemMembers">
791 <li class=
"item" data-name=
"LuCI.Request.poll">
793 <a href=
"LuCI.Request.poll.html">LuCI.Request.poll
</a>
796 <ul class=
"members itemMembers">
799 <ul class=
"typedefs itemMembers">
801 <span class=
"subtitle">Typedefs
</span>
803 <li data-name=
"LuCI.Request.poll~callbackFn"><a href=
"LuCI.Request.poll.html#~callbackFn">callbackFn
</a></li>
806 <ul class=
"typedefs itemMembers">
809 <ul class=
"methods itemMembers">
811 <span class=
"subtitle">Methods
</span>
813 <li data-name=
"LuCI.Request.poll#active"><a href=
"LuCI.Request.poll.html#active">active
</a></li>
815 <li data-name=
"LuCI.Request.poll#add"><a href=
"LuCI.Request.poll.html#add">add
</a></li>
817 <li data-name=
"LuCI.Request.poll#remove"><a href=
"LuCI.Request.poll.html#remove">remove
</a></li>
819 <li data-name=
"LuCI.Request.poll#start"><a href=
"LuCI.Request.poll.html#start">start
</a></li>
821 <li data-name=
"LuCI.Request.poll#stop"><a href=
"LuCI.Request.poll.html#stop">stop
</a></li>
824 <ul class=
"events itemMembers">
829 <li class=
"item" data-name=
"LuCI.Response">
831 <a href=
"LuCI.Response.html">LuCI.Response
</a>
834 <ul class=
"members itemMembers">
836 <span class=
"subtitle">Members
</span>
838 <li data-name=
"LuCI.Response#duration"><a href=
"LuCI.Response.html#duration">duration
</a></li>
840 <li data-name=
"LuCI.Response#headers"><a href=
"LuCI.Response.html#headers">headers
</a></li>
842 <li data-name=
"LuCI.Response#ok"><a href=
"LuCI.Response.html#ok">ok
</a></li>
844 <li data-name=
"LuCI.Response#status"><a href=
"LuCI.Response.html#status">status
</a></li>
846 <li data-name=
"LuCI.Response#statusText"><a href=
"LuCI.Response.html#statusText">statusText
</a></li>
848 <li data-name=
"LuCI.Response#url"><a href=
"LuCI.Response.html#url">url
</a></li>
851 <ul class=
"typedefs itemMembers">
854 <ul class=
"typedefs itemMembers">
857 <ul class=
"methods itemMembers">
859 <span class=
"subtitle">Methods
</span>
861 <li data-name=
"LuCI.Response#clone"><a href=
"LuCI.Response.html#clone">clone
</a></li>
863 <li data-name=
"LuCI.Response#json"><a href=
"LuCI.Response.html#json">json
</a></li>
865 <li data-name=
"LuCI.Response#text"><a href=
"LuCI.Response.html#text">text
</a></li>
868 <ul class=
"events itemMembers">
873 <li class=
"item" data-name=
"LuCI.rpc">
875 <a href=
"LuCI.rpc.html">LuCI.rpc
</a>
878 <ul class=
"members itemMembers">
881 <ul class=
"typedefs itemMembers">
883 <span class=
"subtitle">Typedefs
</span>
885 <li data-name=
"LuCI.rpc.DeclareOptions"><a href=
"LuCI.rpc.html#.DeclareOptions">DeclareOptions
</a></li>
887 <li data-name=
"LuCI.rpc~filterFn"><a href=
"LuCI.rpc.html#~filterFn">filterFn
</a></li>
889 <li data-name=
"LuCI.rpc~interceptorFn"><a href=
"LuCI.rpc.html#~interceptorFn">interceptorFn
</a></li>
891 <li data-name=
"LuCI.rpc~invokeFn"><a href=
"LuCI.rpc.html#~invokeFn">invokeFn
</a></li>
894 <ul class=
"typedefs itemMembers">
897 <ul class=
"methods itemMembers">
899 <span class=
"subtitle">Methods
</span>
901 <li data-name=
"LuCI.rpc#addInterceptor"><a href=
"LuCI.rpc.html#addInterceptor">addInterceptor
</a></li>
903 <li data-name=
"LuCI.rpc#declare"><a href=
"LuCI.rpc.html#declare">declare
</a></li>
905 <li data-name=
"LuCI.rpc#getBaseURL"><a href=
"LuCI.rpc.html#getBaseURL">getBaseURL
</a></li>
907 <li data-name=
"LuCI.rpc#getSessionID"><a href=
"LuCI.rpc.html#getSessionID">getSessionID
</a></li>
909 <li data-name=
"LuCI.rpc#getStatusText"><a href=
"LuCI.rpc.html#getStatusText">getStatusText
</a></li>
911 <li data-name=
"LuCI.rpc#list"><a href=
"LuCI.rpc.html#list">list
</a></li>
913 <li data-name=
"LuCI.rpc#removeInterceptor"><a href=
"LuCI.rpc.html#removeInterceptor">removeInterceptor
</a></li>
915 <li data-name=
"LuCI.rpc#setBaseURL"><a href=
"LuCI.rpc.html#setBaseURL">setBaseURL
</a></li>
917 <li data-name=
"LuCI.rpc#setSessionID"><a href=
"LuCI.rpc.html#setSessionID">setSessionID
</a></li>
920 <ul class=
"events itemMembers">
925 <li class=
"item" data-name=
"LuCI.uci">
927 <a href=
"LuCI.uci.html">LuCI.uci
</a>
930 <ul class=
"members itemMembers">
933 <ul class=
"typedefs itemMembers">
935 <span class=
"subtitle">Typedefs
</span>
937 <li data-name=
"LuCI.uci.ChangeRecord"><a href=
"LuCI.uci.html#.ChangeRecord">ChangeRecord
</a></li>
939 <li data-name=
"LuCI.uci.SectionObject"><a href=
"LuCI.uci.html#.SectionObject">SectionObject
</a></li>
941 <li data-name=
"LuCI.uci~sectionsFn"><a href=
"LuCI.uci.html#~sectionsFn">sectionsFn
</a></li>
944 <ul class=
"typedefs itemMembers">
947 <ul class=
"methods itemMembers">
949 <span class=
"subtitle">Methods
</span>
951 <li data-name=
"LuCI.uci#add"><a href=
"LuCI.uci.html#add">add
</a></li>
953 <li data-name=
"LuCI.uci#apply"><a href=
"LuCI.uci.html#apply">apply
</a></li>
955 <li data-name=
"LuCI.uci#changes"><a href=
"LuCI.uci.html#changes">changes
</a></li>
957 <li data-name=
"LuCI.uci#createSID"><a href=
"LuCI.uci.html#createSID">createSID
</a></li>
959 <li data-name=
"LuCI.uci#get"><a href=
"LuCI.uci.html#get">get
</a></li>
961 <li data-name=
"LuCI.uci#get_first"><a href=
"LuCI.uci.html#get_first">get_first
</a></li>
963 <li data-name=
"LuCI.uci#load"><a href=
"LuCI.uci.html#load">load
</a></li>
965 <li data-name=
"LuCI.uci#move"><a href=
"LuCI.uci.html#move">move
</a></li>
967 <li data-name=
"LuCI.uci#remove"><a href=
"LuCI.uci.html#remove">remove
</a></li>
969 <li data-name=
"LuCI.uci#resolveSID"><a href=
"LuCI.uci.html#resolveSID">resolveSID
</a></li>
971 <li data-name=
"LuCI.uci#save"><a href=
"LuCI.uci.html#save">save
</a></li>
973 <li data-name=
"LuCI.uci#sections"><a href=
"LuCI.uci.html#sections">sections
</a></li>
975 <li data-name=
"LuCI.uci#set"><a href=
"LuCI.uci.html#set">set
</a></li>
977 <li data-name=
"LuCI.uci#set_first"><a href=
"LuCI.uci.html#set_first">set_first
</a></li>
979 <li data-name=
"LuCI.uci#unload"><a href=
"LuCI.uci.html#unload">unload
</a></li>
981 <li data-name=
"LuCI.uci#unset"><a href=
"LuCI.uci.html#unset">unset
</a></li>
983 <li data-name=
"LuCI.uci#unset_first"><a href=
"LuCI.uci.html#unset_first">unset_first
</a></li>
986 <ul class=
"events itemMembers">
991 <li class=
"item" data-name=
"LuCI.view">
993 <a href=
"LuCI.view.html">LuCI.view
</a>
996 <ul class=
"members itemMembers">
999 <ul class=
"typedefs itemMembers">
1002 <ul class=
"typedefs itemMembers">
1005 <ul class=
"methods itemMembers">
1007 <span class=
"subtitle">Methods
</span>
1009 <li data-name=
"LuCI.view#addFooter"><a href=
"LuCI.view.html#addFooter">addFooter
</a></li>
1011 <li data-name=
"LuCI.view#handleReset"><a href=
"LuCI.view.html#handleReset">handleReset
</a></li>
1013 <li data-name=
"LuCI.view#handleSave"><a href=
"LuCI.view.html#handleSave">handleSave
</a></li>
1015 <li data-name=
"LuCI.view#handleSaveApply"><a href=
"LuCI.view.html#handleSaveApply">handleSaveApply
</a></li>
1017 <li data-name=
"LuCI.view#load"><a href=
"LuCI.view.html#load">load
</a></li>
1019 <li data-name=
"LuCI.view#render"><a href=
"LuCI.view.html#render">render
</a></li>
1022 <ul class=
"events itemMembers">
1027 <li class=
"item" data-name=
"LuCI.XHR">
1028 <span class=
"title">
1029 <a href=
"LuCI.XHR.html">LuCI.XHR
</a>
1032 <ul class=
"members itemMembers">
1035 <ul class=
"typedefs itemMembers">
1038 <ul class=
"typedefs itemMembers">
1041 <ul class=
"methods itemMembers">
1043 <span class=
"subtitle">Methods
</span>
1045 <li data-name=
"LuCI.XHR#abort"><a href=
"LuCI.XHR.html#abort">abort
</a></li>
1047 <li data-name=
"LuCI.XHR#busy"><a href=
"LuCI.XHR.html#busy">busy
</a></li>
1049 <li data-name=
"LuCI.XHR#cancel"><a href=
"LuCI.XHR.html#cancel">cancel
</a></li>
1051 <li data-name=
"LuCI.XHR#get"><a href=
"LuCI.XHR.html#get">get
</a></li>
1053 <li data-name=
"LuCI.XHR#post"><a href=
"LuCI.XHR.html#post">post
</a></li>
1055 <li data-name=
"LuCI.XHR#send_form"><a href=
"LuCI.XHR.html#send_form">send_form
</a></li>
1058 <ul class=
"events itemMembers">
1066 <h1 class=
"page-title" data-filename=
"LuCI.uci.html">Class: uci
</h1>
1075 <span class=
"ancestors"><a href=
"LuCI.html">LuCI
</a>.
</span>
1080 <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
1081 remote UCI
<code>ubus
</code> procedures and implements a local caching and data
1082 manipulation layer on top to allow for synchroneous operations on
1083 UCI configuration data.
</p></div>
1088 <div class=
"container-overview">
1094 <div class=
"nameContainer">
1095 <h4 class=
"name" id=
"uci">
1097 new LuCI.uci
<span class=
"signature">()
</span>
1101 <div class=
"tag-source">
1120 <dl class=
"details">
1174 <h3 class=
"subsection-title">Methods
</h3>
1179 <div class=
"nameContainer">
1180 <h4 class=
"name" id=
"add">
1182 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>
1186 <div class=
"tag-source">
1197 <div class=
"description">
1198 <p>Adds a new section of the given type to the given configuration,
1199 optionally named according to the given name.
</p>
1210 <table class=
"params">
1221 <th class=
"last">Description
</th>
1230 <td class=
"name"><code>config
</code></td>
1236 <span class=
"param-type">string
</span>
1244 <td class=
"description last">
1251 <p>The name of the configuration to add the section to.
</p></td>
1258 <td class=
"name"><code>type
</code></td>
1264 <span class=
"param-type">string
</span>
1272 <td class=
"description last">
1279 <p>The type of the section to add.
</p></td>
1286 <td class=
"name"><code>name
</code></td>
1292 <span class=
"param-type">string
</span>
1300 <td class=
"description last">
1303 <span class=
"optional">optional
</span>
1309 <p>The name of the section to add. If the name is omitted, an anonymous
1310 section will be added instead.
</p></td>
1319 <dl class=
"details">
1357 <table class=
"params">
1362 <th class=
"last">Description
</th>
1375 <td class=
"description last">Returns the section ID of the newly added section which is equivalent
1376 to the given name for non-anonymous sections.
</td>
1390 <div class=
"nameContainer">
1391 <h4 class=
"name" id=
"apply">
1393 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>
1397 <div class=
"tag-source">
1408 <div class=
"description">
1409 <p>Instructs the remote
<code>ubus
</code> UCI api to commit all saved changes with
1410 rollback protection and attempts to confirm the pending commit
1411 operation to cancel the rollback timer.
</p>
1422 <table class=
"params">
1435 <th class=
"last">Description
</th>
1444 <td class=
"name"><code>timeout
</code></td>
1450 <span class=
"param-type">number
</span>
1457 <td class=
"default">
1464 <td class=
"description last">
1467 <span class=
"optional">optional
</span>
1473 <p>Override the confirmation timeout after which a rollback is triggered.
</p></td>
1482 <dl class=
"details">
1520 <table class=
"params">
1525 <th class=
"last">Description
</th>
1538 <td class=
"description last">Returns a promise resolving/rejecting with the
<code>ubus
</code> RPC status code.
</td>
1552 <div class=
"nameContainer">
1553 <h4 class=
"name" id=
"changes">
1555 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>
1559 <div class=
"tag-source">
1570 <div class=
"description">
1571 <p>Fetches uncommitted UCI changes from the remote
<code>ubus
</code> RPC api.
</p>
1582 <dl class=
"details">
1620 <table class=
"params">
1625 <th class=
"last">Description
</th>
1634 Promise.
<Object.
<string, Array.
<<a href=
"LuCI.uci.html#.ChangeRecord">LuCI.uci.ChangeRecord
</a>>>>
1638 <td class=
"description last">Returns a promise resolving to an object containing the configuration
1639 names as keys and arrays of related change records as values.
</td>
1653 <div class=
"nameContainer">
1654 <h4 class=
"name" id=
"createSID">
1656 createSID
<span class=
"signature">(config)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{string}
</span>
1660 <div class=
"tag-source">
1671 <div class=
"description">
1672 <p>Generates a new, unique section ID for the given configuration.
</p>
1673 <p>Note that the generated ID is temporary, it will get replaced by an
1674 identifier in the form
<code>cfgXXXXXX
</code> once the configuration is saved
1675 by the remote
<code>ubus
</code> UCI api.
</p>
1686 <table class=
"params">
1697 <th class=
"last">Description
</th>
1706 <td class=
"name"><code>config
</code></td>
1712 <span class=
"param-type">string
</span>
1720 <td class=
"description last">
1722 <p>The configuration to generate the new section ID for.
</p></td>
1731 <dl class=
"details">
1769 <table class=
"params">
1774 <th class=
"last">Description
</th>
1787 <td class=
"description last">A newly generated, unique section ID in the form
<code>newXXXXXX
</code>
1788 where
<code>X
</code> denotes a hexadecimal digit.
</td>
1802 <div class=
"nameContainer">
1803 <h4 class=
"name" id=
"get">
1805 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>
1809 <div class=
"tag-source">
1820 <div class=
"description">
1821 <p>Gets the value of the given option within the specified section
1822 of the given configuration or the entire section object if the
1823 option name is omitted.
</p>
1834 <table class=
"params">
1845 <th class=
"last">Description
</th>
1854 <td class=
"name"><code>config
</code></td>
1860 <span class=
"param-type">string
</span>
1868 <td class=
"description last">
1875 <p>The name of the configuration to read the value from.
</p></td>
1882 <td class=
"name"><code>sid
</code></td>
1888 <span class=
"param-type">string
</span>
1896 <td class=
"description last">
1903 <p>The name or ID of the section to read.
</p></td>
1910 <td class=
"name"><code>option
</code></td>
1916 <span class=
"param-type">string
</span>
1924 <td class=
"description last">
1927 <span class=
"optional">optional
</span>
1933 <p>The option name to read the value from. If the option name is
1934 omitted or
<code>null
</code>, the entire section is returned instead.
</p></td>
1943 <dl class=
"details">
1981 <table class=
"params">
1986 <th class=
"last">Description
</th>
2004 <a href=
"LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject
</a>
2008 <td class=
"description last"><ul>
2009 <li>Returns a string containing the option value in case of a
2010 plain UCI option.
</li>
2011 <li>Returns an array of strings containing the option values in
2012 case of
<code>option
</code> pointing to an UCI list.
</li>
2013 <li>Returns a
<a href=
"LuCI.uci.html#.SectionObject"><code>section object
</code></a> if
2014 the
<code>option
</code> argument has been omitted or is
<code>null
</code>.
</li>
2015 <li>Returns
<code>null
</code> if the config, section or option has not been
2016 found or if the corresponding configuration is not loaded.
</li>
2031 <div class=
"nameContainer">
2032 <h4 class=
"name" id=
"get_first">
2034 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>
2038 <div class=
"tag-source">
2049 <div class=
"description">
2050 <p>Gets the value of the given option or the entire section object of
2051 the first found section of the specified type or the first found
2052 section of the entire configuration if no type is specfied.
</p>
2063 <table class=
"params">
2074 <th class=
"last">Description
</th>
2083 <td class=
"name"><code>config
</code></td>
2089 <span class=
"param-type">string
</span>
2097 <td class=
"description last">
2104 <p>The name of the configuration to read the value from.
</p></td>
2111 <td class=
"name"><code>type
</code></td>
2117 <span class=
"param-type">string
</span>
2125 <td class=
"description last">
2128 <span class=
"optional">optional
</span>
2134 <p>The type of the first section to find. If it is
<code>null
</code>, the first
2135 section of the entire config is read, otherwise the first section
2136 matching the given type.
</p></td>
2143 <td class=
"name"><code>option
</code></td>
2149 <span class=
"param-type">string
</span>
2157 <td class=
"description last">
2160 <span class=
"optional">optional
</span>
2166 <p>The option name to read the value from. If the option name is
2167 omitted or
<code>null
</code>, the entire section is returned instead.
</p></td>
2176 <dl class=
"details">
2214 <table class=
"params">
2219 <th class=
"last">Description
</th>
2237 <a href=
"LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject
</a>
2241 <td class=
"description last"><ul>
2242 <li>Returns a string containing the option value in case of a
2243 plain UCI option.
</li>
2244 <li>Returns an array of strings containing the option values in
2245 case of
<code>option
</code> pointing to an UCI list.
</li>
2246 <li>Returns a
<a href=
"LuCI.uci.html#.SectionObject"><code>section object
</code></a> if
2247 the
<code>option
</code> argument has been omitted or is
<code>null
</code>.
</li>
2248 <li>Returns
<code>null
</code> if the config, section or option has not been
2249 found or if the corresponding configuration is not loaded.
</li>
2264 <div class=
"nameContainer">
2265 <h4 class=
"name" id=
"load">
2267 load
<span class=
"signature">(config)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{Promise.
<Array.
<string
>>}
</span>
2271 <div class=
"tag-source">
2282 <div class=
"description">
2283 <p>Loads the given UCI configurations from the remote
<code>ubus
</code> api.
</p>
2284 <p>Loaded configurations are cached and only loaded once. Subsequent
2285 load operations of the same configurations will return the cached
2287 <p>To force reloading a configuration, it has to be unloaded with
2288 <a href=
"LuCI.uci.html#unload"><code>uci.unload()
</code></a> first.
</p>
2299 <table class=
"params">
2310 <th class=
"last">Description
</th>
2319 <td class=
"name"><code>config
</code></td>
2325 <span class=
"param-type">string
</span>
2328 <span class=
"param-type">Array.
<string
></span>
2336 <td class=
"description last">
2338 <p>The name of the configuration or an array of configuration
2339 names to load.
</p></td>
2348 <dl class=
"details">
2386 <table class=
"params">
2391 <th class=
"last">Description
</th>
2400 Promise.
<Array.
<string
>>
2404 <td class=
"description last">Returns a promise resolving to the names of the configurations
2405 that have been successfully loaded.
</td>
2419 <div class=
"nameContainer">
2420 <h4 class=
"name" id=
"move">
2422 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>
2426 <div class=
"tag-source">
2437 <div class=
"description">
2438 <p>Move the first specified section within the given configuration
2439 before or after the second specified section.
</p>
2450 <table class=
"params">
2463 <th class=
"last">Description
</th>
2472 <td class=
"name"><code>config
</code></td>
2478 <span class=
"param-type">string
</span>
2485 <td class=
"default">
2490 <td class=
"description last">
2497 <p>The configuration to move the section within.
</p></td>
2504 <td class=
"name"><code>sid1
</code></td>
2510 <span class=
"param-type">string
</span>
2517 <td class=
"default">
2522 <td class=
"description last">
2529 <p>The ID of the section to move within the configuration.
</p></td>
2536 <td class=
"name"><code>sid2
</code></td>
2542 <span class=
"param-type">string
</span>
2549 <td class=
"default">
2554 <td class=
"description last">
2557 <span class=
"optional">optional
</span>
2563 <p>The ID of the target section for the move operation. If the
2564 <code>after
</code> argument is
<code>false
</code> or not specified, the section named by
2565 <code>sid1
</code> will be moved before this target section, if the
<code>after
</code>
2566 argument is
<code>true
</code>, the
<code>sid1
</code> section will be moved after this
2568 <p>When the
<code>sid2
</code> argument is
<code>null
</code>, the section specified by
<code>sid1
</code>
2569 is moved to the end of the configuration.
</p></td>
2576 <td class=
"name"><code>after
</code></td>
2582 <span class=
"param-type">boolean
</span>
2589 <td class=
"default">
2596 <td class=
"description last">
2599 <span class=
"optional">optional
</span>
2605 <p>When
<code>true
</code>, the section
<code>sid1
</code> is moved after the section
<code>sid2
</code>,
2606 when
<code>false
</code>, the section
<code>sid1
</code> is moved before
<code>sid2
</code>.
</p>
2607 <p>If
<code>sid2
</code> is null, then this parameter has no effect and the section
2608 <code>sid1
</code> is moved to the end of the configuration instead.
</p></td>
2617 <dl class=
"details">
2655 <table class=
"params">
2660 <th class=
"last">Description
</th>
2673 <td class=
"description last">Returns
<code>true
</code> when the section was successfully moved, or
<code>false
</code>
2674 when either the section specified by
<code>sid1
</code> or by
<code>sid2
</code> is not found.
</td>
2688 <div class=
"nameContainer">
2689 <h4 class=
"name" id=
"remove">
2691 remove
<span class=
"signature">(config, sid)
</span>
2695 <div class=
"tag-source">
2706 <div class=
"description">
2707 <p>Removes the section with the given ID from the given configuration.
</p>
2718 <table class=
"params">
2729 <th class=
"last">Description
</th>
2738 <td class=
"name"><code>config
</code></td>
2744 <span class=
"param-type">string
</span>
2752 <td class=
"description last">
2754 <p>The name of the configuration to remove the section from.
</p></td>
2761 <td class=
"name"><code>sid
</code></td>
2767 <span class=
"param-type">string
</span>
2775 <td class=
"description last">
2777 <p>The ID of the section to remove.
</p></td>
2786 <dl class=
"details">
2827 <div class=
"nameContainer">
2828 <h4 class=
"name" id=
"resolveSID">
2830 resolveSID
<span class=
"signature">(config, sid)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{string|null}
</span>
2834 <div class=
"tag-source">
2845 <div class=
"description">
2846 <p>Resolves a given section ID in extended notation to the internal
2847 section ID value.
</p>
2858 <table class=
"params">
2869 <th class=
"last">Description
</th>
2878 <td class=
"name"><code>config
</code></td>
2884 <span class=
"param-type">string
</span>
2892 <td class=
"description last">
2894 <p>The configuration to resolve the section ID for.
</p></td>
2901 <td class=
"name"><code>sid
</code></td>
2907 <span class=
"param-type">string
</span>
2915 <td class=
"description last">
2917 <p>The section ID to resolve. If the ID is in the form
<code>@typename[#]
</code>,
2918 it will get resolved to an internal anonymous ID in the forms
2919 <code>cfgXXXXXX
</code>/
<code>newXXXXXX
</code> or to the name of a section in case it points
2920 to a named section. When the given ID is not in extended notation,
2921 it will be returned as-is.
</p></td>
2930 <dl class=
"details">
2968 <table class=
"params">
2973 <th class=
"last">Description
</th>
2989 <td class=
"description last">Returns the resolved section ID or the original given ID if it was
2990 not in extended notation. Returns
<code>null
</code> when an extended ID could
2991 not be resolved to existing section ID.
</td>
3005 <div class=
"nameContainer">
3006 <h4 class=
"name" id=
"save">
3008 save
<span class=
"signature">()
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{Array.
<string
>}
</span>
3012 <div class=
"tag-source">
3023 <div class=
"description">
3024 <p>Submits all local configuration changes to the remove
<code>ubus
</code> api,
3025 adds, removes and reorders remote sections as needed and reloads
3026 all loaded configurations to resynchronize the local state with
3027 the remote configuration values.
</p>
3038 <dl class=
"details">
3076 <table class=
"params">
3081 <th class=
"last">Description
</th>
3094 <td class=
"description last">Returns a promise resolving to an array of configuration names which
3095 have been reloaded by the save operation.
</td>
3109 <div class=
"nameContainer">
3110 <h4 class=
"name" id=
"sections">
3112 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>
3116 <div class=
"tag-source">
3127 <div class=
"description">
3128 <p>Enumerates the sections of the given configuration, optionally
3129 filtered by type.
</p>
3140 <table class=
"params">
3151 <th class=
"last">Description
</th>
3160 <td class=
"name"><code>config
</code></td>
3166 <span class=
"param-type">string
</span>
3174 <td class=
"description last">
3181 <p>The name of the configuration to enumerate the sections for.
</p></td>
3188 <td class=
"name"><code>type
</code></td>
3194 <span class=
"param-type">string
</span>
3202 <td class=
"description last">
3205 <span class=
"optional">optional
</span>
3211 <p>Enumerate only sections of the given type. If omitted, enumerate
3212 all sections.
</p></td>
3219 <td class=
"name"><code>cb
</code></td>
3225 <span class=
"param-type"><a href=
"LuCI.uci.html#~sectionsFn">LuCI.uci~sectionsFn
</a></span>
3233 <td class=
"description last">
3236 <span class=
"optional">optional
</span>
3242 <p>An optional callback to invoke for each enumerated section.
</p></td>
3251 <dl class=
"details">
3289 <table class=
"params">
3294 <th class=
"last">Description
</th>
3303 Array.
<<a href=
"LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject
</a>>
3307 <td class=
"description last">Returns a sorted array of the section objects within the given
3308 configuration, filtered by type of a type has been specified.
</td>
3322 <div class=
"nameContainer">
3323 <h4 class=
"name" id=
"set">
3325 set
<span class=
"signature">(config, sid, option, value)
</span>
3329 <div class=
"tag-source">
3340 <div class=
"description">
3341 <p>Sets the value of the given option within the specified section
3342 of the given configuration.
</p>
3343 <p>If either config, section or option is null, or if
<code>option
</code> begins
3344 with a dot, the function will do nothing.
</p>
3355 <table class=
"params">
3366 <th class=
"last">Description
</th>
3375 <td class=
"name"><code>config
</code></td>
3381 <span class=
"param-type">string
</span>
3389 <td class=
"description last">
3391 <p>The name of the configuration to set the option value in.
</p></td>
3398 <td class=
"name"><code>sid
</code></td>
3404 <span class=
"param-type">string
</span>
3412 <td class=
"description last">
3414 <p>The name or ID of the section to set the option value in.
</p></td>
3421 <td class=
"name"><code>option
</code></td>
3427 <span class=
"param-type">string
</span>
3435 <td class=
"description last">
3437 <p>The option name to set the value for.
</p></td>
3444 <td class=
"name"><code>value
</code></td>
3450 <span class=
"param-type">null
</span>
3453 <span class=
"param-type">string
</span>
3456 <span class=
"param-type">Array.
<string
></span>
3464 <td class=
"description last">
3466 <p>The option value to set. If the value is
<code>null
</code> or an empty string,
3467 the option will be removed, otherwise it will be set or overwritten
3468 with the given value.
</p></td>
3477 <dl class=
"details">
3518 <div class=
"nameContainer">
3519 <h4 class=
"name" id=
"set_first">
3521 set_first
<span class=
"signature">(config,
<span class=
"optional">type
</span>, option, value)
</span>
3525 <div class=
"tag-source">
3536 <div class=
"description">
3537 <p>Sets the value of the given option within the first found section
3538 of the given configuration matching the specified type or within
3539 the first section of the entire config when no type has is specified.
</p>
3540 <p>If either config, type or option is null, or if
<code>option
</code> begins
3541 with a dot, the function will do nothing.
</p>
3552 <table class=
"params">
3563 <th class=
"last">Description
</th>
3572 <td class=
"name"><code>config
</code></td>
3578 <span class=
"param-type">string
</span>
3586 <td class=
"description last">
3593 <p>The name of the configuration to set the option value in.
</p></td>
3600 <td class=
"name"><code>type
</code></td>
3606 <span class=
"param-type">string
</span>
3614 <td class=
"description last">
3617 <span class=
"optional">optional
</span>
3623 <p>The type of the first section to find. If it is
<code>null
</code>, the first
3624 section of the entire config is written to, otherwise the first
3625 section matching the given type is used.
</p></td>
3632 <td class=
"name"><code>option
</code></td>
3638 <span class=
"param-type">string
</span>
3646 <td class=
"description last">
3653 <p>The option name to set the value for.
</p></td>
3660 <td class=
"name"><code>value
</code></td>
3666 <span class=
"param-type">null
</span>
3669 <span class=
"param-type">string
</span>
3672 <span class=
"param-type">Array.
<string
></span>
3680 <td class=
"description last">
3687 <p>The option value to set. If the value is
<code>null
</code> or an empty string,
3688 the option will be removed, otherwise it will be set or overwritten
3689 with the given value.
</p></td>
3698 <dl class=
"details">
3739 <div class=
"nameContainer">
3740 <h4 class=
"name" id=
"unload">
3742 unload
<span class=
"signature">(config)
</span>
3746 <div class=
"tag-source">
3757 <div class=
"description">
3758 <p>Unloads the given UCI configurations from the local cache.
</p>
3769 <table class=
"params">
3780 <th class=
"last">Description
</th>
3789 <td class=
"name"><code>config
</code></td>
3795 <span class=
"param-type">string
</span>
3798 <span class=
"param-type">Array.
<string
></span>
3806 <td class=
"description last">
3808 <p>The name of the configuration or an array of configuration
3809 names to unload.
</p></td>
3818 <dl class=
"details">
3859 <div class=
"nameContainer">
3860 <h4 class=
"name" id=
"unset">
3862 unset
<span class=
"signature">(config, sid, option)
</span>
3866 <div class=
"tag-source">
3877 <div class=
"description">
3878 <p>Remove the given option within the specified section of the given
3880 <p>This function is a convenience wrapper around
3881 <code>uci.set(config, section, option, null)
</code>.
</p>
3892 <table class=
"params">
3903 <th class=
"last">Description
</th>
3912 <td class=
"name"><code>config
</code></td>
3918 <span class=
"param-type">string
</span>
3926 <td class=
"description last">
3928 <p>The name of the configuration to remove the option from.
</p></td>
3935 <td class=
"name"><code>sid
</code></td>
3941 <span class=
"param-type">string
</span>
3949 <td class=
"description last">
3951 <p>The name or ID of the section to remove the option from.
</p></td>
3958 <td class=
"name"><code>option
</code></td>
3964 <span class=
"param-type">string
</span>
3972 <td class=
"description last">
3974 <p>The name of the option to remove.
</p></td>
3983 <dl class=
"details">
4024 <div class=
"nameContainer">
4025 <h4 class=
"name" id=
"unset_first">
4027 unset_first
<span class=
"signature">(config,
<span class=
"optional">type
</span>, option)
</span>
4031 <div class=
"tag-source">
4042 <div class=
"description">
4043 <p>Removes the given option within the first found section of the given
4044 configuration matching the specified type or within the first section
4045 of the entire config when no type has is specified.
</p>
4046 <p>This function is a convenience wrapper around
4047 <code>uci.set_first(config, type, option, null)
</code>.
</p>
4058 <table class=
"params">
4069 <th class=
"last">Description
</th>
4078 <td class=
"name"><code>config
</code></td>
4084 <span class=
"param-type">string
</span>
4092 <td class=
"description last">
4099 <p>The name of the configuration to set the option value in.
</p></td>
4106 <td class=
"name"><code>type
</code></td>
4112 <span class=
"param-type">string
</span>
4120 <td class=
"description last">
4123 <span class=
"optional">optional
</span>
4129 <p>The type of the first section to find. If it is
<code>null
</code>, the first
4130 section of the entire config is written to, otherwise the first
4131 section matching the given type is used.
</p></td>
4138 <td class=
"name"><code>option
</code></td>
4144 <span class=
"param-type">string
</span>
4152 <td class=
"description last">
4159 <p>The option name to set the value for.
</p></td>
4168 <dl class=
"details">
4210 <h3 class=
"subsection-title">Type Definitions
</h3>
4215 <div class=
"nameContainer">
4216 <h4 class=
"name" id=
".ChangeRecord">LuCI.uci.ChangeRecord
<span class=
"type-signature type array.<string>">Array.
<string
></span> </h4>
4223 <div class=
"description">
4224 <p>An UCI change record is a plain array containing the change operation
4225 name as first element, the affected section ID as second argument
4226 and an optional third and fourth argument whose meanings depend on
4232 <dl class=
"details">
4235 <h5 class=
"subsection-title">Properties:
</h5>
4239 <table class=
"props">
4252 <th class=
"last">Description
</th>
4261 <td class=
"name"><code>0</code></td>
4267 <span class=
"param-type">string
</span>
4277 <td class=
"description last"><p>The operation name - may be one of
<code>add
</code>,
<code>set
</code>,
<code>remove
</code>,
<code>order
</code>,
4278 <code>list-add
</code>,
<code>list-del
</code> or
<code>rename
</code>.
</p></td>
4285 <td class=
"name"><code>1</code></td>
4291 <span class=
"param-type">string
</span>
4301 <td class=
"description last"><p>The section ID targeted by the operation.
</p></td>
4308 <td class=
"name"><code>2</code></td>
4314 <span class=
"param-type">string
</span>
4324 <td class=
"description last"><p>The meaning of the third element depends on the operation.
</p>
4326 <li>For
<code>add
</code> it is type of the section that has been added
</li>
4327 <li>For
<code>set
</code> it either is the option name if a fourth element exists,
4328 or the type of a named section which has been added when the change
4329 entry only contains three elements.
</li>
4330 <li>For
<code>remove
</code> it contains the name of the option that has been
4332 <li>For
<code>order
</code> it specifies the new sort index of the section.
</li>
4333 <li>For
<code>list-add
</code> it contains the name of the list option a new value
4334 has been added to.
</li>
4335 <li>For
<code>list-del
</code> it contains the name of the list option a value has
4336 been removed from.
</li>
4337 <li>For
<code>rename
</code> it contains the name of the option that has been
4338 renamed if a fourth element exists, else it contains the new name
4339 a section has been renamed to if the change entry only contains
4340 three elements.
</li>
4348 <td class=
"name"><code>4</code></td>
4354 <span class=
"param-type">string
</span>
4364 <td class=
"description last"><p>The meaning of the fourth element depends on the operation.
</p>
4366 <li>For
<code>set
</code> it is the value an option has been set to.
</li>
4367 <li>For
<code>list-add
</code> it is the new value that has been added to a
4369 <li>For
<code>rename
</code> it is the new name of an option that has been
4408 <div class=
"nameContainer">
4409 <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>
4416 <div class=
"description">
4417 <p>A section object represents the options and their corresponding values
4418 enclosed within a configuration section, as well as some additional
4419 meta data such as sort indexes and internal ID.
</p>
4420 <p>Any internal metadata fields are prefixed with a dot which is isn't
4421 an allowed character for normal option names.
</p>
4426 <dl class=
"details">
4429 <h5 class=
"subsection-title">Properties:
</h5>
4433 <table class=
"props">
4446 <th class=
"last">Description
</th>
4455 <td class=
"name"><code>.anonymous
</code></td>
4461 <span class=
"param-type">boolean
</span>
4471 <td class=
"description last"><p>The
<code>.anonymous
</code> property specifies whether the configuration is
4472 anonymous (
<code>true
</code>) or named (
<code>false
</code>).
</p></td>
4479 <td class=
"name"><code>.index
</code></td>
4485 <span class=
"param-type">number
</span>
4495 <td class=
"description last"><p>The
<code>.index
</code> property specifes the sort order of the section.
</p></td>
4502 <td class=
"name"><code>.name
</code></td>
4508 <span class=
"param-type">string
</span>
4518 <td class=
"description last"><p>The
<code>.name
</code> property holds the name of the section object. It may be
4519 either an anonymous ID in the form
<code>cfgXXXXXX
</code> or
<code>newXXXXXX
</code> with
<code>X
</code>
4520 being a hexadecimal digit or a string holding the name of the section.
</p></td>
4527 <td class=
"name"><code>.type
</code></td>
4533 <span class=
"param-type">string
</span>
4543 <td class=
"description last"><p>The
<code>.type
</code> property contains the type of the corresponding uci
4551 <td class=
"name"><code>*
</code></td>
4557 <span class=
"param-type">string
</span>
4560 <span class=
"param-type">Array.
<string
></span>
4570 <td class=
"description last"><p>A section object may contain an arbitrary number of further properties
4571 representing the uci option enclosed in the section.
</p>
4572 <p>All option property names will be in the form
<code>[A-Za-z0-
9_]+
</code> and
4573 either contain a string value or an array of strings, in case the
4574 underlying option is an UCI list.
</p></td>
4611 <div class=
"nameContainer">
4612 <h4 class=
"name" id=
"~sectionsFn">
4614 sectionsFn
<span class=
"signature">(section, sid)
</span>
4618 <div class=
"tag-source">
4629 <div class=
"description">
4630 <p>The sections callback is invoked for each section found within
4631 the given configuration and receives the section object and its
4632 associated name as arguments.
</p>
4643 <table class=
"params">
4654 <th class=
"last">Description
</th>
4663 <td class=
"name"><code>section
</code></td>
4669 <span class=
"param-type"><a href=
"LuCI.uci.html#.SectionObject">LuCI.uci.SectionObject
</a></span>
4677 <td class=
"description last">
4679 <p>The section object.
</p></td>
4686 <td class=
"name"><code>sid
</code></td>
4692 <span class=
"param-type">string
</span>
4700 <td class=
"description last">
4702 <p>The name or ID of the section.
</p></td>
4711 <dl class=
"details">
4766 Documentation generated by
<a target=
"_blank" href=
"https://github.com/jsdoc3/jsdoc">JSDoc
3.6.3</a> on Tue Nov
05 2019 10:
49:
52 GMT+
0100 (Central European Standard Time)
4770 <script>prettyPrint();
</script>
4771 <script src=
"scripts/jaguar.js"></script>