This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Record Auto semicolon macro and bind shortcut to it: | |
| 1. Edit -> Macros -> Start Macro Recording | |
| 2. In the editor go to the end of line by pressing End | |
| 3. put semicolon ';' | |
| 4. Edit -> Macros -> Stop Macro Recording | |
| 5. Give a name, for example 'Auto semicolon' | |
| 6. Open settings (Ctrl + Alt + s), select Keymap | |
| 7. Expand Macros node | |
| 8. Select 'Auto semicolon', in the context menu choose Add Keyboard Shortcut | |
| 9. Set Ctrl + ; as First keystroke |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function toArray() | |
| { | |
| $reflectionClass = new \ReflectionClass(get_class($this)); | |
| $array = []; | |
| foreach ($reflectionClass->getProperties() as $property) { | |
| $property->setAccessible(true); | |
| $array[$property->getName()] = $property->getValue($this); | |
| $property->setAccessible(false); | |
| } |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "code": "AAA", | |
| "lat": "-17.3595", | |
| "lon": "-145.494", | |
| "name": "Anaa Airport", | |
| "city": "Anaa", | |
| "state": "Tuamotu-Gambier", | |
| "country": "French Polynesia", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function generateToken() | |
| { | |
| return bin2hex(openssl_random_pseudo_bytes(16)); | |
| } | |
| function getUrl() | |
| { | |
| $url = @( $_SERVER["HTTPS"] != 'on' ) ? 'http://'.$_SERVER["SERVER_NAME"] : 'https://'.$_SERVER["SERVER_NAME"]; | |
| $url .= ( $_SERVER["SERVER_PORT"] !== 80 ) ? ":".$_SERVER["SERVER_PORT"] : ""; | |
| $url .= $_SERVER["REQUEST_URI"]; |
NewerOlder