Completed
Push — master ( 5987fc...959a28 )
by
unknown
13:59
created
includes/modules/wps_message/controller/wps_message_ctr.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,6 +139,9 @@  discard block
 block discarded – undo
139 139
 		return $output;
140 140
 	}
141 141
 
142
+	/**
143
+	 * @param string $code
144
+	 */
142 145
 	public static function get_xml_messages( $code = null ) {
143 146
 		if ( is_null( self::$xml_messages ) ) {
144 147
 			$xml_default_emails = file_get_contents( WP_PLUGIN_DIR . '/' . WPSHOP_PLUGIN_DIR . '/assets/datas/default_emails.xml' );
@@ -328,7 +331,11 @@  discard block
 block discarded – undo
328 331
 
329 332
 	/** Store a new message
330 333
 	 *
331
-	 * @return boolean
334
+	 * @param string $email
335
+	 * @param string $title
336
+	 * @param string $message
337
+	 * @param integer $model_id
338
+	 * @return boolean|null
332 339
 	 */
333 340
 	function add_message( $recipient_id = 0, $email, $title, $message, $model_id, $object, $date = null ) {
334 341
 
Please login to merge, or discard this patch.
includes/wpshop_ajax.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -547,6 +547,10 @@  discard block
 block discarded – undo
547 547
 
548 548
 
549 549
 	/* Send a confirmation e-mail to the customer */
550
+
551
+	/**
552
+	 * @param integer $order_id
553
+	 */
550 554
 	function wpshop_send_confirmation_shipping_email($order_id){
551 555
 		$wps_message = new wps_message_ctr();
552 556
 		if ( !empty($order_id) ) {
@@ -2787,6 +2791,10 @@  discard block
 block discarded – undo
2787 2791
 		$product_id = ( !empty( $_POST ) && !empty( $_POST[ 'product_identifier' ] ) ) ? (int)$_POST[ 'product_identifier' ] : 0;
2788 2792
 		ajax_wpshop_fill_the_downloadable_dialog_exec($product_id);
2789 2793
 	}
2794
+
2795
+	/**
2796
+	 * @param integer $product_id
2797
+	 */
2790 2798
 	function ajax_wpshop_fill_the_downloadable_dialog_exec( $product_id ) {
2791 2799
 		$output  = '<form method="post" action="' .admin_url('admin-ajax.php') .'" id="upload_downloadable_file" enctype="multipart/form-data" >';
2792 2800
 		$output .= '<p class="formField"><label for="wpshop_file">' .__('Choose your file to send', 'wpshop'). '</label><input type="file" name="wpshop_file" /></p>';
Please login to merge, or discard this patch.