1 | <?php |
||
18 | class GravityView_Plugin_Hooks_Gravity_Forms_Dropbox extends GravityView_Plugin_and_Theme_Hooks { |
||
19 | |||
20 | /** |
||
21 | * @var string gf_dropbox() wrapper function only exists in Version 2.x; don't want to support 1.x |
||
22 | * @since 1.22.3 |
||
23 | */ |
||
24 | protected $function_name = 'gf_dropbox'; |
||
25 | |||
26 | /** |
||
27 | * @since 1.22.3 |
||
28 | */ |
||
29 | protected function add_hooks() { |
||
34 | |||
35 | /** |
||
36 | * Convert links to view content on Dropbox.com to direct-access files |
||
37 | * |
||
38 | * @since 1.22.3 |
||
39 | * |
||
40 | * @param string $file_path |
||
41 | * @param array $file_path_info |
||
42 | * @param array $field_settings |
||
43 | * |
||
44 | * @return string File path, with Dropbox URLs modified |
||
45 | */ |
||
46 | function filter_file_path( $file_path = '', $file_path_info = array(), $field_settings = array() ) { |
||
53 | } |
||
54 | |||
55 | new GravityView_Plugin_Hooks_Gravity_Forms_Dropbox; |
The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.
The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.
To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.