| 1 | <?php |
||
| 3 | class Xhgui_Util |
||
| 4 | { |
||
| 5 | /** |
||
| 6 | * Creates a simplified URL given a standard URL. |
||
| 7 | * Does the following transformations: |
||
| 8 | * |
||
| 9 | * - Remove numeric values after =. |
||
| 10 | * |
||
| 11 | * @param string $url |
||
| 12 | * @return string |
||
| 13 | */ |
||
| 14 | public static function simpleUrl($url) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Returns an new ObjectId-like string, where its first 8 |
||
| 25 | * characters encode the current unix timestamp and the |
||
| 26 | * next 16 are random. |
||
| 27 | * |
||
| 28 | * @see http://php.net/manual/en/mongodb-bson-objectid.construct.php |
||
| 29 | * |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public static function generateId() |
||
| 36 | |||
| 37 | } |
||
| 38 |