@@ -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 |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * Returns the filename with encrypted suffix |
72 | 72 | * |
73 | - * @param $filename |
|
73 | + * @param string $filename |
|
74 | 74 | * @return string |
75 | 75 | */ |
76 | 76 | public function get_encrypted_target_backup_file_name( $filename ) { |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * Returns the filename without encrypted suffix |
83 | 83 | * |
84 | - * @param $filename |
|
84 | + * @param string $filename |
|
85 | 85 | * @return string |
86 | 86 | */ |
87 | 87 | public function get_decrypted_target_backup_file_name( $filename ) { |
@@ -96,8 +96,8 @@ discard block |
||
96 | 96 | * @param string $dest File name where the encryped file should be written to. |
97 | 97 | * @param string $key The key used for the encryption |
98 | 98 | * @param int $start Start position for reading when doing incremental mode. |
99 | - * @param string $iv The IV key to use. |
|
100 | - * @param bool $verfication Weather we should we try to verify the decryption. |
|
99 | + * @param integer $iv The IV key to use. |
|
100 | + * @param bool $verification Weather we should we try to verify the decryption. |
|
101 | 101 | * @return string|false Returns the file name that has been created or FALSE if an error occured |
102 | 102 | */ |
103 | 103 | public function encrypt_file($source, $dest = "" , $key= "", $start = 0, $iv = 0, $verification = true, $recursive = false) |
@@ -206,6 +206,9 @@ discard block |
||
206 | 206 | return array("target_file" => $dest, "finished" => 1); |
207 | 207 | } |
208 | 208 | |
209 | + /** |
|
210 | + * @param string $file |
|
211 | + */ |
|
209 | 212 | public function verify_encrypted_file($file) { |
210 | 213 | if(is_object($this->logger)) { |
211 | 214 | $this->logger->info(sprintf('Verifying encrypted file %s', $file)); |
@@ -224,7 +227,7 @@ discard block |
||
224 | 227 | * @param string $dest File name where the decryped file should be written to. |
225 | 228 | * @param string $key The key used for the decryption (must be the same as for encryption) |
226 | 229 | * @param int $start Start position for reading when doing incremental mode. |
227 | - * @param string $iv The IV key to use. |
|
230 | + * @param integer $iv The IV key to use. |
|
228 | 231 | * @return string|false Returns the file name that has been created or FALSE if an error occured |
229 | 232 | */ |
230 | 233 | public function decrypt_file($source, $dest = "", $key = "", $start = 0, $iv = 0, $recursive = false) |
@@ -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) { |