Completed
Pull Request — master (#2)
by Jimmy
1247:15 queued 1211:43
created
script/wp-emulator.script.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
 
159 159
 	function trailingslashit( $string )
160 160
 	{
161
-	    return untrailingslashit( $string ) . '/';
161
+		return untrailingslashit( $string ) . '/';
162 162
 	}
163 163
 
164 164
 	function untrailingslashit( $string )
165 165
 	{
166
-	        return rtrim( $string, '/\\' );
166
+			return rtrim( $string, '/\\' );
167 167
 	}
168 168
 
169 169
 	function site_url()
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 		public $term_relationships = "term_relationship";
289 289
 		public $term_taxonomy = "term_taxonomy";
290 290
 
291
-    }
291
+	}
292 292
 
293 293
 	class WP_Widget
294 294
 	{
Please login to merge, or discard this patch.
includes/librairies/shortcodes.class.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -30,39 +30,39 @@
 block discarded – undo
30 30
 	public $pageMessage = '';
31 31
 
32 32
 	/**
33
-	*	Get the url listing slug of the current class
34
-	*
35
-	*	@return string The table of the class
36
-	*/
33
+	 *	Get the url listing slug of the current class
34
+	 *
35
+	 *	@return string The table of the class
36
+	 */
37 37
 	function setMessage($message){
38 38
 		$this->pageMessage = $message;
39 39
 	}
40 40
 	/**
41
-	*	Get the url listing slug of the current class
42
-	*
43
-	*	@return string The table of the class
44
-	*/
41
+	 *	Get the url listing slug of the current class
42
+	 *
43
+	 *	@return string The table of the class
44
+	 */
45 45
 	function getListingSlug(){
46 46
 		return self::urlSlugListing;
47 47
 	}
48 48
 	/**
49
-	*	Get the url edition slug of the current class
50
-	*
51
-	*	@return string The table of the class
52
-	*/
49
+	 *	Get the url edition slug of the current class
50
+	 *
51
+	 *	@return string The table of the class
52
+	 */
53 53
 	function getEditionSlug(){
54 54
 		return self::urlSlugEdition;
55 55
 	}
56 56
 	/**
57
-	*	Get the database table of the current class
58
-	*
59
-	*	@return string The table of the class
60
-	*/
57
+	 *	Get the database table of the current class
58
+	 *
59
+	 *	@return string The table of the class
60
+	 */
61 61
 	/**
62
-	*	Define the title of the page
63
-	*
64
-	*	@return string $title The title of the page looking at the environnement
65
-	*/
62
+	 *	Define the title of the page
63
+	 *
64
+	 *	@return string $title The title of the page looking at the environnement
65
+	 */
66 66
 	function pageTitle(){
67 67
 		$action = isset($_REQUEST['action']) ? wpshop_tools::varSanitizer($_REQUEST['action']) : '';
68 68
 		$objectInEdition = isset($_REQUEST['id']) ? wpshop_tools::varSanitizer($_REQUEST['id']) : '';
Please login to merge, or discard this patch.
includes/librairies/eav/entities.class.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
53 53
 			'exclude_from_search'	=> true,
54 54
 			'capabilities'			=> array(
55 55
 				'edit_post' 			 => 'wpshop_view_dashboard',
56
-		        'edit_posts' 			 => 'wpshop_view_dashboard',
57
-		        'edit_others_posts' 	 => 'wpshop_view_dashboard',
58
-		        'publish_posts' 		 => 'wpshop_view_dashboard',
59
-		        'read_post' 			 => 'wpshop_view_dashboard',
60
-		        'read_private_posts' 	 => 'wpshop_view_dashboard',
56
+				'edit_posts' 			 => 'wpshop_view_dashboard',
57
+				'edit_others_posts' 	 => 'wpshop_view_dashboard',
58
+				'publish_posts' 		 => 'wpshop_view_dashboard',
59
+				'read_post' 			 => 'wpshop_view_dashboard',
60
+				'read_private_posts' 	 => 'wpshop_view_dashboard',
61 61
 				'delete_posts'			 => 'delete_product'
62 62
 			),
63 63
 		));
@@ -419,8 +419,8 @@  discard block
 block discarded – undo
419 419
 	 * Save informations for current entity
420 420
 	 */
421 421
 	public static function save_entities_custom_informations( $post ) {
422
-       global $wpdb;
423
-       global $wpshop_account;
422
+	   global $wpdb;
423
+	   global $wpshop_account;
424 424
 		$post_id = !empty($_REQUEST['post_ID']) ? intval( wpshop_tools::varSanitizer($_REQUEST['post_ID']) ) : null;
425 425
 
426 426
 		if ( !empty($post_id) && empty($_POST['edit_other_thing']) || ( !empty($_REQUEST['post_ID']) && !(bool)$_POST['edit_other_thing'] && get_post_type($_REQUEST['post_ID']) != WPSHOP_NEWTYPE_IDENTIFIER_ORDER  ) ) {
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
 		}
504 504
 
505 505
 		flush_rewrite_rules();
506
-    }
506
+	}
507 507
 
508 508
 
509 509
 	/**
Please login to merge, or discard this patch.
includes/librairies/eav/wp_list_custom_attributes_set.class.php 1 patch
Indentation   +203 added lines, -203 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
 	var $datas;
17 17
 
18 18
 	/** ************************************************************************
19
-	* REQUIRED. Set up a constructor that references the parent constructor. We
20
-	* use the parent reference to set some default configs.
21
-	***************************************************************************/
19
+	 * REQUIRED. Set up a constructor that references the parent constructor. We
20
+	 * use the parent reference to set some default configs.
21
+	 ***************************************************************************/
22 22
 	function __construct(){
23 23
 		global $status, $page;
24 24
 
@@ -44,18 +44,18 @@  discard block
 block discarded – undo
44 44
 	}
45 45
 
