You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Workaround for sudden exceptions when the last command is /system/reboot;
Countable objects now implement the $mode argument;
Renamed changeMenu() to setMenu(), and added getMenu() for the purpose of chaneMenu() with an empty string;
Tweaked the VM settings, so that one arrives quicker at the copy&paste phase;
Moved the test callback into a separate file, thus making the tests no longer requiring allow_url_fopen;
CS and MD fixes (argument renames, mostly).
Copy file name to clipboardExpand all lines: RELEASE-1.0.0b5
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,20 @@ Console and some overall improvements.
4
4
* __BREAKING CHANGES:__
5
5
- Removed Message::getAllArguments() in favor of IteratorAggregate implementation that returns an ArrayObject. For most intents and purposes, you should be able to just search&replace "->getAllArguments()" with an empty string (that will implicitly call getIterator()). If you require the arguments as a "real" array, you can replace "->getAllArguments()" with "->getIterator()->getArrayCopy()".
6
6
- Message::\_\_invoke() without arguments is now a shortcut for getTag() instead of getting all arguments.
7
-
- Util::changeMenu() now returns the Util object itself, except when you supply an empty string, when the current menu is returned (as before).
7
+
- Util::changeMenu() is now renamed to Util::setMenu() and always returns the Util object itself.
8
8
* New Util methods:
9
-
- getall()
10
-
- count()
9
+
- getMenu() (serves the same purpose as previously Util::changeMenu() with an emptry string)
10
+
- getAll()
11
+
- count() (implementation of Countable, reports the number of items at the current menu)
11
12
- prepareScript()
12
-
* Message now implements Countable, reporting the number of arguments.
13
+
* Message now implements Countable, reporting the number of arguments (on COUNTER_NORMAL) or words (on COUNT_RECURSIVE).
13
14
* Util::get() now uses RouterOS' "get" command, unless it returns an empty !done response (as it does for RouterOS versions prior to 6.0), in which case it automatically fallbacks to a print with a query.
14
15
* Util::escapeValue() and Util::parseValue() now support associative arrays (introduced in RouterOS 6.2).
15
16
* Util::escapeValue() now correctly converts DateTime objects to DateInterval objects relative to UNIX epoch time in UTC. Previously, the current time zone was used instead of UTC.
16
17
* Util::add() and Util::set()/Util::edit() now support flags as values with a numeric key.
17
18
* ResponseCollection can now be searched by argument values, if you first designate an argument name with the new ResponseCollection::setIndex() method.
18
19
* ResponseCollection can now produce a sorted response collection based on user defined criteria using the new ResponseCollection::orderBy() method.
20
+
* Util::find() now always returns a comma separated list when used without arguments (as opposed to ";" separated, in more recent RouterOS versions).
21
+
* Response receiving now resets if an empty sentence is received, instead of throwing an exception.
19
22
* Doc fixes (Notably: Clarified the acceptability of seekable streams as argument values, which has been present for a long time, but never documented).
0 commit comments