Changeset 887 for trunk/Modules/NetworkConfigRouterOS/Routerboard.php
- Timestamp:
- Nov 20, 2020, 12:08:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigRouterOS/Routerboard.php
r874 r887 19 19 } 20 20 21 function Execute( $Commands)21 function Execute(array $Commands): array 22 22 { 23 23 $Output = array(); … … 44 44 } 45 45 46 function ExecuteBatch( $Commands)46 function ExecuteBatch(string $Commands): string 47 47 { 48 48 $Commands = trim($Commands); … … 65 65 } 66 66 67 function ItemGet( $Path)67 function ItemGet(array $Path): array 68 68 { 69 69 $Result = $this->Execute(implode(' ', $Path).' print'); … … 82 82 } 83 83 84 function ListGet( $Path, $Properties, $Conditions = array())84 function ListGet(array $Path, array $Properties, array $Conditions = array()): array 85 85 { 86 86 $PropertyList = '"'; … … 116 116 } 117 117 118 function ListGetPrint($Path, $Properties, $Conditions = array()) 118 function ListGetPrint($Path, $Properties, $Conditions = array()): array 119 119 { 120 120 $ConditionList = ''; … … 151 151 } 152 152 153 function ListEraseAll( $Path)153 function ListEraseAll(array $Path): void 154 154 { 155 155 $this->Execute(implode(' ', $Path).' { remove [find] }'); 156 156 } 157 157 158 function ListUpdate( $Path, $Properties, $Values, $Condition = array(), $UsePrint = false)158 function ListUpdate(array $Path, array $Properties, array $Values, array $Condition = array(), bool $UsePrint = false): array 159 159 { 160 160 // Get current list from routerboard
Note:
See TracChangeset
for help on using the changeset viewer.