5 <title>Class: LuCI
</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#getWifiNetworks"><a href=
"LuCI.Network.html#getWifiNetworks">getWifiNetworks
</a></li>
345 <li data-name=
"LuCI.Network#isIgnoredDevice"><a href=
"LuCI.Network.html#isIgnoredDevice">isIgnoredDevice
</a></li>
347 <li data-name=
"LuCI.Network#maskToPrefix"><a href=
"LuCI.Network.html#maskToPrefix">maskToPrefix
</a></li>
349 <li data-name=
"LuCI.Network#prefixToMask"><a href=
"LuCI.Network.html#prefixToMask">prefixToMask
</a></li>
351 <li data-name=
"LuCI.Network#registerErrorCode"><a href=
"LuCI.Network.html#registerErrorCode">registerErrorCode
</a></li>
353 <li data-name=
"LuCI.Network#registerPatternVirtual"><a href=
"LuCI.Network.html#registerPatternVirtual">registerPatternVirtual
</a></li>
355 <li data-name=
"LuCI.Network#registerProtocol"><a href=
"LuCI.Network.html#registerProtocol">registerProtocol
</a></li>
357 <li data-name=
"LuCI.Network#renameNetwork"><a href=
"LuCI.Network.html#renameNetwork">renameNetwork
</a></li>
360 <ul class=
"events itemMembers">
365 <li class=
"item" data-name=
"LuCI.Network.Device">
367 <a href=
"LuCI.Network.Device.html">LuCI.Network.Device
</a>
370 <ul class=
"members itemMembers">
373 <ul class=
"typedefs itemMembers">
376 <ul class=
"typedefs itemMembers">
379 <ul class=
"methods itemMembers">
381 <span class=
"subtitle">Methods
</span>
383 <li data-name=
"LuCI.Network.Device#getBridgeID"><a href=
"LuCI.Network.Device.html#getBridgeID">getBridgeID
</a></li>
385 <li data-name=
"LuCI.Network.Device#getBridgeSTP"><a href=
"LuCI.Network.Device.html#getBridgeSTP">getBridgeSTP
</a></li>
387 <li data-name=
"LuCI.Network.Device#getI18n"><a href=
"LuCI.Network.Device.html#getI18n">getI18n
</a></li>
389 <li data-name=
"LuCI.Network.Device#getIP6Addrs"><a href=
"LuCI.Network.Device.html#getIP6Addrs">getIP6Addrs
</a></li>
391 <li data-name=
"LuCI.Network.Device#getIPAddrs"><a href=
"LuCI.Network.Device.html#getIPAddrs">getIPAddrs
</a></li>
393 <li data-name=
"LuCI.Network.Device#getMAC"><a href=
"LuCI.Network.Device.html#getMAC">getMAC
</a></li>
395 <li data-name=
"LuCI.Network.Device#getMTU"><a href=
"LuCI.Network.Device.html#getMTU">getMTU
</a></li>
397 <li data-name=
"LuCI.Network.Device#getName"><a href=
"LuCI.Network.Device.html#getName">getName
</a></li>
399 <li data-name=
"LuCI.Network.Device#getNetwork"><a href=
"LuCI.Network.Device.html#getNetwork">getNetwork
</a></li>
401 <li data-name=
"LuCI.Network.Device#getNetworks"><a href=
"LuCI.Network.Device.html#getNetworks">getNetworks
</a></li>
403 <li data-name=
"LuCI.Network.Device#getPorts"><a href=
"LuCI.Network.Device.html#getPorts">getPorts
</a></li>
405 <li data-name=
"LuCI.Network.Device#getRXBytes"><a href=
"LuCI.Network.Device.html#getRXBytes">getRXBytes
</a></li>
407 <li data-name=
"LuCI.Network.Device#getRXPackets"><a href=
"LuCI.Network.Device.html#getRXPackets">getRXPackets
</a></li>
409 <li data-name=
"LuCI.Network.Device#getShortName"><a href=
"LuCI.Network.Device.html#getShortName">getShortName
</a></li>
411 <li data-name=
"LuCI.Network.Device#getTXBytes"><a href=
"LuCI.Network.Device.html#getTXBytes">getTXBytes
</a></li>
413 <li data-name=
"LuCI.Network.Device#getTXPackets"><a href=
"LuCI.Network.Device.html#getTXPackets">getTXPackets
</a></li>
415 <li data-name=
"LuCI.Network.Device#getType"><a href=
"LuCI.Network.Device.html#getType">getType
</a></li>
417 <li data-name=
"LuCI.Network.Device#getTypeI18n"><a href=
"LuCI.Network.Device.html#getTypeI18n">getTypeI18n
</a></li>
419 <li data-name=
"LuCI.Network.Device#getWifiNetwork"><a href=
"LuCI.Network.Device.html#getWifiNetwork">getWifiNetwork
</a></li>
421 <li data-name=
"LuCI.Network.Device#isBridge"><a href=
"LuCI.Network.Device.html#isBridge">isBridge
</a></li>
423 <li data-name=
"LuCI.Network.Device#isBridgePort"><a href=
"LuCI.Network.Device.html#isBridgePort">isBridgePort
</a></li>
425 <li data-name=
"LuCI.Network.Device#isUp"><a href=
"LuCI.Network.Device.html#isUp">isUp
</a></li>
428 <ul class=
"events itemMembers">
433 <li class=
"item" data-name=
"LuCI.Network.Hosts">
435 <a href=
"LuCI.Network.Hosts.html">LuCI.Network.Hosts
</a>
438 <ul class=
"members itemMembers">
441 <ul class=
"typedefs itemMembers">
444 <ul class=
"typedefs itemMembers">
447 <ul class=
"methods itemMembers">
449 <span class=
"subtitle">Methods
</span>
451 <li data-name=
"LuCI.Network.Hosts#getHostnameByIP6Addr"><a href=
"LuCI.Network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr
</a></li>
453 <li data-name=
"LuCI.Network.Hosts#getHostnameByIPAddr"><a href=
"LuCI.Network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr
</a></li>
455 <li data-name=
"LuCI.Network.Hosts#getHostnameByMACAddr"><a href=
"LuCI.Network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr
</a></li>
457 <li data-name=
"LuCI.Network.Hosts#getIP6AddrByMACAddr"><a href=
"LuCI.Network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr
</a></li>
459 <li data-name=
"LuCI.Network.Hosts#getIPAddrByMACAddr"><a href=
"LuCI.Network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr
</a></li>
461 <li data-name=
"LuCI.Network.Hosts#getMACAddrByIP6Addr"><a href=
"LuCI.Network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr
</a></li>
463 <li data-name=
"LuCI.Network.Hosts#getMACAddrByIPAddr"><a href=
"LuCI.Network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr
</a></li>
465 <li data-name=
"LuCI.Network.Hosts#getMACHints"><a href=
"LuCI.Network.Hosts.html#getMACHints">getMACHints
</a></li>
468 <ul class=
"events itemMembers">
473 <li class=
"item" data-name=
"LuCI.Network.Protocol">
475 <a href=
"LuCI.Network.Protocol.html">LuCI.Network.Protocol
</a>
478 <ul class=
"members itemMembers">
481 <ul class=
"typedefs itemMembers">
484 <ul class=
"typedefs itemMembers">
487 <ul class=
"methods itemMembers">
489 <span class=
"subtitle">Methods
</span>
491 <li data-name=
"LuCI.Network.Protocol#addDevice"><a href=
"LuCI.Network.Protocol.html#addDevice">addDevice
</a></li>
493 <li data-name=
"LuCI.Network.Protocol#containsDevice"><a href=
"LuCI.Network.Protocol.html#containsDevice">containsDevice
</a></li>
495 <li data-name=
"LuCI.Network.Protocol#deleteDevice"><a href=
"LuCI.Network.Protocol.html#deleteDevice">deleteDevice
</a></li>
497 <li data-name=
"LuCI.Network.Protocol#get"><a href=
"LuCI.Network.Protocol.html#get">get
</a></li>
499 <li data-name=
"LuCI.Network.Protocol#getDevice"><a href=
"LuCI.Network.Protocol.html#getDevice">getDevice
</a></li>
501 <li data-name=
"LuCI.Network.Protocol#getDevices"><a href=
"LuCI.Network.Protocol.html#getDevices">getDevices
</a></li>
503 <li data-name=
"LuCI.Network.Protocol#getDNS6Addrs"><a href=
"LuCI.Network.Protocol.html#getDNS6Addrs">getDNS6Addrs
</a></li>
505 <li data-name=
"LuCI.Network.Protocol#getDNSAddrs"><a href=
"LuCI.Network.Protocol.html#getDNSAddrs">getDNSAddrs
</a></li>
507 <li data-name=
"LuCI.Network.Protocol#getErrors"><a href=
"LuCI.Network.Protocol.html#getErrors">getErrors
</a></li>
509 <li data-name=
"LuCI.Network.Protocol#getExpiry"><a href=
"LuCI.Network.Protocol.html#getExpiry">getExpiry
</a></li>
511 <li data-name=
"LuCI.Network.Protocol#getGateway6Addr"><a href=
"LuCI.Network.Protocol.html#getGateway6Addr">getGateway6Addr
</a></li>
513 <li data-name=
"LuCI.Network.Protocol#getGatewayAddr"><a href=
"LuCI.Network.Protocol.html#getGatewayAddr">getGatewayAddr
</a></li>
515 <li data-name=
"LuCI.Network.Protocol#getI18n"><a href=
"LuCI.Network.Protocol.html#getI18n">getI18n
</a></li>
517 <li data-name=
"LuCI.Network.Protocol#getIfname"><a href=
"LuCI.Network.Protocol.html#getIfname">getIfname
</a></li>
519 <li data-name=
"LuCI.Network.Protocol#getIP6Addr"><a href=
"LuCI.Network.Protocol.html#getIP6Addr">getIP6Addr
</a></li>
521 <li data-name=
"LuCI.Network.Protocol#getIP6Addrs"><a href=
"LuCI.Network.Protocol.html#getIP6Addrs">getIP6Addrs
</a></li>
523 <li data-name=
"LuCI.Network.Protocol#getIP6Prefix"><a href=
"LuCI.Network.Protocol.html#getIP6Prefix">getIP6Prefix
</a></li>
525 <li data-name=
"LuCI.Network.Protocol#getIPAddr"><a href=
"LuCI.Network.Protocol.html#getIPAddr">getIPAddr
</a></li>
527 <li data-name=
"LuCI.Network.Protocol#getIPAddrs"><a href=
"LuCI.Network.Protocol.html#getIPAddrs">getIPAddrs
</a></li>
529 <li data-name=
"LuCI.Network.Protocol#getL2Device"><a href=
"LuCI.Network.Protocol.html#getL2Device">getL2Device
</a></li>
531 <li data-name=
"LuCI.Network.Protocol#getL3Device"><a href=
"LuCI.Network.Protocol.html#getL3Device">getL3Device
</a></li>
533 <li data-name=
"LuCI.Network.Protocol#getMetric"><a href=
"LuCI.Network.Protocol.html#getMetric">getMetric
</a></li>
535 <li data-name=
"LuCI.Network.Protocol#getName"><a href=
"LuCI.Network.Protocol.html#getName">getName
</a></li>
537 <li data-name=
"LuCI.Network.Protocol#getNetmask"><a href=
"LuCI.Network.Protocol.html#getNetmask">getNetmask
</a></li>
539 <li data-name=
"LuCI.Network.Protocol#getOpkgPackage"><a href=
"LuCI.Network.Protocol.html#getOpkgPackage">getOpkgPackage
</a></li>
541 <li data-name=
"LuCI.Network.Protocol#getProtocol"><a href=
"LuCI.Network.Protocol.html#getProtocol">getProtocol
</a></li>
543 <li data-name=
"LuCI.Network.Protocol#getType"><a href=
"LuCI.Network.Protocol.html#getType">getType
</a></li>
545 <li data-name=
"LuCI.Network.Protocol#getUptime"><a href=
"LuCI.Network.Protocol.html#getUptime">getUptime
</a></li>
547 <li data-name=
"LuCI.Network.Protocol#getZoneName"><a href=
"LuCI.Network.Protocol.html#getZoneName">getZoneName
</a></li>
549 <li data-name=
"LuCI.Network.Protocol#isAlias"><a href=
"LuCI.Network.Protocol.html#isAlias">isAlias
</a></li>
551 <li data-name=
"LuCI.Network.Protocol#isBridge"><a href=
"LuCI.Network.Protocol.html#isBridge">isBridge
</a></li>
553 <li data-name=
"LuCI.Network.Protocol#isDynamic"><a href=
"LuCI.Network.Protocol.html#isDynamic">isDynamic
</a></li>
555 <li data-name=
"LuCI.Network.Protocol#isEmpty"><a href=
"LuCI.Network.Protocol.html#isEmpty">isEmpty
</a></li>
557 <li data-name=
"LuCI.Network.Protocol#isFloating"><a href=
"LuCI.Network.Protocol.html#isFloating">isFloating
</a></li>
559 <li data-name=
"LuCI.Network.Protocol#isInstalled"><a href=
"LuCI.Network.Protocol.html#isInstalled">isInstalled
</a></li>
561 <li data-name=
"LuCI.Network.Protocol#isUp"><a href=
"LuCI.Network.Protocol.html#isUp">isUp
</a></li>
563 <li data-name=
"LuCI.Network.Protocol#isVirtual"><a href=
"LuCI.Network.Protocol.html#isVirtual">isVirtual
</a></li>
565 <li data-name=
"LuCI.Network.Protocol#set"><a href=
"LuCI.Network.Protocol.html#set">set
</a></li>
568 <ul class=
"events itemMembers">
573 <li class=
"item" data-name=
"LuCI.Network.WifiDevice">
575 <a href=
"LuCI.Network.WifiDevice.html">LuCI.Network.WifiDevice
</a>
578 <ul class=
"members itemMembers">
581 <ul class=
"typedefs itemMembers">
584 <ul class=
"typedefs itemMembers">
587 <ul class=
"methods itemMembers">
589 <span class=
"subtitle">Methods
</span>
591 <li data-name=
"LuCI.Network.WifiDevice#addWifiNetwork"><a href=
"LuCI.Network.WifiDevice.html#addWifiNetwork">addWifiNetwork
</a></li>
593 <li data-name=
"LuCI.Network.WifiDevice#deleteWifiNetwork"><a href=
"LuCI.Network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork
</a></li>
595 <li data-name=
"LuCI.Network.WifiDevice#get"><a href=
"LuCI.Network.WifiDevice.html#get">get
</a></li>
597 <li data-name=
"LuCI.Network.WifiDevice#getHTModes"><a href=
"LuCI.Network.WifiDevice.html#getHTModes">getHTModes
</a></li>
599 <li data-name=
"LuCI.Network.WifiDevice#getHWModes"><a href=
"LuCI.Network.WifiDevice.html#getHWModes">getHWModes
</a></li>
601 <li data-name=
"LuCI.Network.WifiDevice#getI18n"><a href=
"LuCI.Network.WifiDevice.html#getI18n">getI18n
</a></li>
603 <li data-name=
"LuCI.Network.WifiDevice#getName"><a href=
"LuCI.Network.WifiDevice.html#getName">getName
</a></li>
605 <li data-name=
"LuCI.Network.WifiDevice#getScanList"><a href=
"LuCI.Network.WifiDevice.html#getScanList">getScanList
</a></li>
607 <li data-name=
"LuCI.Network.WifiDevice#getWifiNetwork"><a href=
"LuCI.Network.WifiDevice.html#getWifiNetwork">getWifiNetwork
</a></li>
609 <li data-name=
"LuCI.Network.WifiDevice#getWifiNetworks"><a href=
"LuCI.Network.WifiDevice.html#getWifiNetworks">getWifiNetworks
</a></li>
611 <li data-name=
"LuCI.Network.WifiDevice#isDisabled"><a href=
"LuCI.Network.WifiDevice.html#isDisabled">isDisabled
</a></li>
613 <li data-name=
"LuCI.Network.WifiDevice#isUp"><a href=
"LuCI.Network.WifiDevice.html#isUp">isUp
</a></li>
615 <li data-name=
"LuCI.Network.WifiDevice#set"><a href=
"LuCI.Network.WifiDevice.html#set">set
</a></li>
618 <ul class=
"events itemMembers">
623 <li class=
"item" data-name=
"LuCI.Network.WifiNetwork">
625 <a href=
"LuCI.Network.WifiNetwork.html">LuCI.Network.WifiNetwork
</a>
628 <ul class=
"members itemMembers">
631 <ul class=
"typedefs itemMembers">
634 <ul class=
"typedefs itemMembers">
637 <ul class=
"methods itemMembers">
639 <span class=
"subtitle">Methods
</span>
641 <li data-name=
"LuCI.Network.WifiNetwork#disconnectClient"><a href=
"LuCI.Network.WifiNetwork.html#disconnectClient">disconnectClient
</a></li>
643 <li data-name=
"LuCI.Network.WifiNetwork#get"><a href=
"LuCI.Network.WifiNetwork.html#get">get
</a></li>
645 <li data-name=
"LuCI.Network.WifiNetwork#getActiveBSSID"><a href=
"LuCI.Network.WifiNetwork.html#getActiveBSSID">getActiveBSSID
</a></li>
647 <li data-name=
"LuCI.Network.WifiNetwork#getActiveEncryption"><a href=
"LuCI.Network.WifiNetwork.html#getActiveEncryption">getActiveEncryption
</a></li>
649 <li data-name=
"LuCI.Network.WifiNetwork#getActiveMode"><a href=
"LuCI.Network.WifiNetwork.html#getActiveMode">getActiveMode
</a></li>
651 <li data-name=
"LuCI.Network.WifiNetwork#getActiveModeI18n"><a href=
"LuCI.Network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n
</a></li>
653 <li data-name=
"LuCI.Network.WifiNetwork#getActiveSSID"><a href=
"LuCI.Network.WifiNetwork.html#getActiveSSID">getActiveSSID
</a></li>
655 <li data-name=
"LuCI.Network.WifiNetwork#getAssocList"><a href=
"LuCI.Network.WifiNetwork.html#getAssocList">getAssocList
</a></li>
657 <li data-name=
"LuCI.Network.WifiNetwork#getBitRate"><a href=
"LuCI.Network.WifiNetwork.html#getBitRate">getBitRate
</a></li>
659 <li data-name=
"LuCI.Network.WifiNetwork#getBSSID"><a href=
"LuCI.Network.WifiNetwork.html#getBSSID">getBSSID
</a></li>
661 <li data-name=
"LuCI.Network.WifiNetwork#getChannel"><a href=
"LuCI.Network.WifiNetwork.html#getChannel">getChannel
</a></li>
663 <li data-name=
"LuCI.Network.WifiNetwork#getCountryCode"><a href=
"LuCI.Network.WifiNetwork.html#getCountryCode">getCountryCode
</a></li>
665 <li data-name=
"LuCI.Network.WifiNetwork#getDevice"><a href=
"LuCI.Network.WifiNetwork.html#getDevice">getDevice
</a></li>
667 <li data-name=
"LuCI.Network.WifiNetwork#getFrequency"><a href=
"LuCI.Network.WifiNetwork.html#getFrequency">getFrequency
</a></li>
669 <li data-name=
"LuCI.Network.WifiNetwork#getI18n"><a href=
"LuCI.Network.WifiNetwork.html#getI18n">getI18n
</a></li>
671 <li data-name=
"LuCI.Network.WifiNetwork#getID"><a href=
"LuCI.Network.WifiNetwork.html#getID">getID
</a></li>
673 <li data-name=
"LuCI.Network.WifiNetwork#getIfname"><a href=
"LuCI.Network.WifiNetwork.html#getIfname">getIfname
</a></li>
675 <li data-name=
"LuCI.Network.WifiNetwork#getMeshID"><a href=
"LuCI.Network.WifiNetwork.html#getMeshID">getMeshID
</a></li>
677 <li data-name=
"LuCI.Network.WifiNetwork#getMode"><a href=
"LuCI.Network.WifiNetwork.html#getMode">getMode
</a></li>
679 <li data-name=
"LuCI.Network.WifiNetwork#getName"><a href=
"LuCI.Network.WifiNetwork.html#getName">getName
</a></li>
681 <li data-name=
"LuCI.Network.WifiNetwork#getNetwork"><a href=
"LuCI.Network.WifiNetwork.html#getNetwork">getNetwork
</a></li>
683 <li data-name=
"LuCI.Network.WifiNetwork#getNetworkNames"><a href=
"LuCI.Network.WifiNetwork.html#getNetworkNames">getNetworkNames
</a></li>
685 <li data-name=
"LuCI.Network.WifiNetwork#getNetworks"><a href=
"LuCI.Network.WifiNetwork.html#getNetworks">getNetworks
</a></li>
687 <li data-name=
"LuCI.Network.WifiNetwork#getNoise"><a href=
"LuCI.Network.WifiNetwork.html#getNoise">getNoise
</a></li>
689 <li data-name=
"LuCI.Network.WifiNetwork#getShortName"><a href=
"LuCI.Network.WifiNetwork.html#getShortName">getShortName
</a></li>
691 <li data-name=
"LuCI.Network.WifiNetwork#getSignal"><a href=
"LuCI.Network.WifiNetwork.html#getSignal">getSignal
</a></li>
693 <li data-name=
"LuCI.Network.WifiNetwork#getSignalLevel"><a href=
"LuCI.Network.WifiNetwork.html#getSignalLevel">getSignalLevel
</a></li>
695 <li data-name=
"LuCI.Network.WifiNetwork#getSignalPercent"><a href=
"LuCI.Network.WifiNetwork.html#getSignalPercent">getSignalPercent
</a></li>
697 <li data-name=
"LuCI.Network.WifiNetwork#getSSID"><a href=
"LuCI.Network.WifiNetwork.html#getSSID">getSSID
</a></li>
699 <li data-name=
"LuCI.Network.WifiNetwork#getTXPower"><a href=
"LuCI.Network.WifiNetwork.html#getTXPower">getTXPower
</a></li>
701 <li data-name=
"LuCI.Network.WifiNetwork#getTXPowerOffset"><a href=
"LuCI.Network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset
</a></li>
703 <li data-name=
"LuCI.Network.WifiNetwork#getWifiDevice"><a href=
"LuCI.Network.WifiNetwork.html#getWifiDevice">getWifiDevice
</a></li>
705 <li data-name=
"LuCI.Network.WifiNetwork#getWifiDeviceName"><a href=
"LuCI.Network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName
</a></li>
707 <li data-name=
"LuCI.Network.WifiNetwork#isClientDisconnectSupported"><a href=
"LuCI.Network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported
</a></li>
709 <li data-name=
"LuCI.Network.WifiNetwork#isDisabled"><a href=
"LuCI.Network.WifiNetwork.html#isDisabled">isDisabled
</a></li>
711 <li data-name=
"LuCI.Network.WifiNetwork#isUp"><a href=
"LuCI.Network.WifiNetwork.html#isUp">isUp
</a></li>
713 <li data-name=
"LuCI.Network.WifiNetwork#set"><a href=
"LuCI.Network.WifiNetwork.html#set">set
</a></li>
716 <ul class=
"events itemMembers">
721 <li class=
"item" data-name=
"LuCI.Poll">
723 <a href=
"LuCI.Poll.html">LuCI.Poll
</a>
726 <ul class=
"members itemMembers">
729 <ul class=
"typedefs itemMembers">
732 <ul class=
"typedefs itemMembers">
735 <ul class=
"methods itemMembers">
737 <span class=
"subtitle">Methods
</span>
739 <li data-name=
"LuCI.Poll#active"><a href=
"LuCI.Poll.html#active">active
</a></li>
741 <li data-name=
"LuCI.Poll#add"><a href=
"LuCI.Poll.html#add">add
</a></li>
743 <li data-name=
"LuCI.Poll#remove"><a href=
"LuCI.Poll.html#remove">remove
</a></li>
745 <li data-name=
"LuCI.Poll#start"><a href=
"LuCI.Poll.html#start">start
</a></li>
747 <li data-name=
"LuCI.Poll#stop"><a href=
"LuCI.Poll.html#stop">stop
</a></li>
750 <ul class=
"events itemMembers">
755 <li class=
"item" data-name=
"LuCI.Request">
757 <a href=
"LuCI.Request.html">LuCI.Request
</a>
760 <ul class=
"members itemMembers">
763 <ul class=
"typedefs itemMembers">
765 <span class=
"subtitle">Typedefs
</span>
767 <li data-name=
"LuCI.Request.interceptorFn"><a href=
"LuCI.Request.html#.interceptorFn">interceptorFn
</a></li>
769 <li data-name=
"LuCI.Request.RequestOptions"><a href=
"LuCI.Request.html#.RequestOptions">RequestOptions
</a></li>
772 <ul class=
"typedefs itemMembers">
775 <ul class=
"methods itemMembers">
777 <span class=
"subtitle">Methods
</span>
779 <li data-name=
"LuCI.Request#addInterceptor"><a href=
"LuCI.Request.html#addInterceptor">addInterceptor
</a></li>
781 <li data-name=
"LuCI.Request#expandURL"><a href=
"LuCI.Request.html#expandURL">expandURL
</a></li>
783 <li data-name=
"LuCI.Request#get"><a href=
"LuCI.Request.html#get">get
</a></li>
785 <li data-name=
"LuCI.Request#post"><a href=
"LuCI.Request.html#post">post
</a></li>
787 <li data-name=
"LuCI.Request#removeInterceptor"><a href=
"LuCI.Request.html#removeInterceptor">removeInterceptor
</a></li>
789 <li data-name=
"LuCI.Request#request"><a href=
"LuCI.Request.html#request">request
</a></li>
792 <ul class=
"events itemMembers">
797 <li class=
"item" data-name=
"LuCI.Request.poll">
799 <a href=
"LuCI.Request.poll.html">LuCI.Request.poll
</a>
802 <ul class=
"members itemMembers">
805 <ul class=
"typedefs itemMembers">
807 <span class=
"subtitle">Typedefs
</span>
809 <li data-name=
"LuCI.Request.poll~callbackFn"><a href=
"LuCI.Request.poll.html#~callbackFn">callbackFn
</a></li>
812 <ul class=
"typedefs itemMembers">
815 <ul class=
"methods itemMembers">
817 <span class=
"subtitle">Methods
</span>
819 <li data-name=
"LuCI.Request.poll#active"><a href=
"LuCI.Request.poll.html#active">active
</a></li>
821 <li data-name=
"LuCI.Request.poll#add"><a href=
"LuCI.Request.poll.html#add">add
</a></li>
823 <li data-name=
"LuCI.Request.poll#remove"><a href=
"LuCI.Request.poll.html#remove">remove
</a></li>
825 <li data-name=
"LuCI.Request.poll#start"><a href=
"LuCI.Request.poll.html#start">start
</a></li>
827 <li data-name=
"LuCI.Request.poll#stop"><a href=
"LuCI.Request.poll.html#stop">stop
</a></li>
830 <ul class=
"events itemMembers">
835 <li class=
"item" data-name=
"LuCI.Response">
837 <a href=
"LuCI.Response.html">LuCI.Response
</a>
840 <ul class=
"members itemMembers">
842 <span class=
"subtitle">Members
</span>
844 <li data-name=
"LuCI.Response#duration"><a href=
"LuCI.Response.html#duration">duration
</a></li>
846 <li data-name=
"LuCI.Response#headers"><a href=
"LuCI.Response.html#headers">headers
</a></li>
848 <li data-name=
"LuCI.Response#ok"><a href=
"LuCI.Response.html#ok">ok
</a></li>
850 <li data-name=
"LuCI.Response#status"><a href=
"LuCI.Response.html#status">status
</a></li>
852 <li data-name=
"LuCI.Response#statusText"><a href=
"LuCI.Response.html#statusText">statusText
</a></li>
854 <li data-name=
"LuCI.Response#url"><a href=
"LuCI.Response.html#url">url
</a></li>
857 <ul class=
"typedefs itemMembers">
860 <ul class=
"typedefs itemMembers">
863 <ul class=
"methods itemMembers">
865 <span class=
"subtitle">Methods
</span>
867 <li data-name=
"LuCI.Response#clone"><a href=
"LuCI.Response.html#clone">clone
</a></li>
869 <li data-name=
"LuCI.Response#json"><a href=
"LuCI.Response.html#json">json
</a></li>
871 <li data-name=
"LuCI.Response#text"><a href=
"LuCI.Response.html#text">text
</a></li>
874 <ul class=
"events itemMembers">
879 <li class=
"item" data-name=
"LuCI.rpc">
881 <a href=
"LuCI.rpc.html">LuCI.rpc
</a>
884 <ul class=
"members itemMembers">
887 <ul class=
"typedefs itemMembers">
889 <span class=
"subtitle">Typedefs
</span>
891 <li data-name=
"LuCI.rpc.DeclareOptions"><a href=
"LuCI.rpc.html#.DeclareOptions">DeclareOptions
</a></li>
893 <li data-name=
"LuCI.rpc~filterFn"><a href=
"LuCI.rpc.html#~filterFn">filterFn
</a></li>
895 <li data-name=
"LuCI.rpc~interceptorFn"><a href=
"LuCI.rpc.html#~interceptorFn">interceptorFn
</a></li>
897 <li data-name=
"LuCI.rpc~invokeFn"><a href=
"LuCI.rpc.html#~invokeFn">invokeFn
</a></li>
900 <ul class=
"typedefs itemMembers">
903 <ul class=
"methods itemMembers">
905 <span class=
"subtitle">Methods
</span>
907 <li data-name=
"LuCI.rpc#addInterceptor"><a href=
"LuCI.rpc.html#addInterceptor">addInterceptor
</a></li>
909 <li data-name=
"LuCI.rpc#declare"><a href=
"LuCI.rpc.html#declare">declare
</a></li>
911 <li data-name=
"LuCI.rpc#getBaseURL"><a href=
"LuCI.rpc.html#getBaseURL">getBaseURL
</a></li>
913 <li data-name=
"LuCI.rpc#getSessionID"><a href=
"LuCI.rpc.html#getSessionID">getSessionID
</a></li>
915 <li data-name=
"LuCI.rpc#getStatusText"><a href=
"LuCI.rpc.html#getStatusText">getStatusText
</a></li>
917 <li data-name=
"LuCI.rpc#list"><a href=
"LuCI.rpc.html#list">list
</a></li>
919 <li data-name=
"LuCI.rpc#removeInterceptor"><a href=
"LuCI.rpc.html#removeInterceptor">removeInterceptor
</a></li>
921 <li data-name=
"LuCI.rpc#setBaseURL"><a href=
"LuCI.rpc.html#setBaseURL">setBaseURL
</a></li>
923 <li data-name=
"LuCI.rpc#setSessionID"><a href=
"LuCI.rpc.html#setSessionID">setSessionID
</a></li>
926 <ul class=
"events itemMembers">
931 <li class=
"item" data-name=
"LuCI.uci">
933 <a href=
"LuCI.uci.html">LuCI.uci
</a>
936 <ul class=
"members itemMembers">
939 <ul class=
"typedefs itemMembers">
941 <span class=
"subtitle">Typedefs
</span>
943 <li data-name=
"LuCI.uci.ChangeRecord"><a href=
"LuCI.uci.html#.ChangeRecord">ChangeRecord
</a></li>
945 <li data-name=
"LuCI.uci.SectionObject"><a href=
"LuCI.uci.html#.SectionObject">SectionObject
</a></li>
947 <li data-name=
"LuCI.uci~sectionsFn"><a href=
"LuCI.uci.html#~sectionsFn">sectionsFn
</a></li>
950 <ul class=
"typedefs itemMembers">
953 <ul class=
"methods itemMembers">
955 <span class=
"subtitle">Methods
</span>
957 <li data-name=
"LuCI.uci#add"><a href=
"LuCI.uci.html#add">add
</a></li>
959 <li data-name=
"LuCI.uci#apply"><a href=
"LuCI.uci.html#apply">apply
</a></li>
961 <li data-name=
"LuCI.uci#changes"><a href=
"LuCI.uci.html#changes">changes
</a></li>
963 <li data-name=
"LuCI.uci#createSID"><a href=
"LuCI.uci.html#createSID">createSID
</a></li>
965 <li data-name=
"LuCI.uci#get"><a href=
"LuCI.uci.html#get">get
</a></li>
967 <li data-name=
"LuCI.uci#get_first"><a href=
"LuCI.uci.html#get_first">get_first
</a></li>
969 <li data-name=
"LuCI.uci#load"><a href=
"LuCI.uci.html#load">load
</a></li>
971 <li data-name=
"LuCI.uci#move"><a href=
"LuCI.uci.html#move">move
</a></li>
973 <li data-name=
"LuCI.uci#remove"><a href=
"LuCI.uci.html#remove">remove
</a></li>
975 <li data-name=
"LuCI.uci#resolveSID"><a href=
"LuCI.uci.html#resolveSID">resolveSID
</a></li>
977 <li data-name=
"LuCI.uci#save"><a href=
"LuCI.uci.html#save">save
</a></li>
979 <li data-name=
"LuCI.uci#sections"><a href=
"LuCI.uci.html#sections">sections
</a></li>
981 <li data-name=
"LuCI.uci#set"><a href=
"LuCI.uci.html#set">set
</a></li>
983 <li data-name=
"LuCI.uci#set_first"><a href=
"LuCI.uci.html#set_first">set_first
</a></li>
985 <li data-name=
"LuCI.uci#unload"><a href=
"LuCI.uci.html#unload">unload
</a></li>
987 <li data-name=
"LuCI.uci#unset"><a href=
"LuCI.uci.html#unset">unset
</a></li>
989 <li data-name=
"LuCI.uci#unset_first"><a href=
"LuCI.uci.html#unset_first">unset_first
</a></li>
992 <ul class=
"events itemMembers">
997 <li class=
"item" data-name=
"LuCI.view">
999 <a href=
"LuCI.view.html">LuCI.view
</a>
1002 <ul class=
"members itemMembers">
1005 <ul class=
"typedefs itemMembers">
1008 <ul class=
"typedefs itemMembers">
1011 <ul class=
"methods itemMembers">
1013 <span class=
"subtitle">Methods
</span>
1015 <li data-name=
"LuCI.view#addFooter"><a href=
"LuCI.view.html#addFooter">addFooter
</a></li>
1017 <li data-name=
"LuCI.view#handleReset"><a href=
"LuCI.view.html#handleReset">handleReset
</a></li>
1019 <li data-name=
"LuCI.view#handleSave"><a href=
"LuCI.view.html#handleSave">handleSave
</a></li>
1021 <li data-name=
"LuCI.view#handleSaveApply"><a href=
"LuCI.view.html#handleSaveApply">handleSaveApply
</a></li>
1023 <li data-name=
"LuCI.view#load"><a href=
"LuCI.view.html#load">load
</a></li>
1025 <li data-name=
"LuCI.view#render"><a href=
"LuCI.view.html#render">render
</a></li>
1028 <ul class=
"events itemMembers">
1033 <li class=
"item" data-name=
"LuCI.XHR">
1034 <span class=
"title">
1035 <a href=
"LuCI.XHR.html">LuCI.XHR
</a>
1038 <ul class=
"members itemMembers">
1041 <ul class=
"typedefs itemMembers">
1044 <ul class=
"typedefs itemMembers">
1047 <ul class=
"methods itemMembers">
1049 <span class=
"subtitle">Methods
</span>
1051 <li data-name=
"LuCI.XHR#abort"><a href=
"LuCI.XHR.html#abort">abort
</a></li>
1053 <li data-name=
"LuCI.XHR#busy"><a href=
"LuCI.XHR.html#busy">busy
</a></li>
1055 <li data-name=
"LuCI.XHR#cancel"><a href=
"LuCI.XHR.html#cancel">cancel
</a></li>
1057 <li data-name=
"LuCI.XHR#get"><a href=
"LuCI.XHR.html#get">get
</a></li>
1059 <li data-name=
"LuCI.XHR#post"><a href=
"LuCI.XHR.html#post">post
</a></li>
1061 <li data-name=
"LuCI.XHR#send_form"><a href=
"LuCI.XHR.html#send_form">send_form
</a></li>
1064 <ul class=
"events itemMembers">
1072 <h1 class=
"page-title" data-filename=
"LuCI.html">Class: LuCI
</h1>
1084 <div class=
"class-description"><p>This is the LuCI base class. It is automatically instantiated and
1085 accessible using the global
<code>L
</code> variable.
</p></div>
1090 <div class=
"container-overview">
1096 <div class=
"nameContainer">
1097 <h4 class=
"name" id=
"LuCI">
1099 new LuCI
<span class=
"signature">(env)
</span>
1103 <div class=
"tag-source">
1122 <table class=
"params">
1133 <th class=
"last">Description
</th>
1142 <td class=
"name"><code>env
</code></td>
1148 <span class=
"param-type">Object
</span>
1156 <td class=
"description last">
1158 <p>The environment settings to use for the LuCI runtime.
</p></td>
1167 <dl class=
"details">
1215 <h3 class=
"subsection-title">Classes
</h3>
1218 <dt><a href=
"LuCI.Class.html">Class
</a></dt>
1221 <dt><a href=
"LuCI.dom.html">dom
</a></dt>
1224 <dt><a href=
"LuCI.fs.html">fs
</a></dt>
1227 <dt><a href=
"LuCI.Headers.html">Headers
</a></dt>
1230 <dt><a href=
"LuCI.Network.html">Network
</a></dt>
1233 <dt><a href=
"LuCI.Poll.html">Poll
</a></dt>
1236 <dt><a href=
"LuCI.Request.html">Request
</a></dt>
1239 <dt><a href=
"LuCI.Response.html">Response
</a></dt>
1242 <dt><a href=
"LuCI.rpc.html">rpc
</a></dt>
1245 <dt><a href=
"LuCI.uci.html">uci
</a></dt>
1248 <dt><a href=
"LuCI.view.html">view
</a></dt>
1251 <dt><a href=
"LuCI.XHR.html">XHR
</a></dt>
1259 <h3 class=
"subsection-title">Members
</h3>
1264 <div class=
"nameContainer">
1265 <h4 class=
"name" id=
"env">env
</h4>
1272 <div class=
"description">
1273 <p>The
<code>env
</code> object holds environment settings used by LuCI, such
1274 as request timeouts, base URLs etc.
</p>
1279 <dl class=
"details">
1311 <h3 class=
"subsection-title">Methods
</h3>
1316 <div class=
"nameContainer">
1317 <h4 class=
"name" id=
"bind">
1319 bind
<span class=
"signature">(fn, self,
<span class=
"optional">args
</span>)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{function}
</span>
1323 <div class=
"tag-source">
1334 <div class=
"description">
1335 <p>Return a bound function using the given
<code>self
</code> as
<code>this
</code> context
1336 and any further arguments as parameters to the bound function.
</p>
1347 <table class=
"params">
1358 <th class=
"last">Description
</th>
1367 <td class=
"name"><code>fn
</code></td>
1373 <span class=
"param-type">function
</span>
1381 <td class=
"description last">
1388 <p>The function to bind.
</p></td>
1395 <td class=
"name"><code>self
</code></td>
1401 <span class=
"param-type">*
</span>
1409 <td class=
"description last">
1416 <p>The value to bind as
<code>this
</code> context to the specified function.
</p></td>
1423 <td class=
"name"><code>args
</code></td>
1429 <span class=
"param-type">*
</span>
1437 <td class=
"description last">
1440 <span class=
"optional">optional
</span>
1445 <span class=
"repeatable">repeatable
</span>
1448 <p>Zero or more variable arguments which are bound to the function
1449 as parameters.
</p></td>
1458 <dl class=
"details">
1496 <table class=
"params">
1501 <th class=
"last">Description
</th>
1514 <td class=
"description last">Returns the bound function.
</td>
1528 <div class=
"nameContainer">
1529 <h4 class=
"name" id=
"error">
1531 error
<span class=
"signature">(
<span class=
"optional">type
</span>,
<span class=
"optional">fmt
</span>,
<span class=
"optional">args
</span>)
</span>
1535 <div class=
"tag-source">
1546 <div class=
"description">
1547 <p>A wrapper around
<a href=
"LuCI.html#raise"><code>raise()
</code></a> which also renders
1548 the error either as modal overlay when
<code>ui.js
</code> is already loaed
1549 or directly into the view body.
</p>
1560 <table class=
"params">
1573 <th class=
"last">Description
</th>
1582 <td class=
"name"><code>type
</code></td>
1588 <span class=
"param-type">Error
</span>
1591 <span class=
"param-type">string
</span>
1598 <td class=
"default">
1605 <td class=
"description last">
1608 <span class=
"optional">optional
</span>
1614 <p>Either a string specifying the type of the error to throw or an
1615 existing
<code>Error
</code> instance to copy.
</p></td>
1622 <td class=
"name"><code>fmt
</code></td>
1628 <span class=
"param-type">string
</span>
1635 <td class=
"default">
1642 <td class=
"description last">
1645 <span class=
"optional">optional
</span>
1651 <p>A format string which is used to form the error message, together
1652 with all subsequent optional arguments.
</p></td>
1659 <td class=
"name"><code>args
</code></td>
1665 <span class=
"param-type">*
</span>
1672 <td class=
"default">
1677 <td class=
"description last">
1680 <span class=
"optional">optional
</span>
1685 <span class=
"repeatable">repeatable
</span>
1688 <p>Zero or more variable arguments to the supplied format string.
</p></td>
1697 <dl class=
"details">
1735 <div class=
"param-desc">
1736 <p>Throws the created error object with the captured stack trace
1737 appended to the message and the type set to the given type
1738 argument or copied from the given error instance.
</p>
1748 <span class=
"param-type">Error
</span>
1767 <div class=
"nameContainer">
1768 <h4 class=
"name" id=
"get">
1770 get
<span class=
"signature">(url,
<span class=
"optional">args
</span>, cb)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{Promise.
<null
>}
</span>
1774 <div class=
"tag-source">
1785 <div class=
"description">
1786 <p>Issues a GET request to the given url and invokes the specified
1787 callback function. The function is a wrapper around
1788 <a href=
"LuCI.Request.html#request"><code>Request.request()
</code></a>.
</p>
1799 <table class=
"params">
1810 <th class=
"last">Description
</th>
1819 <td class=
"name"><code>url
</code></td>
1825 <span class=
"param-type">string
</span>
1833 <td class=
"description last">
1840 <p>The URL to request.
</p></td>
1847 <td class=
"name"><code>args
</code></td>
1853 <span class=
"param-type">Object.
<string, string
></span>
1861 <td class=
"description last">
1864 <span class=
"optional">optional
</span>
1870 <p>Additional query string arguments to append to the URL.
</p></td>
1877 <td class=
"name"><code>cb
</code></td>
1883 <span class=
"param-type"><a href=
"LuCI.html#.requestCallbackFn">LuCI.requestCallbackFn
</a></span>
1891 <td class=
"description last">
1898 <p>The callback function to invoke when the request finishes.
</p></td>
1907 <dl class=
"details">
1915 <dt class=
"important tag-deprecated">Deprecated
</dt><dd class=
"yes-def tag-deprecated"><ul class=
"dummy"><li>Yes
</li></ul></dd>
1947 <table class=
"params">
1952 <th class=
"last">Description
</th>
1965 <td class=
"description last">Returns a promise resolving to
<code>null
</code> when concluded.
</td>
1979 <div class=
"nameContainer">
1980 <h4 class=
"name" id=
"halt">
1982 halt
<span class=
"signature">()
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{boolean}
</span>
1986 <div class=
"tag-source">
1997 <div class=
"description">
1998 <p>Deprecated wrapper around
<code>Poll.stop()
</code>.
</p>
2009 <dl class=
"details">
2017 <dt class=
"important tag-deprecated">Deprecated
</dt><dd class=
"yes-def tag-deprecated"><ul class=
"dummy"><li>Yes
</li></ul></dd>
2049 <table class=
"params">
2054 <th class=
"last">Description
</th>
2067 <td class=
"description last">Returns
<code>true
</code> when the polling loop has been stopped or
<code>false
</code>
2068 when it didn't run to begin with.
</td>
2082 <div class=
"nameContainer">
2083 <h4 class=
"name" id=
"hasSystemFeature">
2085 hasSystemFeature
<span class=
"signature">(feature,
<span class=
"optional">subfeature
</span>)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{boolean|null}
</span>
2089 <div class=
"tag-source">
2100 <div class=
"description">
2101 <p>Test whether a particular system feature is available, such as
2102 hostapd SAE support or an installed firewall. The features are
2103 queried once at the beginning of the LuCI session and cached in
2104 <code>SessionStorage
</code> throughout the lifetime of the associated tab or
2116 <table class=
"params">
2127 <th class=
"last">Description
</th>
2136 <td class=
"name"><code>feature
</code></td>
2142 <span class=
"param-type">string
</span>
2150 <td class=
"description last">
2157 <p>The feature to test. For detailed list of known feature flags,
2158 see
<code>/modules/luci-base/root/usr/libexec/rpcd/luci
</code>.
</p></td>
2165 <td class=
"name"><code>subfeature
</code></td>
2171 <span class=
"param-type">string
</span>
2179 <td class=
"description last">
2182 <span class=
"optional">optional
</span>
2188 <p>Some feature classes like
<code>hostapd
</code> provide sub-feature flags,
2189 such as
<code>sae
</code> or
<code>11w
</code> support. The
<code>subfeature
</code> argument can
2190 be used to query these.
</p></td>
2199 <dl class=
"details">
2237 <table class=
"params">
2242 <th class=
"last">Description
</th>
2258 <td class=
"description last">Return
<code>true
</code> if the queried feature (and sub-feature) is available
2259 or
<code>false
</code> if the requested feature isn't present or known.
2260 Return
<code>null
</code> when a sub-feature was queried for a feature which
2261 has no sub-features.
</td>
2275 <div class=
"nameContainer">
2276 <h4 class=
"name" id=
"isObject">
2278 isObject
<span class=
"signature">(
<span class=
"optional">val
</span>)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{boolean}
</span>
2282 <div class=
"tag-source">
2293 <div class=
"description">
2294 <p>Tests whether the passed argument is a JavaScript object.
2295 This function is meant to be an object counterpart to the
2296 standard
<code>Array.isArray()
</code> function.
</p>
2307 <table class=
"params">
2318 <th class=
"last">Description
</th>
2327 <td class=
"name"><code>val
</code></td>
2333 <span class=
"param-type">*
</span>
2341 <td class=
"description last">
2344 <span class=
"optional">optional
</span>
2350 <p>The value to test
</p></td>
2359 <dl class=
"details">
2397 <table class=
"params">
2402 <th class=
"last">Description
</th>
2415 <td class=
"description last">Returns
<code>true
</code> if the given value is of type object and
2416 not
<code>null
</code>, else returns
<code>false
</code>.
</td>
2430 <div class=
"nameContainer">
2431 <h4 class=
"name" id=
"location">
2433 location
<span class=
"signature">()
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{string}
</span>
2437 <div class=
"tag-source">
2448 <div class=
"description">
2449 <p>Return the complete URL path to the current view.
</p>
2460 <dl class=
"details">
2498 <table class=
"params">
2503 <th class=
"last">Description
</th>
2516 <td class=
"description last">Returns the URL path to the current view.
</td>
2530 <div class=
"nameContainer">
2531 <h4 class=
"name" id=
"path">
2533 path
<span class=
"signature">(
<span class=
"optional">prefix
</span>,
<span class=
"optional">parts
</span>)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{string}
</span>
2537 <div class=
"tag-source">
2548 <div class=
"description">
2549 <p>Construct a relative URL path from the given prefix and parts.
2550 The resulting URL is guaranteed to only contain the characters
2551 <code>a-z
</code>,
<code>A-Z
</code>,
<code>0-
9</code>,
<code>_
</code>,
<code>.
</code>,
<code>%
</code>,
<code>,
</code>,
<code>;
</code>, and
<code>-
</code> as well
2552 as
<code>/
</code> for the path separator.
</p>
2563 <table class=
"params">
2574 <th class=
"last">Description
</th>
2583 <td class=
"name"><code>prefix
</code></td>
2589 <span class=
"param-type">string
</span>
2597 <td class=
"description last">
2600 <span class=
"optional">optional
</span>
2606 <p>The prefix to join the given parts with. If the
<code>prefix
</code> is
2607 omitted, it defaults to an empty string.
</p></td>
2614 <td class=
"name"><code>parts
</code></td>
2620 <span class=
"param-type">Array.
<string
></span>
2628 <td class=
"description last">
2631 <span class=
"optional">optional
</span>
2637 <p>An array of parts to join into an URL path. Parts may contain
2638 slashes and any of the other characters mentioned above.
</p></td>
2647 <dl class=
"details">
2685 <table class=
"params">
2690 <th class=
"last">Description
</th>
2703 <td class=
"description last">Return the joined URL path.
</td>
2717 <div class=
"nameContainer">
2718 <h4 class=
"name" id=
"poll">
2720 poll
<span class=
"signature">(interval, url,
<span class=
"optional">args
</span>, cb,
<span class=
"optional">post
</span>)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{function}
</span>
2724 <div class=
"tag-source">
2735 <div class=
"description">
2736 <p>Register a polling HTTP request that invokes the specified
2737 callback function. The function is a wrapper around
2738 <a href=
"LuCI.Request.poll.html#add"><code>Request.poll.add()
</code></a>.
</p>
2749 <table class=
"params">
2762 <th class=
"last">Description
</th>
2771 <td class=
"name"><code>interval
</code></td>
2777 <span class=
"param-type">number
</span>
2784 <td class=
"default">
2789 <td class=
"description last">
2796 <p>The poll interval to use. If set to a value less than or equal
2797 to
<code>0</code>, it will default to the global poll interval configured
2798 in
<code>LuCI.env.pollinterval
</code>.
</p></td>
2805 <td class=
"name"><code>url
</code></td>
2811 <span class=
"param-type">string
</span>
2818 <td class=
"default">
2823 <td class=
"description last">
2830 <p>The URL to request.
</p></td>
2837 <td class=
"name"><code>args
</code></td>
2843 <span class=
"param-type">Object.
<string, string
></span>
2850 <td class=
"default">
2855 <td class=
"description last">
2858 <span class=
"optional">optional
</span>
2864 <p>Specifies additional arguments for the request. For GET requests,
2865 the arguments are appended to the URL as query string, for POST
2866 requests, they'll be added to the request body.
</p></td>
2873 <td class=
"name"><code>cb
</code></td>
2879 <span class=
"param-type"><a href=
"LuCI.html#.requestCallbackFn">LuCI.requestCallbackFn
</a></span>
2886 <td class=
"default">
2891 <td class=
"description last">
2898 <p>The callback function to invoke whenever a request finishes.
</p></td>
2905 <td class=
"name"><code>post
</code></td>
2911 <span class=
"param-type">boolean
</span>
2918 <td class=
"default">
2925 <td class=
"description last">
2928 <span class=
"optional">optional
</span>
2934 <p>When set to
<code>false
</code> or not specified, poll requests will be made
2935 using the GET method. When set to
<code>true
</code>, POST requests will be
2936 issued. In case of POST requests, the request body will contain
2937 an argument
<code>token
</code> with the current value of
<code>LuCI.env.token
</code> by
2938 default, regardless of the parameters specified with
<code>args
</code>.
</p></td>
2947 <dl class=
"details">
2955 <dt class=
"important tag-deprecated">Deprecated
</dt><dd class=
"yes-def tag-deprecated"><ul class=
"dummy"><li>Yes
</li></ul></dd>
2987 <table class=
"params">
2992 <th class=
"last">Description
</th>
3005 <td class=
"description last">Returns the internally created function that has been passed to
3006 <a href=
"LuCI.Request.poll.html#add"><code>Request.poll.add()
</code></a>. This value can
3007 be passed to
<code>Poll.remove()
</code> to remove the
3008 polling request.
</td>
3022 <div class=
"nameContainer">
3023 <h4 class=
"name" id=
"post">
3025 post
<span class=
"signature">(url,
<span class=
"optional">args
</span>, cb)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{Promise.
<null
>}
</span>
3029 <div class=
"tag-source">
3040 <div class=
"description">
3041 <p>Issues a POST request to the given url and invokes the specified
3042 callback function. The function is a wrapper around
3043 <a href=
"LuCI.Request.html#request"><code>Request.request()
</code></a>. The request is
3044 sent using
<code>application/x-www-form-urlencoded
</code> encoding and will
3045 contain a field
<code>token
</code> with the current value of
<code>LuCI.env.token
</code>
3057 <table class=
"params">
3068 <th class=
"last">Description
</th>
3077 <td class=
"name"><code>url
</code></td>
3083 <span class=
"param-type">string
</span>
3091 <td class=
"description last">
3098 <p>The URL to request.
</p></td>
3105 <td class=
"name"><code>args
</code></td>
3111 <span class=
"param-type">Object.
<string, string
></span>
3119 <td class=
"description last">
3122 <span class=
"optional">optional
</span>
3128 <p>Additional post arguments to append to the request body.
</p></td>
3135 <td class=
"name"><code>cb
</code></td>
3141 <span class=
"param-type"><a href=
"LuCI.html#.requestCallbackFn">LuCI.requestCallbackFn
</a></span>
3149 <td class=
"description last">
3156 <p>The callback function to invoke when the request finishes.
</p></td>
3165 <dl class=
"details">
3173 <dt class=
"important tag-deprecated">Deprecated
</dt><dd class=
"yes-def tag-deprecated"><ul class=
"dummy"><li>Yes
</li></ul></dd>
3205 <table class=
"params">
3210 <th class=
"last">Description
</th>
3223 <td class=
"description last">Returns a promise resolving to
<code>null
</code> when concluded.
</td>
3237 <div class=
"nameContainer">
3238 <h4 class=
"name" id=
"raise">
3240 raise
<span class=
"signature">(
<span class=
"optional">type
</span>,
<span class=
"optional">fmt
</span>,
<span class=
"optional">args
</span>)
</span>
3244 <div class=
"tag-source">
3255 <div class=
"description">
3256 <p>Captures the current stack trace and throws an error of the
3257 specified type as a new exception. Also logs the exception as
3258 error to the debug console if it is available.
</p>
3269 <table class=
"params">
3282 <th class=
"last">Description
</th>
3291 <td class=
"name"><code>type
</code></td>
3297 <span class=
"param-type">Error
</span>
3300 <span class=
"param-type">string
</span>
3307 <td class=
"default">
3314 <td class=
"description last">
3317 <span class=
"optional">optional
</span>
3323 <p>Either a string specifying the type of the error to throw or an
3324 existing
<code>Error
</code> instance to copy.
</p></td>
3331 <td class=
"name"><code>fmt
</code></td>
3337 <span class=
"param-type">string
</span>
3344 <td class=
"default">
3351 <td class=
"description last">
3354 <span class=
"optional">optional
</span>
3360 <p>A format string which is used to form the error message, together
3361 with all subsequent optional arguments.
</p></td>
3368 <td class=
"name"><code>args
</code></td>
3374 <span class=
"param-type">*
</span>
3381 <td class=
"default">
3386 <td class=
"description last">
3389 <span class=
"optional">optional
</span>
3394 <span class=
"repeatable">repeatable
</span>
3397 <p>Zero or more variable arguments to the supplied format string.
</p></td>
3406 <dl class=
"details">
3444 <div class=
"param-desc">
3445 <p>Throws the created error object with the captured stack trace
3446 appended to the message and the type set to the given type
3447 argument or copied from the given error instance.
</p>
3457 <span class=
"param-type">Error
</span>
3476 <div class=
"nameContainer">
3477 <h4 class=
"name" id=
"require">
3479 require
<span class=
"signature">(name)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{Promise.
<LuCI#Class
>}
</span>
3483 <div class=
"tag-source">
3494 <div class=
"description">
3495 <p>Load an additional LuCI JavaScript class and its dependencies,
3496 instantiate it and return the resulting class instance. Each
3497 class is only loaded once. Subsequent attempts to load the same
3498 class will return the already instantiated class.
</p>
3509 <table class=
"params">
3520 <th class=
"last">Description
</th>
3529 <td class=
"name"><code>name
</code></td>
3535 <span class=
"param-type">string
</span>
3543 <td class=
"description last">
3545 <p>The name of the class to load in dotted notation. Dots will
3546 be replaced by spaces and joined with the runtime-determined
3547 base URL of LuCI.js to form an absolute URL to load the class
3557 <dl class=
"details">
3595 <div class=
"param-desc">
3596 <p>Throws a
<code>DependencyError
</code> when the class to load includes
3597 circular dependencies.
</p>
3607 <span class=
"param-type">DependencyError
</span>
3621 <div class=
"param-desc">
3622 <p>Throws
<code>NetworkError
</code> when the underlying
<a href=
"LuCI.Request.html"><code>LuCI.Request
</code></a>
3633 <span class=
"param-type">NetworkError
</span>
3647 <div class=
"param-desc">
3648 <p>Throws
<code>SyntaxError
</code> when the loaded class file code cannot
3649 be interpreted by
<code>eval
</code>.
</p>
3659 <span class=
"param-type">SyntaxError
</span>
3673 <div class=
"param-desc">
3674 <p>Throws
<code>TypeError
</code> when the class file could be loaded and
3675 interpreted, but when invoking its code did not yield a valid
3686 <span class=
"param-type">TypeError
</span>
3702 <table class=
"params">
3707 <th class=
"last">Description
</th>
3716 Promise.
<LuCI#Class
>
3720 <td class=
"description last">Returns the instantiated class.
</td>
3734 <div class=
"nameContainer">
3735 <h4 class=
"name" id=
"resolveDefault">
3737 resolveDefault
<span class=
"signature">(value, defvalue)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{Promise.
<*
>}
</span>
3741 <div class=
"tag-source">
3752 <div class=
"description">
3753 <p>Returns a promise resolving with either the given value or or with
3754 the given default in case the input value is a rejecting promise.
</p>
3765 <table class=
"params">
3776 <th class=
"last">Description
</th>
3785 <td class=
"name"><code>value
</code></td>
3791 <span class=
"param-type">*
</span>
3799 <td class=
"description last">
3801 <p>The value to resolve the promise with.
</p></td>
3808 <td class=
"name"><code>defvalue
</code></td>
3814 <span class=
"param-type">*
</span>
3822 <td class=
"description last">
3824 <p>The default value to resolve the promise with in case the given
3825 input value is a rejecting promise.
</p></td>
3834 <dl class=
"details">
3872 <table class=
"params">
3877 <th class=
"last">Description
</th>
3890 <td class=
"description last">Returns a new promise resolving either to the given input value or
3891 to the given default value on error.
</td>
3905 <div class=
"nameContainer">
3906 <h4 class=
"name" id=
"resource">
3908 resource
<span class=
"signature">(
<span class=
"optional">parts
</span>)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{string}
</span>
3912 <div class=
"tag-source">
3923 <div class=
"description">
3924 <p>Construct an URL path relative to the global static resource path
3925 of the LuCI ui (usually
<code>/luci-static/resources
</code>).
</p>
3926 <p>The resulting URL is guaranteed to only contain the characters
3927 <code>a-z
</code>,
<code>A-Z
</code>,
<code>0-
9</code>,
<code>_
</code>,
<code>.
</code>,
<code>%
</code>,
<code>,
</code>,
<code>;
</code>, and
<code>-
</code> as well
3928 as
<code>/
</code> for the path separator.
</p>
3939 <table class=
"params">
3950 <th class=
"last">Description
</th>
3959 <td class=
"name"><code>parts
</code></td>
3965 <span class=
"param-type">Array.
<string
></span>
3973 <td class=
"description last">
3976 <span class=
"optional">optional
</span>
3982 <p>An array of parts to join into an URL path. Parts may contain
3983 slashes and any of the other characters mentioned above.
</p></td>
3992 <dl class=
"details">
4030 <table class=
"params">
4035 <th class=
"last">Description
</th>
4048 <td class=
"description last">Returns the resulting URL path.
</td>
4062 <div class=
"nameContainer">
4063 <h4 class=
"name" id=
"run">
4065 run
<span class=
"signature">()
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{boolean}
</span>
4069 <div class=
"tag-source">
4080 <div class=
"description">
4081 <p>Deprecated wrapper around
<code>Poll.start()
</code>.
</p>
4092 <dl class=
"details">
4100 <dt class=
"important tag-deprecated">Deprecated
</dt><dd class=
"yes-def tag-deprecated"><ul class=
"dummy"><li>Yes
</li></ul></dd>
4132 <table class=
"params">
4137 <th class=
"last">Description
</th>
4150 <td class=
"description last">Returns
<code>true
</code> when the polling loop has been started or
<code>false
</code>
4151 when it was already running.
</td>
4165 <div class=
"nameContainer">
4166 <h4 class=
"name" id=
"sortedKeys">
4168 sortedKeys
<span class=
"signature">(obj,
<span class=
"optional">key
</span>,
<span class=
"optional">sortmode
</span>)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{Array.
<string
>}
</span>
4172 <div class=
"tag-source">
4183 <div class=
"description">
4184 <p>Return an array of sorted object keys, optionally sorted by
4185 a different key or a different sorting mode.
</p>
4196 <table class=
"params">
4207 <th class=
"last">Description
</th>
4216 <td class=
"name"><code>obj
</code></td>
4222 <span class=
"param-type">object
</span>
4230 <td class=
"description last">
4237 <p>The object to extract the keys from. If the given value is
4238 not an object, the function will return an empty array.
</p></td>
4245 <td class=
"name"><code>key
</code></td>
4251 <span class=
"param-type">string
</span>
4259 <td class=
"description last">
4262 <span class=
"optional">optional
</span>
4268 <p>Specifies the key to order by. This is mainly useful for
4269 nested objects of objects or objects of arrays when sorting
4270 shall not be performed by the primary object keys but by
4271 some other key pointing to a value within the nested values.
</p></td>
4278 <td class=
"name"><code>sortmode
</code></td>
4284 <span class=
"param-type">string
</span>
4292 <td class=
"description last">
4295 <span class=
"optional">optional
</span>
4301 <p>May be either
<code>addr
</code> or
<code>num
</code> to override the natural
4302 lexicographic sorting with a sorting suitable for IP/MAC style
4303 addresses or numeric values respectively.
</p></td>
4312 <dl class=
"details">
4350 <table class=
"params">
4355 <th class=
"last">Description
</th>
4368 <td class=
"description last">Returns an array containing the sorted keys of the given object.
</td>
4382 <div class=
"nameContainer">
4383 <h4 class=
"name" id=
"stop">
4385 stop
<span class=
"signature">(entry)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{boolean}
</span>
4389 <div class=
"tag-source">
4400 <div class=
"description">
4401 <p>Deprecated wrapper around
<code>Poll.remove()
</code>.
</p>
4412 <table class=
"params">
4423 <th class=
"last">Description
</th>
4432 <td class=
"name"><code>entry
</code></td>
4438 <span class=
"param-type">function
</span>
4446 <td class=
"description last">
4448 <p>The polling function to remove.
</p></td>
4457 <dl class=
"details">
4465 <dt class=
"important tag-deprecated">Deprecated
</dt><dd class=
"yes-def tag-deprecated"><ul class=
"dummy"><li>Yes
</li></ul></dd>
4497 <table class=
"params">
4502 <th class=
"last">Description
</th>
4515 <td class=
"description last">Returns
<code>true
</code> when the function has been removed or
<code>false
</code> if
4516 it could not be found.
</td>
4530 <div class=
"nameContainer">
4531 <h4 class=
"name" id=
"toArray">
4533 toArray
<span class=
"signature">(val)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{Array.
<*
>}
</span>
4537 <div class=
"tag-source">
4548 <div class=
"description">
4549 <p>Converts the given value to an array. If the given value is of
4550 type array, it is returned as-is, values of type object are
4551 returned as one-element array containing the object, empty
4552 strings and
<code>null
</code> values are returned as empty array, all other
4553 values are converted using
<code>String()
</code>, trimmed, split on white
4554 space and returned as array.
</p>
4565 <table class=
"params">
4576 <th class=
"last">Description
</th>
4585 <td class=
"name"><code>val
</code></td>
4591 <span class=
"param-type">*
</span>
4599 <td class=
"description last">
4601 <p>The value to convert into an array.
</p></td>
4610 <dl class=
"details">
4648 <table class=
"params">
4653 <th class=
"last">Description
</th>
4666 <td class=
"description last">Returns the resulting array.
</td>
4680 <div class=
"nameContainer">
4681 <h4 class=
"name" id=
"url">
4683 url
<span class=
"signature">(
<span class=
"optional">parts
</span>)
</span><span class=
"glyphicon glyphicon-circle-arrow-right"></span><span class=
"type-signature returnType">{string}
</span>
4687 <div class=
"tag-source">
4698 <div class=
"description">
4699 <p>Construct an URL pathrelative to the script path of the server
4700 side LuCI application (usually
<code>/cgi-bin/luci
</code>).
</p>
4701 <p>The resulting URL is guaranteed to only contain the characters
4702 <code>a-z
</code>,
<code>A-Z
</code>,
<code>0-
9</code>,
<code>_
</code>,
<code>.
</code>,
<code>%
</code>,
<code>,
</code>,
<code>;
</code>, and
<code>-
</code> as well
4703 as
<code>/
</code> for the path separator.
</p>
4714 <table class=
"params">
4725 <th class=
"last">Description
</th>
4734 <td class=
"name"><code>parts
</code></td>
4740 <span class=
"param-type">Array.
<string
></span>
4748 <td class=
"description last">
4751 <span class=
"optional">optional
</span>
4757 <p>An array of parts to join into an URL path. Parts may contain
4758 slashes and any of the other characters mentioned above.
</p></td>
4767 <dl class=
"details">
4805 <table class=
"params">
4810 <th class=
"last">Description
</th>
4823 <td class=
"description last">Returns the resulting URL path.
</td>
4838 <h3 class=
"subsection-title">Type Definitions
</h3>
4843 <div class=
"nameContainer">
4844 <h4 class=
"name" id=
".requestCallbackFn">
4846 LuCI.requestCallbackFn
<span class=
"signature">(xhr, data, duration)
</span>
4850 <div class=
"tag-source">
4861 <div class=
"description">
4862 <p>The request callback function is invoked whenever an HTTP
4863 reply to a request made using the
<code>L.get()
</code>,
<code>L.post()
</code> or
4864 <code>L.poll()
</code> function is timed out or received successfully.
</p>
4875 <table class=
"params">
4886 <th class=
"last">Description
</th>
4895 <td class=
"name"><code>xhr
</code></td>
4901 <span class=
"param-type">XMLHTTPRequest
</span>
4909 <td class=
"description last">
4911 <p>The XMLHTTPRequest instance used to make the request.
</p></td>
4918 <td class=
"name"><code>data
</code></td>
4924 <span class=
"param-type">*
</span>
4932 <td class=
"description last">
4934 <p>The response JSON if the response could be parsed as such,
4935 else
<code>null
</code>.
</p></td>
4942 <td class=
"name"><code>duration
</code></td>
4948 <span class=
"param-type">number
</span>
4956 <td class=
"description last">
4958 <p>The total duration of the request in milliseconds.
</p></td>
4967 <dl class=
"details">
5022 Documentation generated by
<a target=
"_blank" href=
"https://github.com/jsdoc3/jsdoc">JSDoc
3.6.3</a> on Thu Nov
07 2019 12:
20:
51 GMT+
0100 (Central European Standard Time)
5026 <script>prettyPrint();
</script>
5027 <script src=
"scripts/jaguar.js"></script>