File modules/util/ClassUtils.class.php

Last commit: Sat Oct 17 02:16:28 2026 +0200	Jan Dankert	Refactoring: Removed empty view() and post() methods; OpenAPI cleanup, removed these unused paths.
1 <?php 2 3 namespace util; 4 /** 5 * Class ClassUtils 6 * @author Jan Dankert 7 */ 8 class ClassUtils 9 { 10 11 public static function getSimpleClassName($object): string 12 { 13 if (!is_object($object)) 14 return 'NotAnObject'; 15 16 return self::getSimple( get_class($object) ); 17 } 18 19 public static function getSimple(string $classname): string 20 { 21 if ($pos = strrpos($classname, '\\')) 22 return substr($classname, $pos + 1); 23 else 24 return $classname; 25 } 26 }
Download modules/util/ClassUtils.class.php
History Sat, 17 Oct 2026 02:16:28 +0200 Jan Dankert Refactoring: Removed empty view() and post() methods; OpenAPI cleanup, removed these unused paths. Sat, 22 Feb 2020 23:58:02 +0100 Jan Dankert Refactoring: Namespacing for module 'util'. Sat, 11 May 2019 02:50:43 +0200 Jan Dankert Einbau eines dedizierten Caches. Es ist fraglich, ob dieser Cache überhaupt sinnvoll ist, da beim Anzeigen von BLOBs das HTTP-Caching zum Zuge kommt. Sat, 1 Dec 2018 02:59:28 +0100 Jan Dankert Strategie-Muster für den Publisher einsetzen. Dadurch wird vieles einfacher.