summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/inc/locationutil.inc.php
Commit message (Collapse)AuthorAgeFilesLines
* [locations] Fix falsy checksSimon Rettberg2025-12-031-6/+6
| | | | Thanks Junie AI
* [locations] Cleanup Location classSimon Rettberg2025-07-071-2/+2
| | | | | | | | | | There was a mess of functions which mostly, but not quite, did the same things. Get rid of a couple of them and fix call sites to use alternative ones that also fit the job. While at it, add phpdoc and comments to the remaining functions, trying to clarify what they were designed for. Lastly, the return type of functions that retrieve a location id has been changed from false|int to ?int (nullable types are just nicer).
* Fix more type errors, stricter typingSimon Rettberg2023-11-151-8/+3Star
|
* Add function param/return types, fix a lot more phpstorm complaintsSimon Rettberg2023-11-141-9/+7Star
|
* Roundup of issues reported by PHPStormSimon Rettberg2023-11-021-1/+1
| | | | Mostly redundant checks, logic errors, dead code, etc.
* [locations] cleanup: Hide/disable move button if action not availableSimon Rettberg2023-05-121-4/+1Star
| | | | | | Hide the button entirely if there are no movable machines in the displayed list. Disable the button as long as the user selected at least one unmovable machine.
* Moderize Database handlingSimon Rettberg2021-05-111-1/+1
| | | | | | | * Auto-convert to utf8mb4_unicode_520_ci * Use foreach instead of while to loop over results * Drop useless statement caching * Keep emulated prepares, as we sometimes loop over nested queries
* [locations] Refine location matching checksSimon Rettberg2019-08-011-7/+12
|
* [locations] Add warnings/cleanup for bad machine to roomplan mappingsSimon Rettberg2019-07-311-0/+203
|
* [locations] Optimize some functions in Location classSimon Rettberg2019-07-291-0/+1
* Casts are faster than settype. * Check if assoc location cache is already populated. * getLocationRootChain can use the parents array from that location instead of building the array from scratch.