Hotfix release available: 2026-07-14b "Mort".
upgrade now! [57.2] (what's this?)
onny:notizen:programmierung
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| onny:notizen:programmierung [2026/08/11 11:03] – [php] fdc9:281f:4d7:9ee9::1 | onny:notizen:programmierung [2026/08/18 11:23] (current) – [mariadb / mysql] fdc9:281f:4d7:9ee9::1 | ||
|---|---|---|---|
| Line 670: | Line 670: | ||
| printf(" | printf(" | ||
| printf(" | printf(" | ||
| + | </ | ||
| + | |||
| + | check if array key exists (avoid undefined warning) via "null casting" | ||
| + | |||
| + | <code php> | ||
| + | if ($config[' | ||
| </ | </ | ||
| ==== nextcloud app dev ==== | ==== nextcloud app dev ==== | ||
| Line 703: | Line 709: | ||
| </ | </ | ||
| + | logging | ||
| + | |||
| + | <code php> | ||
| + | $this-> | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ]); | ||
| + | </ | ||
| ==== wordpress ==== | ==== wordpress ==== | ||
| registering menus | registering menus | ||
| Line 911: | Line 926: | ||
| </ | </ | ||
| + | sort column by timestamp and convert to datetime | ||
| + | |||
| + | <code sql> | ||
| + | SELECT | ||
| + | `id`, | ||
| + | `calendarid`, | ||
| + | FROM_UNIXTIME(`firstoccurence`) AS firstoccurence, | ||
| + | FROM_UNIXTIME(`lastoccurence`) | ||
| + | FROM `oc_calendarobjects` | ||
| + | WHERE (`lastoccurence` < 1606694400) | ||
| + | AND (`firstoccurence` > 0) | ||
| + | AND (`componenttype` = ' | ||
| + | ORDER BY `lastoccurence` DESC; | ||
| + | </ | ||
onny/notizen/programmierung.1786446211.txt.gz · Last modified: by fdc9:281f:4d7:9ee9::1
