5 <title>Source: uci.js
</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=
"uci.js.html">Source: uci.js
</h1>
1087 <pre id=
"source-code" class=
"prettyprint source "><code>'use strict';
1096 * The `LuCI.uci` class utilizes {@link LuCI.rpc} to declare low level
1097 * remote UCI `ubus` procedures and implements a local caching and data
1098 * manipulation layer on top to allow for synchroneous operations on
1099 * UCI configuration data.
1101 return L.Class.extend(/** @lends LuCI.uci.prototype */ {
1102 __init__: function() {
1115 callLoad: rpc.declare({
1118 params: [ 'config' ],
1119 expect: { values: { } }
1123 callOrder: rpc.declare({
1126 params: [ 'config', 'sections' ]
1129 callAdd: rpc.declare({
1132 params: [ 'config', 'type', 'name', 'values' ],
1133 expect: { section: '' }
1136 callSet: rpc.declare({
1139 params: [ 'config', 'section', 'values' ]
1142 callDelete: rpc.declare({
1145 params: [ 'config', 'section', 'options' ]
1148 callApply: rpc.declare({
1151 params: [ 'timeout', 'rollback' ]
1154 callConfirm: rpc.declare({
1161 * Generates a new, unique section ID for the given configuration.
1163 * Note that the generated ID is temporary, it will get replaced by an
1164 * identifier in the form `cfgXXXXXX` once the configuration is saved
1165 * by the remote `ubus` UCI api.
1167 * @param {string} config
1168 * The configuration to generate the new section ID for.
1171 * A newly generated, unique section ID in the form `newXXXXXX`
1172 * where `X` denotes a hexadecimal digit.
1174 createSID: function(conf) {
1175 var v = this.state.values,
1176 n = this.state.creates,
1180 sid =
"new%06x".format(Math.random() *
0xFFFFFF);
1181 } while ((n[conf]
&& n[conf][sid]) || (v[conf]
&& v[conf][sid]));
1187 * Resolves a given section ID in extended notation to the internal
1190 * @param {string} config
1191 * The configuration to resolve the section ID for.
1193 * @param {string} sid
1194 * The section ID to resolve. If the ID is in the form `@typename[#]`,
1195 * it will get resolved to an internal anonymous ID in the forms
1196 * `cfgXXXXXX`/`newXXXXXX` or to the name of a section in case it points
1197 * to a named section. When the given ID is not in extended notation,
1198 * it will be returned as-is.
1200 * @returns {string|null}
1201 * Returns the resolved section ID or the original given ID if it was
1202 * not in extended notation. Returns `null` when an extended ID could
1203 * not be resolved to existing section ID.
1205 resolveSID: function(conf, sid) {
1206 if (typeof(sid) != 'string')
1209 var m = /^@([a-zA-Z0-
9_-]+)\[(-?[
0-
9]+)\]$/.exec(sid);
1214 sections = this.sections(conf, type),
1215 section = sections[pos
>=
0 ? pos : sections.length + pos];
1217 return section ? section['.name'] : null;
1224 reorderSections: function() {
1225 var v = this.state.values,
1226 n = this.state.creates,
1227 r = this.state.reorder,
1230 if (Object.keys(r).length ===
0)
1231 return Promise.resolve();
1234 gather all created and existing sections, sort them according
1235 to their index value and issue an uci order call
1248 o.sort(function(a, b) {
1249 return (a['.index'] - b['.index']);
1254 for (var i =
0; i
< o.length; i++)
1255 sids.push(o[i]['.name']);
1257 tasks.push(this.callOrder(c, sids));
1261 this.state.reorder = { };
1262 return Promise.all(tasks);
1266 loadPackage: function(packageName) {
1267 if (this.loaded[packageName] == null)
1268 return (this.loaded[packageName] = this.callLoad(packageName));
1270 return Promise.resolve(this.loaded[packageName]);
1274 * Loads the given UCI configurations from the remote `ubus` api.
1276 * Loaded configurations are cached and only loaded once. Subsequent
1277 * load operations of the same configurations will return the cached
1280 * To force reloading a configuration, it has to be unloaded with
1281 * {@link LuCI.uci#unload uci.unload()} first.
1283 * @param {string|string[]} config
1284 * The name of the configuration or an array of configuration
1287 * @returns {Promise
<string[]
>}
1288 * Returns a promise resolving to the names of the configurations
1289 * that have been successfully loaded.
1291 load: function(packages) {
1296 if (!Array.isArray(packages))
1297 packages = [ packages ];
1299 for (var i =
0; i
< packages.length; i++)
1300 if (!self.state.values[packages[i]]) {
1301 pkgs.push(packages[i]);
1302 tasks.push(self.loadPackage(packages[i]));
1305 return Promise.all(tasks).then(function(responses) {
1306 for (var i =
0; i
< responses.length; i++)
1307 self.state.values[pkgs[i]] = responses[i];
1309 if (responses.length)
1310 document.dispatchEvent(new CustomEvent('uci-loaded'));
1317 * Unloads the given UCI configurations from the local cache.
1319 * @param {string|string[]} config
1320 * The name of the configuration or an array of configuration
1323 unload: function(packages) {
1324 if (!Array.isArray(packages))
1325 packages = [ packages ];
1327 for (var i =
0; i
< packages.length; i++) {
1328 delete this.state.values[packages[i]];
1329 delete this.state.creates[packages[i]];
1330 delete this.state.changes[packages[i]];
1331 delete this.state.deletes[packages[i]];
1333 delete this.loaded[packages[i]];
1338 * Adds a new section of the given type to the given configuration,
1339 * optionally named according to the given name.
1341 * @param {string} config
1342 * The name of the configuration to add the section to.
1344 * @param {string} type
1345 * The type of the section to add.
1347 * @param {string} [name]
1348 * The name of the section to add. If the name is omitted, an anonymous
1349 * section will be added instead.
1352 * Returns the section ID of the newly added section which is equivalent
1353 * to the given name for non-anonymous sections.
1355 add: function(conf, type, name) {
1356 var n = this.state.creates,
1357 sid = name || this.createSID(conf);
1366 '.anonymous': !name,
1367 '.index':
1000 + this.state.newidx++
1374 * Removes the section with the given ID from the given configuration.
1376 * @param {string} config
1377 * The name of the configuration to remove the section from.
1379 * @param {string} sid
1380 * The ID of the section to remove.
1382 remove: function(conf, sid) {
1383 var n = this.state.creates,
1384 c = this.state.changes,
1385 d = this.state.deletes;
1387 /* requested deletion of a just created section */
1388 if (n[conf]
&& n[conf][sid]) {
1389 delete n[conf][sid];
1393 delete c[conf][sid];
1398 d[conf][sid] = true;
1403 * A section object represents the options and their corresponding values
1404 * enclosed within a configuration section, as well as some additional
1405 * meta data such as sort indexes and internal ID.
1407 * Any internal metadata fields are prefixed with a dot which is isn't
1408 * an allowed character for normal option names.
1410 * @typedef {Object
<string, boolean|number|string|string[]
>} SectionObject
1411 * @memberof LuCI.uci
1413 * @property {boolean} .anonymous
1414 * The `.anonymous` property specifies whether the configuration is
1415 * anonymous (`true`) or named (`false`).
1417 * @property {number} .index
1418 * The `.index` property specifes the sort order of the section.
1420 * @property {string} .name
1421 * The `.name` property holds the name of the section object. It may be
1422 * either an anonymous ID in the form `cfgXXXXXX` or `newXXXXXX` with `X`
1423 * being a hexadecimal digit or a string holding the name of the section.
1425 * @property {string} .type
1426 * The `.type` property contains the type of the corresponding uci
1429 * @property {string|string[]} *
1430 * A section object may contain an arbitrary number of further properties
1431 * representing the uci option enclosed in the section.
1433 * All option property names will be in the form `[A-Za-z0-
9_]+` and
1434 * either contain a string value or an array of strings, in case the
1435 * underlying option is an UCI list.
1439 * The sections callback is invoked for each section found within
1440 * the given configuration and receives the section object and its
1441 * associated name as arguments.
1443 * @callback LuCI.uci~sectionsFn
1445 * @param {LuCI.uci.SectionObject} section
1446 * The section object.
1448 * @param {string} sid
1449 * The name or ID of the section.
1453 * Enumerates the sections of the given configuration, optionally
1456 * @param {string} config
1457 * The name of the configuration to enumerate the sections for.
1459 * @param {string} [type]
1460 * Enumerate only sections of the given type. If omitted, enumerate
1463 * @param {LuCI.uci~sectionsFn} [cb]
1464 * An optional callback to invoke for each enumerated section.
1466 * @returns {Array
<LuCI.uci.SectionObject
>}
1467 * Returns a sorted array of the section objects within the given
1468 * configuration, filtered by type of a type has been specified.
1470 sections: function(conf, type, cb) {
1472 v = this.state.values[conf],
1473 n = this.state.creates[conf],
1474 c = this.state.changes[conf],
1475 d = this.state.deletes[conf];
1481 if (!d || d[s] !== true)
1482 if (!type || v[s]['.type'] == type)
1483 sa.push(Object.assign({ }, v[s], c ? c[s] : undefined));
1487 if (!type || n[s]['.type'] == type)
1488 sa.push(Object.assign({ }, n[s]));
1490 sa.sort(function(a, b) {
1491 return a['.index'] - b['.index'];
1494 for (var i =
0; i
< sa.length; i++)
1495 sa[i]['.index'] = i;
1497 if (typeof(cb) == 'function')
1498 for (var i =
0; i
< sa.length; i++)
1499 cb.call(this, sa[i], sa[i]['.name']);
1505 * Gets the value of the given option within the specified section
1506 * of the given configuration or the entire section object if the
1507 * option name is omitted.
1509 * @param {string} config
1510 * The name of the configuration to read the value from.
1512 * @param {string} sid
1513 * The name or ID of the section to read.
1515 * @param {string} [option]
1516 * The option name to read the value from. If the option name is
1517 * omitted or `null`, the entire section is returned instead.
1519 * @returns {null|string|string[]|LuCI.uci.SectionObject}
1520 * - Returns a string containing the option value in case of a
1522 * - Returns an array of strings containing the option values in
1523 * case of `option` pointing to an UCI list.
1524 * - Returns a {@link LuCI.uci.SectionObject section object} if
1525 * the `option` argument has been omitted or is `null`.
1526 * - Returns `null` if the config, section or option has not been
1527 * found or if the corresponding configuration is not loaded.
1529 get: function(conf, sid, opt) {
1530 var v = this.state.values,
1531 n = this.state.creates,
1532 c = this.state.changes,
1533 d = this.state.deletes;
1535 sid = this.resolveSID(conf, sid);
1540 /* requested option in a just created section */
1541 if (n[conf]
&& n[conf][sid]) {
1546 return n[conf][sid];
1548 return n[conf][sid][opt];
1551 /* requested an option value */
1553 /* check whether option was deleted */
1554 if (d[conf]
&& d[conf][sid]) {
1555 if (d[conf][sid] === true)
1558 for (var i =
0; i
< d[conf][sid].length; i++)
1559 if (d[conf][sid][i] == opt)
1563 /* check whether option was changed */
1564 if (c[conf]
&& c[conf][sid]
&& c[conf][sid][opt] != null)
1565 return c[conf][sid][opt];
1567 /* return base value */
1568 if (v[conf]
&& v[conf][sid])
1569 return v[conf][sid][opt];
1574 /* requested an entire section */
1576 return v[conf][sid];
1582 * Sets the value of the given option within the specified section
1583 * of the given configuration.
1585 * If either config, section or option is null, or if `option` begins
1586 * with a dot, the function will do nothing.
1588 * @param {string} config
1589 * The name of the configuration to set the option value in.
1591 * @param {string} sid
1592 * The name or ID of the section to set the option value in.
1594 * @param {string} option
1595 * The option name to set the value for.
1597 * @param {null|string|string[]} value
1598 * The option value to set. If the value is `null` or an empty string,
1599 * the option will be removed, otherwise it will be set or overwritten
1600 * with the given value.
1602 set: function(conf, sid, opt, val) {
1603 var v = this.state.values,
1604 n = this.state.creates,
1605 c = this.state.changes,
1606 d = this.state.deletes;
1608 sid = this.resolveSID(conf, sid);
1610 if (sid == null || opt == null || opt.charAt(
0) == '.')
1613 if (n[conf]
&& n[conf][sid]) {
1615 n[conf][sid][opt] = val;
1617 delete n[conf][sid][opt];
1619 else if (val != null
&& val !== '') {
1620 /* do not set within deleted section */
1621 if (d[conf]
&& d[conf][sid] === true)
1624 /* only set in existing sections */
1625 if (!v[conf] || !v[conf][sid])
1634 /* undelete option */
1635 if (d[conf]
&& d[conf][sid])
1636 d[conf][sid] = d[conf][sid].filter(function(o) { return o !== opt });
1638 c[conf][sid][opt] = val;
1641 /* only delete in existing sections */
1642 if (!(v[conf]
&& v[conf][sid]
&& v[conf][sid].hasOwnProperty(opt))
&&
1643 !(c[conf]
&& c[conf][sid]
&& c[conf][sid].hasOwnProperty(opt)))
1652 if (d[conf][sid] !== true)
1653 d[conf][sid].push(opt);
1658 * Remove the given option within the specified section of the given
1661 * This function is a convenience wrapper around
1662 * `uci.set(config, section, option, null)`.
1664 * @param {string} config
1665 * The name of the configuration to remove the option from.
1667 * @param {string} sid
1668 * The name or ID of the section to remove the option from.
1670 * @param {string} option
1671 * The name of the option to remove.
1673 unset: function(conf, sid, opt) {
1674 return this.set(conf, sid, opt, null);
1678 * Gets the value of the given option or the entire section object of
1679 * the first found section of the specified type or the first found
1680 * section of the entire configuration if no type is specfied.
1682 * @param {string} config
1683 * The name of the configuration to read the value from.
1685 * @param {string} [type]
1686 * The type of the first section to find. If it is `null`, the first
1687 * section of the entire config is read, otherwise the first section
1688 * matching the given type.
1690 * @param {string} [option]
1691 * The option name to read the value from. If the option name is
1692 * omitted or `null`, the entire section is returned instead.
1694 * @returns {null|string|string[]|LuCI.uci.SectionObject}
1695 * - Returns a string containing the option value in case of a
1697 * - Returns an array of strings containing the option values in
1698 * case of `option` pointing to an UCI list.
1699 * - Returns a {@link LuCI.uci.SectionObject section object} if
1700 * the `option` argument has been omitted or is `null`.
1701 * - Returns `null` if the config, section or option has not been
1702 * found or if the corresponding configuration is not loaded.
1704 get_first: function(conf, type, opt) {
1707 this.sections(conf, type, function(s) {
1712 return this.get(conf, sid, opt);
1716 * Sets the value of the given option within the first found section
1717 * of the given configuration matching the specified type or within
1718 * the first section of the entire config when no type has is specified.
1720 * If either config, type or option is null, or if `option` begins
1721 * with a dot, the function will do nothing.
1723 * @param {string} config
1724 * The name of the configuration to set the option value in.
1726 * @param {string} [type]
1727 * The type of the first section to find. If it is `null`, the first
1728 * section of the entire config is written to, otherwise the first
1729 * section matching the given type is used.
1731 * @param {string} option
1732 * The option name to set the value for.
1734 * @param {null|string|string[]} value
1735 * The option value to set. If the value is `null` or an empty string,
1736 * the option will be removed, otherwise it will be set or overwritten
1737 * with the given value.
1739 set_first: function(conf, type, opt, val) {
1742 this.sections(conf, type, function(s) {
1747 return this.set(conf, sid, opt, val);
1751 * Removes the given option within the first found section of the given
1752 * configuration matching the specified type or within the first section
1753 * of the entire config when no type has is specified.
1755 * This function is a convenience wrapper around
1756 * `uci.set_first(config, type, option, null)`.
1758 * @param {string} config
1759 * The name of the configuration to set the option value in.
1761 * @param {string} [type]
1762 * The type of the first section to find. If it is `null`, the first
1763 * section of the entire config is written to, otherwise the first
1764 * section matching the given type is used.
1766 * @param {string} option
1767 * The option name to set the value for.
1769 unset_first: function(conf, type, opt) {
1770 return this.set_first(conf, type, opt, null);
1774 * Move the first specified section within the given configuration
1775 * before or after the second specified section.
1777 * @param {string} config
1778 * The configuration to move the section within.
1780 * @param {string} sid1
1781 * The ID of the section to move within the configuration.
1783 * @param {string} [sid2]
1784 * The ID of the target section for the move operation. If the
1785 * `after` argument is `false` or not specified, the section named by
1786 * `sid1` will be moved before this target section, if the `after`
1787 * argument is `true`, the `sid1` section will be moved after this
1790 * When the `sid2` argument is `null`, the section specified by `sid1`
1791 * is moved to the end of the configuration.
1793 * @param {boolean} [after=false]
1794 * When `true`, the section `sid1` is moved after the section `sid2`,
1795 * when `false`, the section `sid1` is moved before `sid2`.
1797 * If `sid2` is null, then this parameter has no effect and the section
1798 * `sid1` is moved to the end of the configuration instead.
1800 * @returns {boolean}
1801 * Returns `true` when the section was successfully moved, or `false`
1802 * when either the section specified by `sid1` or by `sid2` is not found.
1804 move: function(conf, sid1, sid2, after) {
1805 var sa = this.sections(conf),
1806 s1 = null, s2 = null;
1808 sid1 = this.resolveSID(conf, sid1);
1809 sid2 = this.resolveSID(conf, sid2);
1811 for (var i =
0; i
< sa.length; i++) {
1812 if (sa[i]['.name'] != sid1)
1827 for (var i =
0; i
< sa.length; i++) {
1828 if (sa[i]['.name'] != sid2)
1832 sa.splice(i + !!after,
0, s1);
1840 for (var i =
0; i
< sa.length; i++)
1841 this.get(conf, sa[i]['.name'])['.index'] = i;
1843 this.state.reorder[conf] = true;
1849 * Submits all local configuration changes to the remove `ubus` api,
1850 * adds, removes and reorders remote sections as needed and reloads
1851 * all loaded configurations to resynchronize the local state with
1852 * the remote configuration values.
1854 * @returns {string[]}
1855 * Returns a promise resolving to an array of configuration names which
1856 * have been reloaded by the save operation.
1859 var v = this.state.values,
1860 n = this.state.creates,
1861 c = this.state.changes,
1862 d = this.state.deletes,
1863 r = this.state.reorder,
1870 for (var conf in n) {
1871 for (var sid in n[conf]) {
1877 for (var k in n[conf][sid]) {
1879 r.type = n[conf][sid][k];
1880 else if (k == '.create')
1881 r.name = n[conf][sid][k];
1882 else if (k.charAt(
0) != '.')
1883 r.values[k] = n[conf][sid][k];
1886 snew.push(n[conf][sid]);
1887 tasks.push(self.callAdd(r.config, r.type, r.name, r.values));
1894 for (var conf in c) {
1895 for (var sid in c[conf])
1896 tasks.push(self.callSet(conf, sid, c[conf][sid]));
1902 for (var conf in d) {
1903 for (var sid in d[conf]) {
1904 var o = d[conf][sid];
1905 tasks.push(self.callDelete(conf, sid, (o === true) ? null : o));
1915 return Promise.all(tasks).then(function(responses) {
1917 array
"snew" holds references to the created uci sections,
1918 use it to assign the returned names of the new sections
1920 for (var i =
0; i
< snew.length; i++)
1921 snew[i]['.name'] = responses[i];
1923 return self.reorderSections();
1924 }).then(function() {
1925 pkgs = Object.keys(pkgs);
1929 return self.load(pkgs);
1934 * Instructs the remote `ubus` UCI api to commit all saved changes with
1935 * rollback protection and attempts to confirm the pending commit
1936 * operation to cancel the rollback timer.
1938 * @param {number} [timeout=
10]
1939 * Override the confirmation timeout after which a rollback is triggered.
1941 * @returns {Promise
<number
>}
1942 * Returns a promise resolving/rejecting with the `ubus` RPC status code.
1944 apply: function(timeout) {
1948 if (typeof(timeout) != 'number' || timeout
< 1)
1951 return self.callApply(timeout, true).then(function(rv) {
1953 return Promise.reject(rv);
1955 var try_deadline = date.getTime() +
1000 * timeout;
1956 var try_confirm = function() {
1957 return self.callConfirm().then(function(rv) {
1959 if (date.getTime()
< try_deadline)
1960 window.setTimeout(try_confirm,
250);
1962 return Promise.reject(rv);
1969 window.setTimeout(try_confirm,
1000);
1974 * An UCI change record is a plain array containing the change operation
1975 * name as first element, the affected section ID as second argument
1976 * and an optional third and fourth argument whose meanings depend on
1979 * @typedef {string[]} ChangeRecord
1980 * @memberof LuCI.uci
1982 * @property {string}
0
1983 * The operation name - may be one of `add`, `set`, `remove`, `order`,
1984 * `list-add`, `list-del` or `rename`.
1986 * @property {string}
1
1987 * The section ID targeted by the operation.
1989 * @property {string}
2
1990 * The meaning of the third element depends on the operation.
1991 * - For `add` it is type of the section that has been added
1992 * - For `set` it either is the option name if a fourth element exists,
1993 * or the type of a named section which has been added when the change
1994 * entry only contains three elements.
1995 * - For `remove` it contains the name of the option that has been
1997 * - For `order` it specifies the new sort index of the section.
1998 * - For `list-add` it contains the name of the list option a new value
1999 * has been added to.
2000 * - For `list-del` it contains the name of the list option a value has
2001 * been removed from.
2002 * - For `rename` it contains the name of the option that has been
2003 * renamed if a fourth element exists, else it contains the new name
2004 * a section has been renamed to if the change entry only contains
2007 * @property {string}
4
2008 * The meaning of the fourth element depends on the operation.
2009 * - For `set` it is the value an option has been set to.
2010 * - For `list-add` it is the new value that has been added to a
2012 * - For `rename` it is the new name of an option that has been
2017 * Fetches uncommitted UCI changes from the remote `ubus` RPC api.
2020 * @returns {Promise
<Object
<string, Array
<LuCI.uci.ChangeRecord
>>>}
2021 * Returns a promise resolving to an object containing the configuration
2022 * names as keys and arrays of related change records as values.
2024 changes: rpc.declare({
2027 expect: { changes: { } }
2042 Documentation generated by
<a 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)
2046 <script>prettyPrint();
</script>
2047 <script src=
"scripts/jaguar.js"></script>