@@ -469,6 +469,11 @@ |
||
| 469 | 469 | * handler $fd - file handler where to write the records |
| 470 | 470 | * @return |
| 471 | 471 | */ |
| 472 | + |
|
| 473 | + /** |
|
| 474 | + * @param integer $start |
|
| 475 | + * @param integer $limit |
|
| 476 | + */ |
|
| 472 | 477 | public function export_table($databaseName, $tableName, $start, $limit, $dumpfile) |
| 473 | 478 | { |
| 474 | 479 | $this->logger->debug(sprintf(("Exporting table %s.%s data"), $databaseName, $tableName)); |
@@ -47,8 +47,6 @@ |
||
| 47 | 47 | * |
| 48 | 48 | * @since 1.0.0 |
| 49 | 49 | * |
| 50 | - * @param string $plugin_name The name of this plugin. |
|
| 51 | - * @param string $version The version of this plugin. |
|
| 52 | 50 | */ |
| 53 | 51 | public function __construct( Xcloner $xcloner_container ) { |
| 54 | 52 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * @return mixed |
|
| 55 | + * @return string |
|
| 56 | 56 | */ |
| 57 | 57 | public function get_target() |
| 58 | 58 | { |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | /** |
| 144 | - * @param $filename |
|
| 144 | + * @param string $filename |
|
| 145 | 145 | * @param string $mimetype |
| 146 | 146 | * @param string $postname |
| 147 | 147 | * |
@@ -281,6 +281,9 @@ |
||
| 281 | 281 | } |
| 282 | 282 | } |
| 283 | 283 | |
| 284 | + /** |
|
| 285 | + * @param string $storage_type |
|
| 286 | + */ |
|
| 284 | 287 | public function verify_filesystem( $storage_type ) { |
| 285 | 288 | $method = "get_" . $storage_type . "_filesystem"; |
| 286 | 289 | |
@@ -183,6 +183,9 @@ |
||
| 183 | 183 | return $wpdb->prefix; |
| 184 | 184 | } |
| 185 | 185 | |
| 186 | + /** |
|
| 187 | + * @param string $option |
|
| 188 | + */ |
|
| 186 | 189 | public function get_xcloner_option( $option ) { |
| 187 | 190 | $data = get_option( $option ); |
| 188 | 191 | |
@@ -45,8 +45,6 @@ |
||
| 45 | 45 | * |
| 46 | 46 | * @since 1.0.0 |
| 47 | 47 | * |
| 48 | - * @param string $plugin_name The name of the plugin. |
|
| 49 | - * @param string $version The version of this plugin. |
|
| 50 | 48 | */ |
| 51 | 49 | public function __construct( Xcloner $xcloner_container ) { |
| 52 | 50 | |
@@ -213,6 +213,10 @@ discard block |
||
| 213 | 213 | * |
| 214 | 214 | * @return bool |
| 215 | 215 | */ |
| 216 | + |
|
| 217 | + /** |
|
| 218 | + * @param string $error_message |
|
| 219 | + */ |
|
| 216 | 220 | public function send_notification_error($to, $from, $subject, $backup_name, $params, $error_message) |
| 217 | 221 | { |
| 218 | 222 | |
@@ -638,6 +642,10 @@ discard block |
||
| 638 | 642 | * Add file to archive |
| 639 | 643 | * |
| 640 | 644 | */ |
| 645 | + |
|
| 646 | + /** |
|
| 647 | + * @param integer $append |
|
| 648 | + */ |
|
| 641 | 649 | public function add_file_to_archive($file_info, $start_at_byte, $byte_limit = 0, $append, $filesystem) |
| 642 | 650 | { |
| 643 | 651 | |
@@ -207,6 +207,9 @@ discard block |
||
| 207 | 207 | return $this->start_filesystem->normalizeFileInfo($info); |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | + /** |
|
| 211 | + * @param string $file |
|
| 212 | + */ |
|
| 210 | 213 | public function get_storage_path_file_info($file) |
| 211 | 214 | { |
| 212 | 215 | return $this->getMetadataFull('storage_adapter', $file); |
@@ -741,6 +744,9 @@ discard block |
||
| 741 | 744 | |
| 742 | 745 | } |
| 743 | 746 | |
| 747 | + /** |
|
| 748 | + * @param string $tmp_file |
|
| 749 | + */ |
|
| 744 | 750 | public function estimate_reading_time($tmp_file) |
| 745 | 751 | { |
| 746 | 752 | $this->logger->debug(sprintf(("Estimating file system reading time"))); |
@@ -781,6 +787,9 @@ discard block |
||
| 781 | 787 | return $name; |
| 782 | 788 | } |
| 783 | 789 | |
| 790 | + /** |
|
| 791 | + * @param string $field |
|
| 792 | + */ |
|
| 784 | 793 | public function sort_by(&$array, $field, $direction = 'asc') |
| 785 | 794 | { |
| 786 | 795 | if (strtolower($direction) == "desc" || $direction == SORT_DESC) { |
@@ -149,6 +149,9 @@ |
||
| 149 | 149 | return $this->file_format_size( disk_free_space( $this->xcloner_settings->get_xcloner_store_path() ) ); |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | + /** |
|
| 153 | + * @param double $bytes |
|
| 154 | + */ |
|
| 152 | 155 | public function file_format_size( $bytes, $decimals = 2 ) { |
| 153 | 156 | $unit_list = array( 'B', 'KB', 'MB', 'GB', 'PB' ); |
| 154 | 157 | |