| 1 | <?php |
||
| 3 | class Xhgui_Util |
||
| 4 | { |
||
| 5 | const KEY_DELIMITER = '__'; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Creates a simplified URL given a standard URL. |
||
| 9 | * Does the following transformations: |
||
| 10 | * |
||
| 11 | * - Remove numeric values after =. |
||
| 12 | * |
||
| 13 | * @param string $url |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | public static function simpleUrl($url) |
||
| 24 | |||
| 25 | public static function replaceDots(array $profile): array |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Returns an new ObjectId-like string, where its first 8 |
||
| 38 | * characters encode the current unix timestamp and the |
||
| 39 | * next 16 are random. |
||
| 40 | * |
||
| 41 | * @see http://php.net/manual/en/mongodb-bson-objectid.construct.php |
||
| 42 | * |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public static function generateId() |
||
| 49 | |||
| 50 | } |
||
| 51 |