46 46
 	/** ************************************************************************
47
-	* REQUIRED! This method dictates the table's columns and titles. This should
48
-	* return an array where the key is the column slug (and class) and the value
49
-	* is the column's title text. If you need a checkbox for bulk actions, refer
50
-	* to the $columns array below.
51
-	*
52
-	* The 'cb' column is treated differently than the rest. If including a checkbox
53
-	* column in your table you must create a column_cb() method. If you don't need
54
-	* bulk actions or checkboxes, simply leave the 'cb' entry out of your array.
55
-	*
56
-	* @see WP_List_Table::::single_row_columns()
57
-	* @return array An associative array containing column information: 'slugs'=>'Visible Titles'
58
-	**************************************************************************/
47
+	 * REQUIRED! This method dictates the table's columns and titles. This should
48
+	 * return an array where the key is the column slug (and class) and the value
49
+	 * is the column's title text. If you need a checkbox for bulk actions, refer
50
+	 * to the $columns array below.
51
+	 *
52
+	 * The 'cb' column is treated differently than the rest. If including a checkbox
53
+	 * column in your table you must create a column_cb() method. If you don't need
54
+	 * bulk actions or checkboxes, simply leave the 'cb' entry out of your array.
55
+	 *
56
+	 * @see WP_List_Table::::single_row_columns()
57
+	 * @return array An associative array containing column information: 'slugs'=>'Visible Titles'
58
+	 **************************************************************************/
59 59
 	function get_columns(){
60 60
 		$columns = array(
61 61
 			'cb'       => '',//'<input type="checkbox" />', //Render a checkbox instead of text
@@ -69,26 +69,26 @@  discard block
 block discarded – undo
69 69
 	}
70 70
 
71 71
 	/** ************************************************************************
72
-	* Recommended. This method is called when the parent class can't find a method
73
-	* specifically build for a given column. Generally, it's recommended to include
74
-	* one method for each column you want to render, keeping your package class
75
-	* neat and organized. For example, if the class needs to process a column
76
-	* named 'title', it would first see if a method named $this->column_title()
77
-	* exists - if it does, that method will be used. If it doesn't, this one will
78
-	* be used. Generally, you should try to use custom column methods as much as
79
-	* possible.
80
-	*
81
-	* Since we have defined a column_title() method later on, this method doesn't
82
-	* need to concern itself with any column with a name of 'title'. Instead, it
83
-	* needs to handle everything else.
84
-	*
85
-	* For more detailed insight into how columns are handled, take a look at
86
-	* WP_List_Table::single_row_columns()
87
-	*
88
-	* @param array $item A singular item (one full row's worth of data)
89
-	* @param array $column_name The name/slug of the column to be processed
90
-	* @return string Text or HTML to be placed inside the column <td>
91
-	**************************************************************************/
72
+	 * Recommended. This method is called when the parent class can't find a method
73
+	 * specifically build for a given column. Generally, it's recommended to include
74
+	 * one method for each column you want to render, keeping your package class
75
+	 * neat and organized. For example, if the class needs to process a column
76
+	 * named 'title', it would first see if a method named $this->column_title()
77
+	 * exists - if it does, that method will be used. If it doesn't, this one will
78
+	 * be used. Generally, you should try to use custom column methods as much as
79
+	 * possible.
80
+	 *
81
+	 * Since we have defined a column_title() method later on, this method doesn't
82
+	 * need to concern itself with any column with a name of 'title'. Instead, it
83
+	 * needs to handle everything else.
84
+	 *
85
+	 * For more detailed insight into how columns are handled, take a look at
86
+	 * WP_List_Table::single_row_columns()
87
+	 *
88
+	 * @param array $item A singular item (one full row's worth of data)
89
+	 * @param array $column_name The name/slug of the column to be processed
90
+	 * @return string Text or HTML to be placed inside the column <td>
91
+	 **************************************************************************/
92 92
 	function column_default($item, $column_name){
93 93
 		switch($column_name){
94 94
 			default:
@@ -97,97 +97,97 @@  discard block
 block discarded – undo
97 97
 	}
98 98
 
99 99
 	/** ************************************************************************
100
-	* Recommended. This is a custom column method and is responsible for what
101
-	* is rendered in any column with a name/slug of 'title'. Every time the class
102
-	* needs to render a column, it first looks for a method named
103
-	* column_{$column_title} - if it exists, that method is run. If it doesn't
104
-	* exist, column_default() is called instead.
105
-	*
106
-	* This example also illustrates how to implement rollover actions. Actions
107
-	* should be an associative array formatted as 'slug'=>'link html' - and you
108
-	* will need to generate the URLs yourself. You could even ensure the links
109
-	*
110
-	*
111
-	* @see WP_List_Table::::single_row_columns()
112
-	* @param array $item A singular item (one full row's worth of data)
113
-	* @return string Text to be placed inside the column <td> (movie title only)
114
-	**************************************************************************/
100
+	 * Recommended. This is a custom column method and is responsible for what
101
+	 * is rendered in any column with a name/slug of 'title'. Every time the class
102
+	 * needs to render a column, it first looks for a method named
103
+	 * column_{$column_title} - if it exists, that method is run. If it doesn't
104
+	 * exist, column_default() is called instead.
105
+	 *
106
+	 * This example also illustrates how to implement rollover actions. Actions
107
+	 * should be an associative array formatted as 'slug'=>'link html' - and you
108
+	 * will need to generate the URLs yourself. You could even ensure the links
109
+	 *
110
+	 *
111
+	 * @see WP_List_Table::::single_row_columns()
112
+	 * @param array $item A singular item (one full row's worth of data)
113
+	 * @return string Text to be placed inside the column <td> (movie title only)
114
+	 **************************************************************************/
115 115
 	function column_id($item){
116 116
 		return $item['id'];
117 117
 	}
118 118
 	/** ************************************************************************
119
-	* Recommended. This is a custom column method and is responsible for what
120
-	* is rendered in any column with a name/slug of 'title'. Every time the class
121
-	* needs to render a column, it first looks for a method named
122
-	* column_{$column_title} - if it exists, that method is run. If it doesn't
123
-	* exist, column_default() is called instead.
124
-	*
125
-	* This example also illustrates how to implement rollover actions. Actions
126
-	* should be an associative array formatted as 'slug'=>'link html' - and you
127
-	* will need to generate the URLs yourself. You could even ensure the links
128
-	*
129
-	*
130
-	* @see WP_List_Table::::single_row_columns()
131
-	* @param array $item A singular item (one full row's worth of data)
132
-	* @return string Text to be placed inside the column <td> (movie title only)
133
-	**************************************************************************/
119
+	 * Recommended. This is a custom column method and is responsible for what
120
+	 * is rendered in any column with a name/slug of 'title'. Every time the class
121
+	 * needs to render a column, it first looks for a method named
122
+	 * column_{$column_title} - if it exists, that method is run. If it doesn't
123
+	 * exist, column_default() is called instead.
124
+	 *
125
+	 * This example also illustrates how to implement rollover actions. Actions
126
+	 * should be an associative array formatted as 'slug'=>'link html' - and you
127
+	 * will need to generate the URLs yourself. You could even ensure the links
128
+	 *
129
+	 *
130
+	 * @see WP_List_Table::::single_row_columns()
131
+	 * @param array $item A singular item (one full row's worth of data)
132
+	 * @return string Text to be placed inside the column <td> (movie title only)
133
+	 **************************************************************************/
134 134
 	function column_status($item){
135 135
 		return __($item['status'], 'wpshop');
136 136
 	}
137 137
 	/** ************************************************************************
138
-	* Recommended. This is a custom column method and is responsible for what
139
-	* is rendered in any column with a name/slug of 'title'. Every time the class
140
-	* needs to render a column, it first looks for a method named
141
-	* column_{$column_title} - if it exists, that method is run. If it doesn't
142
-	* exist, column_default() is called instead.
143
-	*
144
-	* This example also illustrates how to implement rollover actions. Actions
145
-	* should be an associative array formatted as 'slug'=>'link html' - and you
146
-	* will need to generate the URLs yourself. You could even ensure the links
147
-	*
148
-	*
149
-	* @see WP_List_Table::::single_row_columns()
150
-	* @param array $item A singular item (one full row's worth of data)
151
-	* @return string Text to be placed inside the column <td> (movie title only)
152
-	**************************************************************************/
138
+	 * Recommended. This is a custom column method and is responsible for what
139
+	 * is rendered in any column with a name/slug of 'title'. Every time the class
140
+	 * needs to render a column, it first looks for a method named
141
+	 * column_{$column_title} - if it exists, that method is run. If it doesn't
142
+	 * exist, column_default() is called instead.
143
+	 *
144
+	 * This example also illustrates how to implement rollover actions. Actions
145
+	 * should be an associative array formatted as 'slug'=>'link html' - and you
146
+	 * will need to generate the URLs yourself. You could even ensure the links
147
+	 *
148
+	 *
149
+	 * @see WP_List_Table::::single_row_columns()
150
+	 * @param array $item A singular item (one full row's worth of data)
151
+	 * @return string Text to be placed inside the column <td> (movie title only)
152
+	 **************************************************************************/
153 153
 	function column_content($item){
154 154
 		return $item['content'];
155 155
 	}
156 156
 	/** ************************************************************************
157
-	* Recommended. This is a custom column method and is responsible for what
158
-	* is rendered in any column with a name/slug of 'title'. Every time the class
159
-	* needs to render a column, it first looks for a method named
160
-	* column_{$column_title} - if it exists, that method is run. If it doesn't
161
-	* exist, column_default() is called instead.
162
-	*
163
-	* This example also illustrates how to implement rollover actions. Actions
164
-	* should be an associative array formatted as 'slug'=>'link html' - and you
165
-	* will need to generate the URLs yourself. You could even ensure the links
166
-	*
167
-	*
168
-	* @see WP_List_Table::::single_row_columns()
169
-	* @param array $item A singular item (one full row's worth of data)
170
-	* @return string Text to be placed inside the column <td> (movie title only)
171
-	**************************************************************************/
157
+	 * Recommended. This is a custom column method and is responsible for what
158
+	 * is rendered in any column with a name/slug of 'title'. Every time the class
159
+	 * needs to render a column, it first looks for a method named
160
+	 * column_{$column_title} - if it exists, that method is run. If it doesn't
161
+	 * exist, column_default() is called instead.
162
+	 *
163
+	 * This example also illustrates how to implement rollover actions. Actions
164
+	 * should be an associative array formatted as 'slug'=>'link html' - and you
165
+	 * will need to generate the URLs yourself. You could even ensure the links
166
+	 *
167
+	 *
168
+	 * @see WP_List_Table::::single_row_columns()
169
+	 * @param array $item A singular item (one full row's worth of data)
170
+	 * @return string Text to be placed inside the column <td> (movie title only)
171
+	 **************************************************************************/
172 172
 	function column_entity($item){
173 173
 		return __($item['entity'],'wpshop');
174 174
 	}
175 175
 	/** ************************************************************************
176
-	* Recommended. This is a custom column method and is responsible for what
177
-	* is rendered in any column with a name/slug of 'title'. Every time the class
178
-	* needs to render a column, it first looks for a method named
179
-	* column_{$column_title} - if it exists, that method is run. If it doesn't
180
-	* exist, column_default() is called instead.
181
-	*
182
-	* This example also illustrates how to implement rollover actions. Actions
183
-	* should be an associative array formatted as 'slug'=>'link html' - and you
184
-	* will need to generate the URLs yourself. You could even ensure the links
185
-	*
186
-	*
187
-	* @see WP_List_Table::::single_row_columns()
188
-	* @param array $item A singular item (one full row's worth of data)
189
-	* @return string Text to be placed inside the column <td> (movie title only)
190
-	**************************************************************************/
176
+	 * Recommended. This is a custom column method and is responsible for what
177
+	 * is rendered in any column with a name/slug of 'title'. Every time the class
178
+	 * needs to render a column, it first looks for a method named
179
+	 * column_{$column_title} - if it exists, that method is run. If it doesn't
180
+	 * exist, column_default() is called instead.
181
+	 *
182
+	 * This example also illustrates how to implement rollover actions. Actions
183
+	 * should be an associative array formatted as 'slug'=>'link html' - and you
184
+	 * will need to generate the URLs yourself. You could even ensure the links
185
+	 *
186
+	 *
187
+	 * @see WP_List_Table::::single_row_columns()
188
+	 * @param array $item A singular item (one full row's worth of data)
189
+	 * @return string Text to be placed inside the column <td> (movie title only)
190
+	 **************************************************************************/
191 191
 	function column_name($item){
192 192
 		//Build row actions
193 193
 		$default_action='edit';
@@ -208,14 +208,14 @@  discard block
 block discarded – undo
208 208
 		);
209 209
 	}
210 210
 	/** ************************************************************************
211
-	* REQUIRED if displaying checkboxes or using bulk actions! The 'cb' column
212
-	* is given special treatment when columns are processed. It ALWAYS needs to
213
-	* have it's own method.
214
-	*
215
-	* @see WP_List_Table::::single_row_columns()
216
-	* @param array $item A singular item (one full row's worth of data)
217
-	* @return string Text to be placed inside the column <td> (movie title only)
218
-	**************************************************************************/
211
+	 * REQUIRED if displaying checkboxes or using bulk actions! The 'cb' column
212
+	 * is given special treatment when columns are processed. It ALWAYS needs to
213
+	 * have it's own method.
214
+	 *
215
+	 * @see WP_List_Table::::single_row_columns()
216
+	 * @param array $item A singular item (one full row's worth of data)
217
+	 * @return string Text to be placed inside the column <td> (movie title only)
218
+	 **************************************************************************/
219 219
 	function column_cb($item){
220 220
 		return '';
221 221
 		return sprintf(
@@ -226,19 +226,19 @@  discard block
 block discarded – undo
226 226
 	}
227 227
 
228 228
 	/** ************************************************************************
229
-	* Optional. If you want one or more columns to be sortable (ASC/DESC toggle),
230
-	* you will need to register it here. This should return an array where the
231
-	* key is the column that needs to be sortable, and the value is db column to
232
-	* sort by. Often, the key and value will be the same, but this is not always
233
-	* the case (as the value is a column name from the database, not the list table).
234
-	*
235
-	* This method merely defines which columns should be sortable and makes them
236
-	* clickable - it does not handle the actual sorting. You still need to detect
237
-	* the ORDERBY and ORDER querystring variables within prepare_items() and sort
238
-	* your data accordingly (usually by modifying your query).
239
-	*
240
-	* @return array An associative array containing all the columns that should be sortable: 'slugs'=>array('data_values',bool)
241
-	**************************************************************************/
229
+	 * Optional. If you want one or more columns to be sortable (ASC/DESC toggle),
230
+	 * you will need to register it here. This should return an array where the
231
+	 * key is the column that needs to be sortable, and the value is db column to
232
+	 * sort by. Often, the key and value will be the same, but this is not always
233
+	 * the case (as the value is a column name from the database, not the list table).
234
+	 *
235
+	 * This method merely defines which columns should be sortable and makes them
236
+	 * clickable - it does not handle the actual sorting. You still need to detect
237
+	 * the ORDERBY and ORDER querystring variables within prepare_items() and sort
238
+	 * your data accordingly (usually by modifying your query).
239
+	 *
240
+	 * @return array An associative array containing all the columns that should be sortable: 'slugs'=>array('data_values',bool)
241
+	 **************************************************************************/
242 242
 	function get_sortable_columns() {
243 243
 		$sortable_columns = array(
244 244
 			//'name'    => array('name',true)    //true means its already sorted
@@ -247,19 +247,19 @@  discard block
 block discarded – undo
247 247
 	}
248 248
 
249 249
 	/** ************************************************************************
250
-	* Optional. If you need to include bulk actions in your list table, this is
251
-	* the place to define them. Bulk actions are an associative array in the format
252
-	* 'slug'=>'Visible Title'
253
-	*
254
-	* If this method returns an empty value, no bulk action will be rendered. If
255
-	* you specify any bulk actions, the bulk actions box will be rendered with
256
-	* the table automatically on display().
257
-	*
258
-	* Also note that list tables are not automatically wrapped in <form> elements,
259
-	* so you will need to create those manually in order for bulk actions to function.
260
-	*
261
-	* @return array An associative array containing all the bulk actions: 'slugs'=>'Visible Titles'
262
-	**************************************************************************/
250
+	 * Optional. If you need to include bulk actions in your list table, this is
251
+	 * the place to define them. Bulk actions are an associative array in the format
252
+	 * 'slug'=>'Visible Title'
253
+	 *
254
+	 * If this method returns an empty value, no bulk action will be rendered. If
255
+	 * you specify any bulk actions, the bulk actions box will be rendered with
256
+	 * the table automatically on display().
257
+	 *
258
+	 * Also note that list tables are not automatically wrapped in <form> elements,
259
+	 * so you will need to create those manually in order for bulk actions to function.
260
+	 *
261
+	 * @return array An associative array containing all the bulk actions: 'slugs'=>'Visible Titles'
262
+	 **************************************************************************/
263 263
 	function get_bulk_actions() {
264 264
 		$actions = array(
265 265
 			// 'delete'    => __('Delete','wpshop')
@@ -268,12 +268,12 @@  discard block
 block discarded – undo
268 268
 	}
269 269
 
270 270
 	/** ************************************************************************
271
-	* Optional. You can handle your bulk actions anywhere or anyhow you prefer.
272
-	* For this example package, we will handle it in the class to keep things
273
-	* clean and organized.
274
-	*
275
-	* @see $this->prepare_items()
276
-	**************************************************************************/
271
+	 * Optional. You can handle your bulk actions anywhere or anyhow you prefer.
272
+	 * For this example package, we will handle it in the class to keep things
273
+	 * clean and organized.
274
+	 *
275
+	 * @see $this->prepare_items()
276
+	 **************************************************************************/
277 277
 	function process_bulk_action() {
278 278
 		//Detect when a bulk action is being triggered...
279 279
 		if( 'delete'===$this->current_action() ) {
@@ -282,90 +282,90 @@  discard block
 block discarded – undo
282 282
 	}
283 283
 
284 284
 	/** ************************************************************************
285
-	* REQUIRED! This is where you prepare your data for display. This method will
286
-	* usually be used to query the database, sort and filter the data, and generally
287
-	* get it ready to be displayed. At a minimum, we should set $this->items and
288
-	* $this->set_pagination_args(), although the following properties and methods
289
-	* are frequently interacted with here...
290
-	*
291
-	* @uses $this->_column_headers
292
-	* @uses $this->items
293
-	* @uses $this->get_columns()
294
-	* @uses $this->get_sortable_columns()
295
-	* @uses $this->get_pagenum()
296
-	* @uses $this->set_pagination_args()
297
-	**************************************************************************/
285
+	 * REQUIRED! This is where you prepare your data for display. This method will
286
+	 * usually be used to query the database, sort and filter the data, and generally
287
+	 * get it ready to be displayed. At a minimum, we should set $this->items and
288
+	 * $this->set_pagination_args(), although the following properties and methods
289
+	 * are frequently interacted with here...
290
+	 *
291
+	 * @uses $this->_column_headers
292
+	 * @uses $this->items
293
+	 * @uses $this->get_columns()
294
+	 * @uses $this->get_sortable_columns()
295
+	 * @uses $this->get_pagenum()
296
+	 * @uses $this->set_pagination_args()
297
+	 **************************************************************************/
298 298
 	function prepare_items() {
299 299
 		/*	First, lets decide how many records per page to show	*/
300 300
 		$per_page = 10;
301 301
 
302 302
 		/**
303
-		* REQUIRED. Now we need to define our column headers. This includes a complete
304
-		* array of columns to be displayed (slugs & titles), a list of columns
305
-		* to keep hidden, and a list of columns that are sortable. Each of these
306
-		* can be defined in another method (as we've done here) before being
307
-		* used to build the value for our _column_headers property.
308
-		*/
303
+		 * REQUIRED. Now we need to define our column headers. This includes a complete
304
+		 * array of columns to be displayed (slugs & titles), a list of columns
305
+		 * to keep hidden, and a list of columns that are sortable. Each of these
306
+		 * can be defined in another method (as we've done here) before being
307
+		 * used to build the value for our _column_headers property.
308
+		 */
309 309
 		$columns = $this->get_columns();
310 310
 		$hidden = array();
311 311
 		$sortable = $this->get_sortable_columns();
312 312
 
313 313
 		/**
314
-		* REQUIRED. Finally, we build an array to be used by the class for column
315
-		* headers. The $this->_column_headers property takes an array which contains
316
-		* 3 other arrays. One for all columns, one for hidden columns, and one
317
-		* for sortable columns.
318
-		*/
314
+		 * REQUIRED. Finally, we build an array to be used by the class for column
315
+		 * headers. The $this->_column_headers property takes an array which contains
316
+		 * 3 other arrays. One for all columns, one for hidden columns, and one
317
+		 * for sortable columns.
318
+		 */
319 319
 		$this->_column_headers = array($columns, $hidden, $sortable);
320 320
 
321 321
 		/**
322
-		* Optional. You can handle your bulk actions however you see fit. In this
323
-		* case, we'll handle them within our package just to keep things clean.
324
-		*/
322
+		 * Optional. You can handle your bulk actions however you see fit. In this
323
+		 * case, we'll handle them within our package just to keep things clean.
324
+		 */
325 325
 		$this->process_bulk_action();
326 326
 
327 327
 		/**
328
-		* Instead of querying a database, we're going to fetch the example data
329
-		* property we created for use in this plugin. This makes this example
330
-		* package slightly different than one you might build on your own. In
331
-		* this example, we'll be using array manipulation to sort and paginate
332
-		* our data. In a real-world implementation, you will probably want to
333
-		* use sort and pagination data to build a custom query instead, as you'll
334
-		* be able to use your precisely-queried data immediately.
335
-		*/
328
+		 * Instead of querying a database, we're going to fetch the example data
329
+		 * property we created for use in this plugin. This makes this example
330
+		 * package slightly different than one you might build on your own. In
331
+		 * this example, we'll be using array manipulation to sort and paginate
332
+		 * our data. In a real-world implementation, you will probably want to
333
+		 * use sort and pagination data to build a custom query instead, as you'll
334
+		 * be able to use your precisely-queried data immediately.
335
+		 */
336 336
 		$data = $this->datas;
337 337
 
338 338
 		/**
339
-		* REQUIRED for pagination. Let's figure out what page the user is currently
340
-		* looking at. We'll need this later, so you should always include it in
341
-		* your own package classes.
342
-		*/
339
+		 * REQUIRED for pagination. Let's figure out what page the user is currently
340
+		 * looking at. We'll need this later, so you should always include it in
341
+		 * your own package classes.
342
+		 */
343 343
 		$current_page = $this->get_pagenum();
344 344
 
345 345
 		/**
346
-		* REQUIRED for pagination. Let's check how many items are in our data array.
347
-		* In real-world use, this would be the total number of items in your database,
348
-		* without filtering. We'll need this later, so you should always include it
349
-		* in your own package classes.
350
-		*/
346
+		 * REQUIRED for pagination. Let's check how many items are in our data array.
347
+		 * In real-world use, this would be the total number of items in your database,
348
+		 * without filtering. We'll need this later, so you should always include it
349
+		 * in your own package classes.
350
+		 */
351 351
 		$total_items = count($data);
352 352
 
353 353
 		/**
354
-		* The WP_List_Table class does not handle pagination for us, so we need
355
-		* to ensure that the data is trimmed to only the current page. We can use
356
-		* array_slice() to
357
-		*/
354
+		 * The WP_List_Table class does not handle pagination for us, so we need
355
+		 * to ensure that the data is trimmed to only the current page. We can use
356
+		 * array_slice() to
357
+		 */
358 358
 		$data = array_slice($data,(($current_page-1)*$per_page),$per_page);
359 359
 
360 360
 		/**
361
-		* REQUIRED. Now we can add our *sorted* data to the items property, where
362
-		* it can be used by the rest of the class.
363
-		*/
361
+		 * REQUIRED. Now we can add our *sorted* data to the items property, where
362
+		 * it can be used by the rest of the class.
363
+		 */
364 364
 		$this->items = $data;
365 365
 
366 366
 		/**
367
-		* REQUIRED. We also have to register our pagination options & calculations.
368
-		*/
367
+		 * REQUIRED. We also have to register our pagination options & calculations.
368
+		 */
369 369
 		$this->set_pagination_args( array(
370 370
 			'total_items' => $total_items,               		//WE have to calculate the total number of items
371 371
 			'per_page'    => $per_page,                 		//WE have to determine how many items to show on a page
Please login to merge, or discard this patch.
includes/librairies/eav/attributes_unit.class.php 1 patch
Indentation   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -24,89 +24,89 @@  discard block
 block discarded – undo
24 24
 class wpshop_attributes_unit
25 25
 {
26 26
 	/**
27
-	*	Define the database table used in the current class
28
-	*/
27
+	 *	Define the database table used in the current class
28
+	 */
29 29
 	const dbTable = WPSHOP_DBT_ATTRIBUTE_UNIT;
30 30
 	/**
31
-	*	Define the url listing slug used in the current class
32
-	*/
31
+	 *	Define the url listing slug used in the current class
32
+	 */
33 33
 	const urlSlugListing = WPSHOP_URL_SLUG_ATTRIBUTE_LISTING;
34 34
 	/**
35
-	*	Define the url edition slug used in the current class
36
-	*/
35
+	 *	Define the url edition slug used in the current class
36
+	 */
37 37
 	const urlSlugEdition = WPSHOP_URL_SLUG_ATTRIBUTE_LISTING;
38 38
 	/**
39
-	*	Define the current entity code
40
-	*/
39
+	 *	Define the current entity code
40
+	 */
41 41
 	const currentPageCode = 'attributes_unit';
42 42
 	/**
43
-	*	Define the page title
44
-	*/
43
+	 *	Define the page title
44
+	 */
45 45
 	const pageContentTitle = 'Attributes unit';
46 46
 	/**
47
-	*	Define the page title when adding an attribute
48
-	*/
47
+	 *	Define the page title when adding an attribute
48
+	 */
49 49
 	const pageAddingTitle = 'Add an unit';
50 50
 	/**
51
-	*	Define the page title when editing an attribute
52
-	*/
51
+	 *	Define the page title when editing an attribute
52
+	 */
53 53
 	const pageEditingTitle = 'Unit "%s" edit';
54 54
 	/**
55
-	*	Define the page title when editing an attribute
56
-	*/
55
+	 *	Define the page title when editing an attribute
56
+	 */
57 57
 	const pageTitle = 'Attributes unit list';
58 58
 
59 59
 	/**
60
-	*	Define the path to page main icon
61
-	*/
60
+	 *	Define the path to page main icon
61
+	 */
62 62
 	public $pageIcon = '';
63 63
 	/**
64
-	*	Define the message to output after an action
65
-	*/
64
+	 *	Define the message to output after an action
65
+	 */
66 66
 	public $pageMessage = '';
67 67
 
68 68
 	/**
69
-	*	Get the url listing slug of the current class
70
-	*
71
-	*	@return string The table of the class
72
-	*/
69
+	 *	Get the url listing slug of the current class
70
+	 *
71
+	 *	@return string The table of the class
72
+	 */
73 73
 	function setMessage($message)
74 74
 	{
75 75
 		$this->pageMessage = $message;
76 76
 	}
77 77
 	/**
78
-	*	Get the url listing slug of the current class
79
-	*
80
-	*	@return string The table of the class
81
-	*/
78
+	 *	Get the url listing slug of the current class
79
+	 *
80
+	 *	@return string The table of the class
81
+	 */
82 82
 	public static function getListingSlug()
83 83
 	{
84 84
 		return self::urlSlugListing;
85 85
 	}
86 86
 	/**
87
-	*	Get the url edition slug of the current class
88
-	*
89
-	*	@return string The table of the class
90
-	*/
87
+	 *	Get the url edition slug of the current class
88
+	 *
89
+	 *	@return string The table of the class
90
+	 */
91 91
 	public static function getEditionSlug()
92 92
 	{
93 93
 		return self::urlSlugEdition;
94 94
 	}
95 95
 	/**
96
-	*	Get the database table of the current class
97
-	*
98
-	*	@return string The table of the class
99
-	*/
96
+	 *	Get the database table of the current class
97
+	 *
98
+	 *	@return string The table of the class
99
+	 */
100 100
 	public static function getDbTable()
101 101
 	{
102 102
 		return self::dbTable;
103 103
 	}
104 104
 
105 105
 	/**
106
-	*	Define the title of the page
107
-	*
108
-	*	@return string $title The title of the page looking at the environnement
109
-	*/
106
+	 *	Define the title of the page
107
+	 *
108
+	 *	@return string $title The title of the page looking at the environnement
109
+	 */
110 110
 	function pageTitle()
111 111
 	{
112 112
 		$action = isset($_REQUEST['action']) ? wpshop_tools::varSanitizer($_REQUEST['action']) : '';
@@ -133,8 +133,8 @@  discard block
 block discarded – undo
133 133
 	}
134 134
 
135 135
 	/**
136
-	*	Define the different message and action after an action is send through the element interface
137
-	*/
136
+	 *	Define the different message and action after an action is send through the element interface
137
+	 */
138 138
 	function elementAction()
139 139
 	{
140 140
 		global $wpdb, $initialEavData;
@@ -263,10 +263,10 @@  discard block
 block discarded – undo
263 263
 	}
264 264
 
265 265
 	/**
266
-	*	Return the list page content, containing the table that present the item list
267
-	*
268
-	*	@return string $listItemOutput The html code that output the item list
269
-	*/
266
+	 *	Return the list page content, containing the table that present the item list
267
+	 *
268
+	 *	@return string $listItemOutput The html code that output the item list
269
+	 */
270 270
 	public static function elementList()
271 271
 	{
272 272
 		$listItemOutput = '';
@@ -387,10 +387,10 @@  discard block
 block discarded – undo
387 387
 		return $listItemOutput;
388 388
 	}
389 389
 	/**
390
-	*	Return the page content to add a new item
391
-	*
392
-	*	@return string The html code that output the interface for adding a nem item
393
-	*/
390
+	 *	Return the page content to add a new item
391
+	 *
392
+	 *	@return string The html code that output the interface for adding a nem item
393
+	 */
394 394
 	public static function elementEdition($itemToEdit = ''){
395 395
 		global $attribute_displayed_field; global $wpdb;
396 396
 		$dbFieldList = wpshop_database::fields_to_input(self::getDbTable());
@@ -484,10 +484,10 @@  discard block
 block discarded – undo
484 484
 		return $the_form;
485 485
 	}
486 486
 	/**
487
-	*	Return the different button to save the item currently being added or edited
488
-	*
489
-	*	@return string $currentPageButton The html output code with the different button to add to the interface
490
-	*/
487
+	 *	Return the different button to save the item currently being added or edited
488
+	 *
489
+	 *	@return string $currentPageButton The html output code with the different button to add to the interface
490
+	 */
491 491
 	function getPageFormButton($element_id = 0)
492 492
 	{
493 493
 		$action = isset($_REQUEST['action']) ? wpshop_tools::varSanitizer($_REQUEST['action']) : 'add';
@@ -515,14 +515,14 @@  discard block
 block discarded – undo
515 515
 	}
516 516
 
517 517
 	/**
518
-	*	Get the existing attribute list into database
519
-	*
520
-	*	@param integer $element_id optionnal The attribute identifier we want to get. If not specify the entire list will be returned
521
-	*	@param string $element_status optionnal The status of element to get into database. Default is set to valid element
522
-	*	@param mixed $field_to_search optionnal The field we want to check the row identifier into. Default is to set id
523
-	*
524
-	*	@return object $element_list A wordpress database object containing the attribute list
525
-	*/
518
+	 *	Get the existing attribute list into database
519
+	 *
520
+	 *	@param integer $element_id optionnal The attribute identifier we want to get. If not specify the entire list will be returned
521
+	 *	@param string $element_status optionnal The status of element to get into database. Default is set to valid element
522
+	 *	@param mixed $field_to_search optionnal The field we want to check the row identifier into. Default is to set id
523
+	 *
524
+	 *	@return object $element_list A wordpress database object containing the attribute list
525
+	 */
526 526
 	public static function getElement($element_id = '', $element_status = "'valid', 'moderated'", $field_to_search = 'id'){
527 527
 		global $wpdb;
528 528
 		$element_list = array();
@@ -554,8 +554,8 @@  discard block
 block discarded – undo
554 554
 	}
555 555
 
556 556
 	/**
557
-	*
558
-	*/
557
+	 *
558
+	 */
559 559
 	public static function get_unit_list_for_group($group_id){
560 560
 		global $wpdb;
561 561
 		$unit_list_for_group = '';
@@ -569,8 +569,8 @@  discard block
 block discarded – undo
569 569
 		return $unit_list_for_group;
570 570
 	}
571 571
 	/**
572
-	*
573
-	*/
572
+	 *
573
+	 */
574 574
 	public static function get_default_unit_for_group($group_id){
575 575
 		global $wpdb;
576 576
 		$default_unit_for_group = '';
@@ -583,10 +583,10 @@  discard block
 block discarded – undo
583 583
 	}
584 584
 
585 585
 	/**
586
-	*	Get the unit group existing list in database
587
-	*
588
-	*	@return object $attribute_unit_group_list The list of existing unit group
589
-	*/
586
+	 *	Get the unit group existing list in database
587
+	 *
588
+	 *	@return object $attribute_unit_group_list The list of existing unit group
589
+	 */
590 590
 	public static function get_unit_group($element_id = '', $element_status = "'valid', 'moderated'", $field_to_search = 'id'){
591 591
 		global $wpdb;
592 592
 		$element_list = array();
@@ -619,10 +619,10 @@  discard block
 block discarded – undo
619 619
 		// return $attribute_unit_group_list;
620 620
 	}
621 621
 	/**
622
-	*	Return the list page content, containing the table that present the item list
623
-	*
624
-	*	@return string $listItemOutput The html code that output the item list
625
-	*/
622
+	 *	Return the list page content, containing the table that present the item list
623
+	 *
624
+	 *	@return string $listItemOutput The html code that output the item list
625
+	 */
626 626
 	public static function unit_group_list(){
627 627
 		$listItemOutput = '';
628 628
 
@@ -734,10 +734,10 @@  discard block
 block discarded – undo
734 734
 		return $listItemOutput;
735 735
 	}
736 736
 	/**
737
-	*	Return the page content to add a new item
738
-	*
739
-	*	@return string The html code that output the interface for adding a nem item
740
-	*/
737
+	 *	Return the page content to add a new item
738
+	 *
739
+	 *	@return string The html code that output the interface for adding a nem item
740
+	 */
741 741
 	public static function unit_group_edition($itemToEdit = ''){
742 742
 		global $attribute_displayed_field;
743 743
 		$dbFieldList = wpshop_database::fields_to_input(WPSHOP_DBT_ATTRIBUTE_UNIT_GROUP);
Please login to merge, or discard this patch.
includes/librairies/eav/attributes_set.class.php 1 patch
Indentation   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -43,42 +43,42 @@  discard block
 block discarded – undo
43 43
 	public $pageMessage = '';
44 44
 
45 45
 	/**
46
-	*	Get the url listing slug of the current class
47
-	*
48
-	*	@return string The table of the class
49
-	*/
46
+	 *	Get the url listing slug of the current class
47
+	 *
48
+	 *	@return string The table of the class
49
+	 */
50 50
 	function setMessage($message){
51 51
 		$this->pageMessage = $message;
52 52
 	}
53 53
 	/**
54
-	*	Get the url listing slug of the current class
55
-	*
56
-	*	@return string The table of the class
57
-	*/
54
+	 *	Get the url listing slug of the current class
55
+	 *
56
+	 *	@return string The table of the class
57
+	 */
58 58
 	function getListingSlug(){
59 59
 		return self::urlSlugListing;
60 60
 	}
61 61
 	/**
62
-	*	Get the url edition slug of the current class
63
-	*
64
-	*	@return string The table of the class
65
-	*/
62
+	 *	Get the url edition slug of the current class
63
+	 *
64
+	 *	@return string The table of the class
65
+	 */
66 66
 	public static function getEditionSlug(){
67 67
 		return self::urlSlugEdition;
68 68
 	}
69 69
 	/**
70
-	*	Get the database table of the current class
71
-	*
72
-	*	@return string The table of the class
73
-	*/
70
+	 *	Get the database table of the current class
71
+	 *
72
+	 *	@return string The table of the class
73
+	 */
74 74
 	public static function getDbTable(){
75 75
 		return self::dbTable;
76 76
 	}
77 77
 	/**
78
-	*	Define the title of the page
79
-	*
80
-	*	@return string $title The title of the page looking at the environnement
81
-	*/
78
+	 *	Define the title of the page
79
+	 *
80
+	 *	@return string $title The title of the page looking at the environnement
81
+	 */
82 82
 	function pageTitle(){
83 83
 		$action = isset($_REQUEST['action']) ? wpshop_tools::varSanitizer($_REQUEST['action']) : '';
84 84
 		$objectInEdition = isset($_REQUEST['id']) ? wpshop_tools::varSanitizer($_REQUEST['id']) : '';
@@ -96,8 +96,8 @@  discard block
 block discarded – undo
96 96
 	}
97 97
 
98 98
 	/**
99
-	*	Define the different message and action after an action is send through the element interface
100
-	*/
99
+	 *	Define the different message and action after an action is send through the element interface
100
+	 */
101 101
 	function elementAction(){
102 102
 		global $wpdb, $initialEavData;
103 103
 		$pageMessage = $actionResult = '';
@@ -355,14 +355,14 @@  discard block
 block discarded – undo
355 355
 		self::setMessage($pageMessage);
356 356
 	}
357 357
 	/**
358
-	*	Return the list page content, containing the table that present the item list
359
-	*
360
-	*	@return string $listItemOutput The html code that output the item list
361
-	*/
358
+	 *	Return the list page content, containing the table that present the item list
359
+	 *
360
+	 *	@return string $listItemOutput The html code that output the item list
361
+	 */
362 362
 	function elementList() {
363
-	    //Create an instance of our package class...
364
-	    $wpshop_list_table = new wpshop_attributes_set_custom_List_table();
365
-	    //Fetch, prepare, sort, and filter our data...
363
+		//Create an instance of our package class...
364
+		$wpshop_list_table = new wpshop_attributes_set_custom_List_table();
365
+		//Fetch, prepare, sort, and filter our data...
366 366
 		$status="'valid', 'moderated'";
367 367
 		$attribute_set_list = array();
368 368
 		if(!empty($_REQUEST['attribute_groups_status'])){
@@ -423,10 +423,10 @@  discard block
 block discarded – undo
423 423
 	}
424 424
 
425 425
 	/**
426
-	*	Return the page content to add a new item
427
-	*
428
-	*	@return string The html code that output the interface for adding a nem item
429
-	*/
426
+	 *	Return the page content to add a new item
427
+	 *
428
+	 *	@return string The html code that output the interface for adding a nem item
429
+	 */
430 430
 	function elementEdition($itemToEdit = '') {
431 431
 		global $attribute_hidden_field;
432 432
 
@@ -574,10 +574,10 @@  discard block
 block discarded – undo
574 574
 		return $the_form;
575 575
 	}
576 576
 	/**
577
-	*	Return the different button to save the item currently being added or edited
578
-	*
579
-	*	@return string $currentPageButton The html output code with the different button to add to the interface
580
-	*/
577
+	 *	Return the different button to save the item currently being added or edited
578
+	 *
579
+	 *	@return string $currentPageButton The html output code with the different button to add to the interface
580
+	 */
581 581
 	function getPageFormButton($element_id = 0){
582 582
 		$action = isset($_REQUEST['action']) ? wpshop_tools::varSanitizer($_REQUEST['action']) : 'add';
583 583
 		$currentPageButton = '';
@@ -586,13 +586,13 @@  discard block
 block discarded – undo
586 586
 	}
587 587
 
588 588
 	/**
589
-	*	Get the existing element list into database
590
-	*
591
-	*	@param integer $elementId optionnal The element identifier we want to get. If not specify the entire list will be returned
592
-	*	@param string $elementStatus optionnal The status of element to get into database. Default is set to valid element
593
-	*
594
-	*	@return object $elements A wordpress database object containing the element list
595
-	*/
589
+	 *	Get the existing element list into database
590
+	 *
591
+	 *	@param integer $elementId optionnal The element identifier we want to get. If not specify the entire list will be returned
592
+	 *	@param string $elementStatus optionnal The status of element to get into database. Default is set to valid element
593
+	 *
594
+	 *	@return object $elements A wordpress database object containing the element list
595
+	 */
596 596
 	public static function getElement($elementId = '', $elementStatus = "'valid', 'moderated'", $whatToSearch = 'id', $resultList = '', $entity_id = ''){
597 597
 		global $wpdb;
598 598
 		$elements = array();
@@ -663,12 +663,12 @@  discard block
 block discarded – undo
663 663
 	}
664 664
 
665 665
 	/**
666
-	*	Display inteface allowing to manage the attribute set and group details
667
-	*
668
-	*	@param object $atributeSetId The element's identifier we have to manage the details for
669
-	*
670
-	*	@return string $attributeSetDetailsManagement The html output of management interface
671
-	*/
666
+	 *	Display inteface allowing to manage the attribute set and group details
667
+	 *
668
+	 *	@param object $atributeSetId The element's identifier we have to manage the details for
669
+	 *
670
+	 *	@return string $attributeSetDetailsManagement The html output of management interface
671
+	 */
672 672
 	public static function attributeSetDetailsManagement($attributeSetId = ''){
673 673
 		global $validAttributeList; global $wpdb;
674 674
 		$user_more_script = $add_button = '';
@@ -944,13 +944,13 @@  discard block
 block discarded – undo
944 944
 	}
945 945
 
946 946
 	/**
947
-	*	Get the complete details about attributes sets
948
-	*
949
-	*	@param integer $attributeSetId The attribute set identifier we want to get the details for
950
-	*	@param string $attributeSetStatus optionnal The attribute set status. Allows to define if we want all attribute sets or a deleted or valid and so on
951
-	*
952
-	*	@return array $attributeSetDetailsGroups The List of attribute and attribute groups for the given attribute set
953
-	*/
947
+	 *	Get the complete details about attributes sets
948
+	 *
949
+	 *	@param integer $attributeSetId The attribute set identifier we want to get the details for
950
+	 *	@param string $attributeSetStatus optionnal The attribute set status. Allows to define if we want all attribute sets or a deleted or valid and so on
951
+	 *
952
+	 *	@return array $attributeSetDetailsGroups The List of attribute and attribute groups for the given attribute set
953
+	 */
954 954
 	public static function getAttributeSetDetails($attributeSetId, $attributeSetStatus = "'valid', 'moderated'"){
955 955
 		global $wpdb, $validAttributeList;
956 956
 		$attributeSetDetailsGroups = '';
@@ -1002,12 +1002,12 @@  discard block
 block discarded – undo
1002 1002
 	}
1003 1003
 
1004 1004
 	/**
1005
-	*	Get the attribute list of attribute not associated to he set we are editing
1006
-	*
1007
-	*	@param integer $attributeSetId The attribute set identifier we want to get the details for
1008
-	*
1009
-	*	@return array $attributeSetDetails The List of attribute not affected
1010
-	*/
1005
+	 *	Get the attribute list of attribute not associated to he set we are editing
1006
+	 *
1007
+	 *	@param integer $attributeSetId The attribute set identifier we want to get the details for
1008
+	 *
1009
+	 *	@return array $attributeSetDetails The List of attribute not affected
1010
+	 */
1011 1011
 	public static function get_not_affected_attribute($attributeSetId, $entity_set_id){
1012 1012
 		global $wpdb;
1013 1013
 
@@ -1042,12 +1042,12 @@  discard block
 block discarded – undo
1042 1042
 	}
1043 1043
 
1044 1044
 	/**
1045
-	*	Get the existing attribute set for an entity
1046
-	*
1047
-	*	@param integer $entityId The entity identifier we want to get the entity set list for
1048
-	*
1049
-	*	@return object $entitySets The entity sets list for the given entity
1050
-	*/
1045
+	 *	Get the existing attribute set for an entity
1046
+	 *
1047
+	 *	@param integer $entityId The entity identifier we want to get the entity set list for
1048
+	 *
1049
+	 *	@return object $entitySets The entity sets list for the given entity
1050
+	 */
1051 1051
 	public static function get_attribute_set_list_for_entity($entityId){
1052 1052
 		global $wpdb;
1053 1053
 		$entitySetList = '';
@@ -1064,10 +1064,10 @@  discard block
 block discarded – undo
1064 1064
 	}
1065 1065
 
1066 1066
 	/**
1067
-	* Traduit le shortcode et affiche un groupe d'attributs
1068
-	* @param array $atts : tableau de param�tre du shortcode
1069
-	* @return mixed
1070
-	**/
1067
+	 * Traduit le shortcode et affiche un groupe d'attributs
1068
+	 * @param array $atts : tableau de param�tre du shortcode
1069
+	 * @return mixed
1070
+	 **/
1071 1071
 	function wpshop_att_group_func($atts) {
1072 1072
 		global $wpdb;
1073 1073
 
Please login to merge, or discard this patch.
includes/librairies/eav/attributes.class.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1423,7 +1423,7 @@
 block discarded – undo
1423 1423
 	 *	@param string $attributeType The extension of the database table to get the attribute value in
1424 1424
 	 *	@param integer $attributeId The attribute identifier we want to get the value for
1425 1425
 	 *	@param integer $entityTypeId The entity type identifier we want to get the attribute value for (example: product = 1)
1426
-	 	*	@param integer $entityId The entity id we want the attribute value for
1426
+	 *	@param integer $entityId The entity id we want the attribute value for
1427 1427
 	 *
1428 1428
 	 *	@return object $attributeValue A wordpress database object containing the value of the attribute for the selected entity
1429 1429
 	 */
Please login to merge, or discard this patch.
includes/librairies/purchase/orders.class.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 
244 244
 	/** Generate the billing reference regarding the order $order_id
245 245
 	 * @return void
246
-	*/
246
+	 */
247 247
 	function order_generate_billing_number($order_id, $force_invoicing = false){
248 248
 		global $wpdb, $wpshop_modules_billing;
249 249
 
@@ -264,8 +264,8 @@  discard block
 block discarded – undo
264 264
 
265 265
 
266 266
 	/** Renvoi une nouvelle r�f�rence unique pour une commande
267
-	* @return int
268
-	*/
267
+	 * @return int
268
+	 */
269 269
 	public static function get_new_order_reference(){
270 270
 		$number_figures = get_option('wpshop_order_number_figures', false);
271 271
 		/* If the number doesn't exist, we create a default one */
@@ -285,8 +285,8 @@  discard block
 block discarded – undo
285 285
 	}
286 286
 
287 287
 	/** Renvoi une nouvelle r�f�rence unique pour un devis
288
-	* @return int
289
-	*/
288
+	 * @return int
289
+	 */
290 290
 	public static function get_new_pre_order_reference($save = true){
291 291
 		$number_figures = get_option('wpshop_order_number_figures', false);
292 292
 		/* If the number doesn't exist, we create a default one */
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 
349 349
 	/** Set the custom colums
350 350
 	 * @return array
351
-	*/
351
+	 */
352 352
 	static function orders_edit_columns($columns){
353 353
 	  $columns = array(
354 354
 		'cb' => '<input type="checkbox" />',
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
 
368 368
 	/** Give the content by column
369 369
 	 * @return array
370
-	*/
370
+	 */
371 371
 	public static function orders_custom_columns($column, $post_id) {
372 372
 		if ( get_post_type( $post_id ) == WPSHOP_NEWTYPE_IDENTIFIER_ORDER ) {
373 373
 			global $civility, $order_status;
Please login to merge, or discard this patch.
includes/librairies/purchase/checkout.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
 	var $creating_account = true;
24 24
 
25 25
 	/** Constructor of the class
26
-	* @return void
27
-	*/
26
+	 * @return void
27
+	 */
28 28
 	function __construct () {
29 29
 	}
30 30
 
Please login to merge, or discard this patch.