|
23 | 23 | * |
24 | 24 | * @package eftec\statemachineone |
25 | 25 | * @author Jorge Patricio Castro Castillo <jcastro arroba eftec dot cl> |
26 | | - * @version 2.23 2022-09-11 |
| 26 | + * @version 2.23.1 2023-03-11 |
27 | 27 | * @license LGPL-3.0 (you could use in a comercial-close-source product but any change to this library must be shared) |
28 | 28 | * @link https://github.com/EFTEC/StateMachineOne |
29 | 29 | */ |
@@ -187,14 +187,14 @@ public function __construct(?object $serviceObject, $miniLangClass = MiniLang::c |
187 | 187 | * condition(s) also sets milk as 1</p> |
188 | 188 | * <p><b>"when wait timeout 500"</b> = transitions if has passed more than |
189 | 189 | * 500 seconds since the last stage</p> |
190 | | - * <p><b>"when true()"</b> = it always transitions. It is the same than |
| 190 | + * <p><b>"when true()"</b> = it always transitions. It is the same as |
191 | 191 | * "when |
192 | 192 | * 1=1" |
193 | 193 | * </p> |
194 | 194 | * @param string $result =['change','pause','continue','stop','stay'][$i] |
195 | 195 | * @param string|null $description |
196 | 196 | * @return int Returns the last id of the transaction. |
197 | | - * @see \eftec\statemachineone\StateMachineOne::setStates |
| 197 | + * @see StateMachineOne::setStates |
198 | 198 | * @noinspection DuplicatedCode |
199 | 199 | */ |
200 | 200 | public function addTransition($state0, $state1, $conditions, string $result = 'change', ?string $description = null): int |
@@ -234,7 +234,7 @@ public function addTransition($state0, $state1, $conditions, string $result = 'c |
234 | 234 | * @param string $result =['change','pause','continue','stop','stay'][$i] |
235 | 235 | * @param string|null $description An optional description |
236 | 236 | * @return int Returns the last id of the transaction. |
237 | | - * @see \eftec\statemachineone\StateMachineOne::setStates |
| 237 | + * @see StateMachineOne::setStates |
238 | 238 | * @noinspection DuplicatedCode |
239 | 239 | */ |
240 | 240 | public function addMethodTransition2($state0, $state1, $conditions, string $result = 'change', |
@@ -262,7 +262,7 @@ public function addMethodTransition2($state0, $state1, $conditions, string $resu |
262 | 262 | * @param string $then if then when/where condition is empty then it always true. |
263 | 263 | * @param string|null $description |
264 | 264 | * @return int Returns the last id of the transaction. |
265 | | - * @see \eftec\statemachineone\StateMachineOne::setStates |
| 265 | + * @see StateMachineOne::setStates |
266 | 266 | * @noinspection DuplicatedCode |
267 | 267 | */ |
268 | 268 | public function duringState($state, string $then, ?string $description = null): int |
@@ -293,7 +293,7 @@ public function duringState($state, string $then, ?string $description = null): |
293 | 293 | * @param string $then if then when/where condition is empty then it always true. |
294 | 294 | * @param string|null $description |
295 | 295 | * @return int Returns the last id of the transaction. |
296 | | - * @see \eftec\statemachineone\StateMachineOne::setStates |
| 296 | + * @see StateMachineOne::setStates |
297 | 297 | * @noinspection DuplicatedCode |
298 | 298 | */ |
299 | 299 | public function duringState2($state, string $then, ?string $description = null): int |
@@ -396,7 +396,7 @@ public function getPdoOne(): PdoOne |
396 | 396 | * |
397 | 397 | * @param PdoOne $pdoOne |
398 | 398 | * |
399 | | - * @see \eftec\statemachineone\StateMachineOne::setDB |
| 399 | + * @see StateMachineOne::setDB |
400 | 400 | */ |
401 | 401 | public function setPdoOne(PdoOne $pdoOne): void |
402 | 402 | { |
@@ -465,7 +465,7 @@ public function setDocDB( |
465 | 465 | * @param string $schema database(schema), example "sakila" |
466 | 466 | * |
467 | 467 | * @return bool true if the database is open |
468 | | - * @see \eftec\statemachineone\StateMachineOne::setPdoOne |
| 468 | + * @see StateMachineOne::setPdoOne |
469 | 469 | * |
470 | 470 | */ |
471 | 471 | public function setDB(string $type, string $server, string $user, string $pwd, string $schema): ?bool |
@@ -858,7 +858,7 @@ public function jobToArray(Job $job, bool $serializeCustom = true): array |
858 | 858 | $arr[$k] = $job->fields[$k]; |
859 | 859 | } |
860 | 860 | } elseif ($v instanceof StateSerializable) { |
861 | | - /** @see \eftec\statemachineone\Flags::__serialize */ |
| 861 | + /** @see Flags::__serialize */ |
862 | 862 | $text[$k] = $job->fields[$k]; //->toString(); |
863 | 863 | } |
864 | 864 | } |
@@ -956,7 +956,7 @@ private function dateToString($time = null): string |
956 | 956 | * @param array $arr |
957 | 957 | * |
958 | 958 | * @return bool|null |
959 | | - * @see \eftec\statemachineone\StateMachineOne::$customSaveDBJobLog |
| 959 | + * @see StateMachineOne |
960 | 960 | */ |
961 | 961 | public function saveDBJobLog(Job $job, array $arr): ?bool |
962 | 962 | { |
@@ -1383,7 +1383,7 @@ public function getJob(int $idJob): ?Job |
1383 | 1383 | * @param Job|null $job |
1384 | 1384 | * |
1385 | 1385 | * @throws Exception |
1386 | | - * @see \eftec\statemachineone\StateMachineOne::addEvent |
| 1386 | + * @see StateMachineOne::addEvent |
1387 | 1387 | */ |
1388 | 1388 | public function callEvent($name, ?Job $job = null): void |
1389 | 1389 | { |
@@ -1798,7 +1798,7 @@ public function viewUI(?Job $job = null, string $msg = ''): void |
1798 | 1798 | . htmlentities($job->fields[$colFields]->toString()) . "' />"; |
1799 | 1799 | $level = $job->fields[$colFields]->getMinLevel(); |
1800 | 1800 | $css = ($level == 0) ? 'alert-primary' : (($level == 1) ? 'alert-warning' : 'alert-danger'); |
1801 | | - /** @see \eftec\statemachineone\Flags::getStack() */ |
| 1801 | + /** @see Flags::getStack */ |
1802 | 1802 | $stack = $job->fields[$colFields]->getStack(); |
1803 | 1803 | echo "<div class='alert $css'>"; |
1804 | 1804 | foreach ($stack as $item) { |
@@ -1979,7 +1979,7 @@ private function viewUIField($type, $colFields, $value): void |
1979 | 1979 | break; |
1980 | 1980 | case 'NUMERIC': |
1981 | 1981 | echo "<input class='form-control' autocomplete='off' |
1982 | | - type='numeric' name='frm_$colFields' |
| 1982 | + type='number' name='frm_$colFields' |
1983 | 1983 | value='" . htmlentities($value) . "' /></br>"; |
1984 | 1984 | break; |
1985 | 1985 | default: |
|
0 commit comments