| 1 | <?php |
||
| 13 | class FrmInstallerSkin extends WP_Upgrader_Skin { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Set the upgrader object and store it as a property in the parent class. |
||
| 17 | * |
||
| 18 | * @since 3.04.02 |
||
| 19 | * |
||
| 20 | * @param object $upgrader The upgrader object (passed by reference). |
||
| 21 | */ |
||
| 22 | public function set_upgrader( &$upgrader ) { |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Set the upgrader result and store it as a property in the parent class. |
||
| 30 | * |
||
| 31 | * @since 3.04.02 |
||
| 32 | * |
||
| 33 | * @param object $result The result of the install process. |
||
| 34 | */ |
||
| 35 | public function set_result( $result ) { |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Empty out the header of its HTML content and only check to see if it has |
||
| 41 | * been performed or not. |
||
| 42 | * |
||
| 43 | * @since 3.04.02 |
||
| 44 | */ |
||
| 45 | public function header() {} |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Empty out the footer of its HTML contents. |
||
| 49 | * |
||
| 50 | * @since 3.04.02 |
||
| 51 | */ |
||
| 52 | function footer() {} |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Instead of outputting HTML for errors, json_encode the errors and send them |
||
| 56 | * back to the Ajax script for processing. |
||
| 57 | * |
||
| 58 | * @since 3.04.02 |
||
| 59 | * |
||
| 60 | * @param array $errors Array of errors with the install process. |
||
| 61 | */ |
||
| 62 | function error( $errors ) { |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Empty out the feedback method to prevent outputting HTML strings as the install |
||
| 71 | * is progressing. |
||
| 72 | * |
||
| 73 | * @since 3.04.02 |
||
| 74 | * |
||
| 75 | * @param string $string The feedback string. |
||
| 76 | */ |
||
| 77 | function feedback( $string ) {} |
||
| 78 | |||
| 79 | } |
||
| 80 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.