X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=documentation%2Fapi%2Fmodules%2Fluci.model.uci.html;h=c84d1eb0eb54235709d47c61360d68046b9978b6;hp=9e50d9900deb9626f357d07765ce3f50012df09c;hb=0a1f44c293231c64c3ceb352637a5c3584fba50c;hpb=3d0e8deedeb811184e672684f75030bbbba7d9d3 diff --git a/documentation/api/modules/luci.model.uci.html b/documentation/api/modules/luci.model.uci.html index 9e50d9900..c84d1eb0e 100644 --- a/documentation/api/modules/luci.model.uci.html +++ b/documentation/api/modules/luci.model.uci.html @@ -903,7 +903,8 @@ Get an option or list and return values as table.

Return value:

-UCI value +table. If the option was not found, you will simply get + an empty table. @@ -1119,6 +1120,12 @@ Name of created section Set a value or create a named section. + +When invoked with three arguments config, sectionname, sectiontype, +then a named section of the given type is created. + +When invoked with four arguments config, sectionname, optionname and +optionvalue then the value of the specified option is set to the given value. @@ -1138,7 +1145,7 @@ Set a value or create a named section.
  • - value: UCI value or nil if you want to create a section + value: UCI value or nothing if you want to create a section
  • @@ -1194,7 +1201,8 @@ Boolean whether operation succeeded
    -Set given values as list. +Set given values as list. Setting a list option to an empty list +has the same effect as deleting the option. @@ -1214,7 +1222,7 @@ Set given values as list.
  • - value: UCI value + value: value or table. Raw values will become a single item table.