Completed
Push — master ( 7659ff...13b4bf )
by Khoa
10:41
created
ext/vinabb/web/entities/bbook_word_interface.php 1 patch
Indentation   +110 added lines, -110 removed lines patch added patch discarded remove patch
@@ -14,172 +14,172 @@
 block discarded – undo
14 14
 interface bbook_word_interface
15 15
 {
16 16
 	/**
17
-	* Load the data from the database for an entity
18
-	*
19
-	* @param int					$id		Word ID
20
-	* @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
21
-	* @throws \vinabb\web\exceptions\out_of_bounds
22
-	*/
17
+	 * Load the data from the database for an entity
18
+	 *
19
+	 * @param int					$id		Word ID
20
+	 * @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
21
+	 * @throws \vinabb\web\exceptions\out_of_bounds
22
+	 */
23 23
 	public function load($id);
24 24
 
25 25
 	/**
26
-	* Import data for an entity
27
-	*
28
-	* Used when the data is already loaded externally.
29
-	* Any existing data on this entity is over-written.
30
-	* All data is validated and an exception is thrown if any data is invalid.
31
-	*
32
-	* @param array					$data	Data array from the database
33
-	* @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
34
-	* @throws \vinabb\web\exceptions\invalid_argument
35
-	*/
26
+	 * Import data for an entity
27
+	 *
28
+	 * Used when the data is already loaded externally.
29
+	 * Any existing data on this entity is over-written.
30
+	 * All data is validated and an exception is thrown if any data is invalid.
31
+	 *
32
+	 * @param array					$data	Data array from the database
33
+	 * @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
34
+	 * @throws \vinabb\web\exceptions\invalid_argument
35
+	 */
36 36
 	public function import($data);
37 37
 
38 38
 	/**
39
-	* Insert the entity for the first time
40
-	*
41
-	* Will throw an exception if the entity was already inserted (call save() instead)
42
-	*
43
-	* @return bbook_word_interface $this Object for chaining calls: load()->set()->save()
44
-	* @throws \vinabb\web\exceptions\out_of_bounds
45
-	*/
39
+	 * Insert the entity for the first time
40
+	 *
41
+	 * Will throw an exception if the entity was already inserted (call save() instead)
42
+	 *
43
+	 * @return bbook_word_interface $this Object for chaining calls: load()->set()->save()
44
+	 * @throws \vinabb\web\exceptions\out_of_bounds
45
+	 */
46 46
 	public function insert();
47 47
 
48 48
 	/**
49
-	* Save the current settings to the database
50
-	*
51
-	* This must be called before closing or any changes will not be saved!
52
-	* If adding an entity (saving for the first time), you must call insert() or an exception will be thrown
53
-	*
54
-	* @return bbook_word_interface $this Object for chaining calls: load()->set()->save()
55
-	* @throws \vinabb\web\exceptions\out_of_bounds
56
-	*/
49
+	 * Save the current settings to the database
50
+	 *
51
+	 * This must be called before closing or any changes will not be saved!
52
+	 * If adding an entity (saving for the first time), you must call insert() or an exception will be thrown
53
+	 *
54
+	 * @return bbook_word_interface $this Object for chaining calls: load()->set()->save()
55
+	 * @throws \vinabb\web\exceptions\out_of_bounds
56
+	 */
57 57
 	public function save();
58 58
 
59 59
 	/**
60
-	* Get the word ID
61
-	*
62
-	* @return int
63
-	*/
60
+	 * Get the word ID
61
+	 *
62
+	 * @return int
63
+	 */
64 64
 	public function get_id();
65 65
 
66 66
 	/**
67
-	* Get the word
68
-	*
69
-	* @return string
70
-	*/
67
+	 * Get the word
68
+	 *
69
+	 * @return string
70
+	 */
71 71
 	public function get_word();
72 72
 
73 73
 	/**
74
-	* Set the word
75
-	*
76
-	* @param string					$text	Word
77
-	* @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
78
-	* @throws \vinabb\web\exceptions\unexpected_value
79
-	*/
74
+	 * Set the word
75
+	 *
76
+	 * @param string					$text	Word
77
+	 * @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
78
+	 * @throws \vinabb\web\exceptions\unexpected_value
79
+	 */
80 80
 	public function set_word($text);
81 81
 
82 82
 	/**
83
-	* Get the word language
84
-	*
85
-	* @return string
86
-	*/
83
+	 * Get the word language
84
+	 *
85
+	 * @return string
86
+	 */
87 87
 	public function get_lang();
88 88
 
89 89
 	/**
90
-	* Set the word language
91
-	*
92
-	* @param string					$text	2-letter language ISO code
93
-	* @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
94
-	* @throws \vinabb\web\exceptions\unexpected_value
95
-	*/
90
+	 * Set the word language
91
+	 *
92
+	 * @param string					$text	2-letter language ISO code
93
+	 * @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
94
+	 * @throws \vinabb\web\exceptions\unexpected_value
95
+	 */
96 96
 	public function set_lang($text);
97 97
 
98 98
 	/**
99
-	* Get word explanation for edit
100
-	*
101
-	* @return string
102
-	*/
99
+	 * Get word explanation for edit
100
+	 *
101
+	 * @return string
102
+	 */
103 103
 	public function get_desc_for_edit();
104 104
 
105 105
 	/**
106
-	* Get word explanation for display
107
-	*
108
-	* @param bool $censor True to censor the text
109
-	* @return string
110
-	*/
106
+	 * Get word explanation for display
107
+	 *
108
+	 * @param bool $censor True to censor the text
109
+	 * @return string
110
+	 */
111 111
 	public function get_desc_for_display($censor = true);
112 112
 
113 113
 	/**
114
-	* Set word explanation
115
-	*
116
-	* @param string					$text	Word explanation
117
-	* @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
118
-	* @throws \vinabb\web\exceptions\unexpected_value
119
-	*/
114
+	 * Set word explanation
115
+	 *
116
+	 * @param string					$text	Word explanation
117
+	 * @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
118
+	 * @throws \vinabb\web\exceptions\unexpected_value
119
+	 */
120 120
 	public function set_desc($text);
121 121
 
122 122
 	/**
123
-	* Check if BBCode is enabled on the word explanation
124
-	*
125
-	* @return bool
126
-	*/
123
+	 * Check if BBCode is enabled on the word explanation
124
+	 *
125
+	 * @return bool
126
+	 */
127 127
 	public function desc_bbcode_enabled();
128 128
 
129 129
 	/**
130
-	* Enable/Disable BBCode on the word explanation
131
-	* This should be called before set_desc(); desc_enable_bbcode()->set_desc()
132
-	*
133
-	* @param bool					$enable	true: enable; false: disable
134
-	* @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
135
-	*/
130
+	 * Enable/Disable BBCode on the word explanation
131
+	 * This should be called before set_desc(); desc_enable_bbcode()->set_desc()
132
+	 *
133
+	 * @param bool					$enable	true: enable; false: disable
134
+	 * @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
135
+	 */
136 136
 	public function desc_enable_bbcode($enable);
137 137
 
138 138
 	/**
139
-	* Check if URLs is enabled on the word explanation
140
-	*
141
-	* @return bool
142
-	*/
139
+	 * Check if URLs is enabled on the word explanation
140
+	 *
141
+	 * @return bool
142
+	 */
143 143
 	public function desc_urls_enabled();
144 144
 
145 145
 	/**
146
-	* Enable/Disable URLs on the word explanation
147
-	* This should be called before set_desc(); desc_enable_urls()->set_desc()
148
-	*
149
-	* @param bool					$enable	true: enable; false: disable
150
-	* @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
151
-	*/
146
+	 * Enable/Disable URLs on the word explanation
147
+	 * This should be called before set_desc(); desc_enable_urls()->set_desc()
148
+	 *
149
+	 * @param bool					$enable	true: enable; false: disable
150
+	 * @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
151
+	 */
152 152
 	public function desc_enable_urls($enable);
153 153
 
154 154
 	/**
155
-	* Check if smilies are enabled on the word explanation
156
-	*
157
-	* @return bool
158
-	*/
155
+	 * Check if smilies are enabled on the word explanation
156
+	 *
157
+	 * @return bool
158
+	 */
159 159
 	public function desc_smilies_enabled();
160 160
 
161 161
 	/**
162
-	* Enable/Disable smilies on the word explanation
163
-	* This should be called before set_desc(); desc_enable_smilies()->set_desc()
164
-	*
165
-	* @param bool					$enable	true: enable; false: disable
166
-	* @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
167
-	*/
162
+	 * Enable/Disable smilies on the word explanation
163
+	 * This should be called before set_desc(); desc_enable_smilies()->set_desc()
164
+	 *
165
+	 * @param bool					$enable	true: enable; false: disable
166
+	 * @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
167
+	 */
168 168
 	public function desc_enable_smilies($enable);
169 169
 
170 170
 	/**
171
-	* Get the word link
172
-	*
173
-	* @return string
174
-	*/
171
+	 * Get the word link
172
+	 *
173
+	 * @return string
174
+	 */
175 175
 	public function get_url();
176 176
 
177 177
 	/**
178
-	* Set the word link
179
-	*
180
-	* @param string					$text	Word URL
181
-	* @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
182
-	* @throws \vinabb\web\exceptions\unexpected_value
183
-	*/
178
+	 * Set the word link
179
+	 *
180
+	 * @param string					$text	Word URL
181
+	 * @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
182
+	 * @throws \vinabb\web\exceptions\unexpected_value
183
+	 */
184 184
 	public function set_url($text);
185 185
 }
Please login to merge, or discard this patch.
ext/vinabb/web/entities/bbook_book_interface.php 1 patch
Indentation   +122 added lines, -122 removed lines patch added patch discarded remove patch
@@ -14,190 +14,190 @@
 block discarded – undo
14 14
 interface bbook_book_interface
15 15
 {
16 16
 	/**
17
-	* Load the data from the database for an entity
18
-	*
19
-	* @param int					$id		Book ID
20
-	* @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
21
-	* @throws \vinabb\web\exceptions\out_of_bounds
22
-	*/
17
+	 * Load the data from the database for an entity
18
+	 *
19
+	 * @param int					$id		Book ID
20
+	 * @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
21
+	 * @throws \vinabb\web\exceptions\out_of_bounds
22
+	 */
23 23
 	public function load($id);
24 24
 
25 25
 	/**
26
-	* Import data for an entity
27
-	*
28
-	* Used when the data is already loaded externally.
29
-	* Any existing data on this entity is over-written.
30
-	* All data is validated and an exception is thrown if any data is invalid.
31
-	*
32
-	* @param array					$data	Data array from the database
33
-	* @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
34
-	* @throws \vinabb\web\exceptions\invalid_argument
35
-	*/
26
+	 * Import data for an entity
27
+	 *
28
+	 * Used when the data is already loaded externally.
29
+	 * Any existing data on this entity is over-written.
30
+	 * All data is validated and an exception is thrown if any data is invalid.
31
+	 *
32
+	 * @param array					$data	Data array from the database
33
+	 * @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
34
+	 * @throws \vinabb\web\exceptions\invalid_argument
35
+	 */
36 36
 	public function import($data);
37 37
 
38 38
 	/**
39
-	* Insert the entity for the first time
40
-	*
41
-	* Will throw an exception if the entity was already inserted (call save() instead)
42
-	*
43
-	* @return bbook_book_interface $this Object for chaining calls: load()->set()->save()
44
-	* @throws \vinabb\web\exceptions\out_of_bounds
45
-	*/
39
+	 * Insert the entity for the first time
40
+	 *
41
+	 * Will throw an exception if the entity was already inserted (call save() instead)
42
+	 *
43
+	 * @return bbook_book_interface $this Object for chaining calls: load()->set()->save()
44
+	 * @throws \vinabb\web\exceptions\out_of_bounds
45
+	 */
46 46
 	public function insert();
47 47
 
48 48
 	/**
49
-	* Save the current settings to the database
50
-	*
51
-	* This must be called before closing or any changes will not be saved!
52
-	* If adding an entity (saving for the first time), you must call insert() or an exception will be thrown
53
-	*
54
-	* @return bbook_book_interface $this Object for chaining calls: load()->set()->save()
55
-	* @throws \vinabb\web\exceptions\out_of_bounds
56
-	*/
49
+	 * Save the current settings to the database
50
+	 *
51
+	 * This must be called before closing or any changes will not be saved!
52
+	 * If adding an entity (saving for the first time), you must call insert() or an exception will be thrown
53
+	 *
54
+	 * @return bbook_book_interface $this Object for chaining calls: load()->set()->save()
55
+	 * @throws \vinabb\web\exceptions\out_of_bounds
56
+	 */
57 57
 	public function save();
58 58
 
59 59
 	/**
60
-	* Get the book ID
61
-	*
62
-	* @return int
63
-	*/
60
+	 * Get the book ID
61
+	 *
62
+	 * @return int
63
+	 */
64 64
 	public function get_id();
65 65
 
66 66
 	/**
67
-	* Get the book title
68
-	*
69
-	* @return string
70
-	*/
67
+	 * Get the book title
68
+	 *
69
+	 * @return string
70
+	 */
71 71
 	public function get_name();
72 72
 
73 73
 	/**
74
-	* Set the book title
75
-	*
76
-	* @param string					$text	Book title
77
-	* @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
78
-	* @throws \vinabb\web\exceptions\unexpected_value
79
-	*/
74
+	 * Set the book title
75
+	 *
76
+	 * @param string					$text	Book title
77
+	 * @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
78
+	 * @throws \vinabb\web\exceptions\unexpected_value
79
+	 */
80 80
 	public function set_name($text);
81 81
 
82 82
 	/**
83
-	* Get the book SEO title
84
-	*
85
-	* @return string
86
-	*/
83
+	 * Get the book SEO title
84
+	 *
85
+	 * @return string
86
+	 */
87 87
 	public function get_name_seo();
88 88
 
89 89
 	/**
90
-	* Set the book SEO title
91
-	*
92
-	* @param string					$text	Book SEO title
93
-	* @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
94
-	* @throws \vinabb\web\exceptions\unexpected_value
95
-	*/
90
+	 * Set the book SEO title
91
+	 *
92
+	 * @param string					$text	Book SEO title
93
+	 * @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
94
+	 * @throws \vinabb\web\exceptions\unexpected_value
95
+	 */
96 96
 	public function set_name_seo($text);
97 97
 
98 98
 	/**
99
-	* Get the book language
100
-	*
101
-	* @return string
102
-	*/
99
+	 * Get the book language
100
+	 *
101
+	 * @return string
102
+	 */
103 103
 	public function get_lang();
104 104
 
105 105
 	/**
106
-	* Set the book language
107
-	*
108
-	* @param string					$text	2-letter language ISO code
109
-	* @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
110
-	* @throws \vinabb\web\exceptions\unexpected_value
111
-	*/
106
+	 * Set the book language
107
+	 *
108
+	 * @param string					$text	2-letter language ISO code
109
+	 * @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
110
+	 * @throws \vinabb\web\exceptions\unexpected_value
111
+	 */
112 112
 	public function set_lang($text);
113 113
 
114 114
 	/**
115
-	* Get the book cover
116
-	*
117
-	* @param bool	$real_path	True to return the path on filesystem, false to return the web access path
118
-	* @param bool	$full_path	True to return the path + filename, false to return only filename
119
-	* @return string
120
-	*/
115
+	 * Get the book cover
116
+	 *
117
+	 * @param bool	$real_path	True to return the path on filesystem, false to return the web access path
118
+	 * @param bool	$full_path	True to return the path + filename, false to return only filename
119
+	 * @return string
120
+	 */
121 121
 	public function get_img($real_path = false, $full_path = true);
122 122
 
123 123
 	/**
124
-	* Set the book cover
125
-	*
126
-	* @param string					$text	Book cover image
127
-	* @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
128
-	* @throws \vinabb\web\exceptions\unexpected_value
129
-	*/
124
+	 * Set the book cover
125
+	 *
126
+	 * @param string					$text	Book cover image
127
+	 * @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
128
+	 * @throws \vinabb\web\exceptions\unexpected_value
129
+	 */
130 130
 	public function set_img($text);
131 131
 
132 132
 	/**
133
-	* Get book description for edit
134
-	*
135
-	* @return string
136
-	*/
133
+	 * Get book description for edit
134
+	 *
135
+	 * @return string
136
+	 */
137 137
 	public function get_desc_for_edit();
138 138
 
139 139
 	/**
140
-	* Get book description for display
141
-	*
142
-	* @param bool $censor True to censor the text
143
-	* @return string
144
-	*/
140
+	 * Get book description for display
141
+	 *
142
+	 * @param bool $censor True to censor the text
143
+	 * @return string
144
+	 */
145 145
 	public function get_desc_for_display($censor = true);
146 146
 
147 147
 	/**
148
-	* Set book description
149
-	*
150
-	* @param string					$text	Book description
151
-	* @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
152
-	* @throws \vinabb\web\exceptions\unexpected_value
153
-	*/
148
+	 * Set book description
149
+	 *
150
+	 * @param string					$text	Book description
151
+	 * @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
152
+	 * @throws \vinabb\web\exceptions\unexpected_value
153
+	 */
154 154
 	public function set_desc($text);
155 155
 
156 156
 	/**
157
-	* Check if BBCode is enabled on the book description
158
-	*
159
-	* @return bool
160
-	*/
157
+	 * Check if BBCode is enabled on the book description
158
+	 *
159
+	 * @return bool
160
+	 */
161 161
 	public function desc_bbcode_enabled();
162 162
 
163 163
 	/**
164
-	* Enable/Disable BBCode on the book description
165
-	* This should be called before set_desc(); desc_enable_bbcode()->set_desc()
166
-	*
167
-	* @param bool					$enable	true: enable; false: disable
168
-	* @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
169
-	*/
164
+	 * Enable/Disable BBCode on the book description
165
+	 * This should be called before set_desc(); desc_enable_bbcode()->set_desc()
166
+	 *
167
+	 * @param bool					$enable	true: enable; false: disable
168
+	 * @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
169
+	 */
170 170
 	public function desc_enable_bbcode($enable);
171 171
 
172 172
 	/**
173
-	* Check if URLs is enabled on the book description
174
-	*
175
-	* @return bool
176
-	*/
173
+	 * Check if URLs is enabled on the book description
174
+	 *
175
+	 * @return bool
176
+	 */
177 177
 	public function desc_urls_enabled();
178 178
 
179 179
 	/**
180
-	* Enable/Disable URLs on the book description
181
-	* This should be called before set_desc(); desc_enable_urls()->set_desc()
182
-	*
183
-	* @param bool					$enable	true: enable; false: disable
184
-	* @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
185
-	*/
180
+	 * Enable/Disable URLs on the book description
181
+	 * This should be called before set_desc(); desc_enable_urls()->set_desc()
182
+	 *
183
+	 * @param bool					$enable	true: enable; false: disable
184
+	 * @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
185
+	 */
186 186
 	public function desc_enable_urls($enable);
187 187
 
188 188
 	/**
189
-	* Check if smilies are enabled on the book description
190
-	*
191
-	* @return bool
192
-	*/
189
+	 * Check if smilies are enabled on the book description
190
+	 *
191
+	 * @return bool
192
+	 */
193 193
 	public function desc_smilies_enabled();
194 194
 
195 195
 	/**
196
-	* Enable/Disable smilies on the book description
197
-	* This should be called before set_desc(); desc_enable_smilies()->set_desc()
198
-	*
199
-	* @param bool					$enable	true: enable; false: disable
200
-	* @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
201
-	*/
196
+	 * Enable/Disable smilies on the book description
197
+	 * This should be called before set_desc(); desc_enable_smilies()->set_desc()
198
+	 *
199
+	 * @param bool					$enable	true: enable; false: disable
200
+	 * @return bbook_book_interface	$this	Object for chaining calls: load()->set()->save()
201
+	 */
202 202
 	public function desc_enable_smilies($enable);
203 203
 }
Please login to merge, or discard this patch.
ext/vinabb/web/entities/sub/book_desc.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -25,33 +25,33 @@  discard block
 block discarded – undo
25 25
 	protected $prefix = 'book_desc';
26 26
 
27 27
 	/**
28
-	* Get book description for edit
29
-	*
30
-	* @return string
31
-	*/
28
+	 * Get book description for edit
29
+	 *
30
+	 * @return string
31
+	 */
32 32
 	public function get_desc_for_edit()
33 33
 	{
34 34
 		return $this->get_for_edit($this->prefix);
35 35
 	}
36 36
 
37 37
 	/**
38
-	* Get book description for display
39
-	*
40
-	* @param bool $censor True to censor the text
41
-	* @return string
42
-	*/
38
+	 * Get book description for display
39
+	 *
40
+	 * @param bool $censor True to censor the text
41
+	 * @return string
42
+	 */
43 43
 	public function get_desc_for_display($censor = true)
44 44
 	{
45 45
 		return $this->get_for_display($this->prefix, $censor);
46 46
 	}
47 47
 
48 48
 	/**
49
-	* Set book description
50
-	*
51
-	* @param string		$text	Book description
52
-	* @return book_desc	$this	Object for chaining calls: load()->set()->save()
53
-	* @throws \vinabb\web\exceptions\unexpected_value
54
-	*/
49
+	 * Set book description
50
+	 *
51
+	 * @param string		$text	Book description
52
+	 * @return book_desc	$this	Object for chaining calls: load()->set()->save()
53
+	 * @throws \vinabb\web\exceptions\unexpected_value
54
+	 */
55 55
 	public function set_desc($text)
56 56
 	{
57 57
 		$text = (string) $text;
@@ -66,66 +66,66 @@  discard block
 block discarded – undo
66 66
 	}
67 67
 
68 68
 	/**
69
-	* Check if BBCode is enabled on the book description
70
-	*
71
-	* @return bool
72
-	*/
69
+	 * Check if BBCode is enabled on the book description
70
+	 *
71
+	 * @return bool
72
+	 */
73 73
 	public function desc_bbcode_enabled()
74 74
 	{
75 75
 		return $this->bbcode_enabled($this->prefix);
76 76
 	}
77 77
 
78 78
 	/**
79
-	* Enable/Disable BBCode on the book description
80
-	* This should be called before set_desc(); desc_enable_bbcode()->set_desc()
81
-	*
82
-	* @param bool		$enable	true: enable; false: disable
83
-	* @return book_desc	$this	Object for chaining calls: load()->set()->save()
84
-	*/
79
+	 * Enable/Disable BBCode on the book description
80
+	 * This should be called before set_desc(); desc_enable_bbcode()->set_desc()
81
+	 *
82
+	 * @param bool		$enable	true: enable; false: disable
83
+	 * @return book_desc	$this	Object for chaining calls: load()->set()->save()
84
+	 */
85 85
 	public function desc_enable_bbcode($enable)
86 86
 	{
87 87
 		return $this->enable_bbcode($this->prefix, $enable);
88 88
 	}
89 89
 
90 90
 	/**
91
-	* Check if URLs is enabled on the book description
92
-	*
93
-	* @return bool
94
-	*/
91
+	 * Check if URLs is enabled on the book description
92
+	 *
93
+	 * @return bool
94
+	 */
95 95
 	public function desc_urls_enabled()
96 96
 	{
97 97
 		return $this->urls_enabled($this->prefix);
98 98
 	}
99 99
 
100 100
 	/**
101
-	* Enable/Disable URLs on the book description
102
-	* This should be called before set_desc(); desc_enable_urls()->set_desc()
103
-	*
104
-	* @param bool		$enable	true: enable; false: disable
105
-	* @return book_desc	$this	Object for chaining calls: load()->set()->save()
106
-	*/
101
+	 * Enable/Disable URLs on the book description
102
+	 * This should be called before set_desc(); desc_enable_urls()->set_desc()
103
+	 *
104
+	 * @param bool		$enable	true: enable; false: disable
105
+	 * @return book_desc	$this	Object for chaining calls: load()->set()->save()
106
+	 */
107 107
 	public function desc_enable_urls($enable)
108 108
 	{
109 109
 		return $this->enable_urls($this->prefix, $enable);
110 110
 	}
111 111
 
112 112
 	/**
113
-	* Check if smilies are enabled on the book description
114
-	*
115
-	* @return bool
116
-	*/
113
+	 * Check if smilies are enabled on the book description
114
+	 *
115
+	 * @return bool
116
+	 */
117 117
 	public function desc_smilies_enabled()
118 118
 	{
119 119
 		return $this->smilies_enabled($this->prefix);
120 120
 	}
121 121
 
122 122
 	/**
123
-	* Enable/Disable smilies on the book description
124
-	* This should be called before set_desc(); desc_enable_smilies()->set_desc()
125
-	*
126
-	* @param bool		$enable	true: enable; false: disable
127
-	* @return book_desc	$this	Object for chaining calls: load()->set()->save()
128
-	*/
123
+	 * Enable/Disable smilies on the book description
124
+	 * This should be called before set_desc(); desc_enable_smilies()->set_desc()
125
+	 *
126
+	 * @param bool		$enable	true: enable; false: disable
127
+	 * @return book_desc	$this	Object for chaining calls: load()->set()->save()
128
+	 */
129 129
 	public function desc_enable_smilies($enable)
130 130
 	{
131 131
 		return $this->enable_smilies($this->prefix, $enable);
Please login to merge, or discard this patch.
ext/vinabb/web/entities/sub/word_desc.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -25,33 +25,33 @@  discard block
 block discarded – undo
25 25
 	protected $prefix = 'word_desc';
26 26
 
27 27
 	/**
28
-	* Get word explanation for edit
29
-	*
30
-	* @return string
31
-	*/
28
+	 * Get word explanation for edit
29
+	 *
30
+	 * @return string
31
+	 */
32 32
 	public function get_desc_for_edit()
33 33
 	{
34 34
 		return $this->get_for_edit($this->prefix);
35 35
 	}
36 36
 
37 37
 	/**
38
-	* Get word explanation for display
39
-	*
40
-	* @param bool $censor True to censor the text
41
-	* @return string
42
-	*/
38
+	 * Get word explanation for display
39
+	 *
40
+	 * @param bool $censor True to censor the text
41
+	 * @return string
42
+	 */
43 43
 	public function get_desc_for_display($censor = true)
44 44
 	{
45 45
 		return $this->get_for_display($this->prefix, $censor);
46 46
 	}
47 47
 
48 48
 	/**
49
-	* Set word explanation
50
-	*
51
-	* @param string		$text	Word explanation
52
-	* @return word_desc	$this	Object for chaining calls: load()->set()->save()
53
-	* @throws \vinabb\web\exceptions\unexpected_value
54
-	*/
49
+	 * Set word explanation
50
+	 *
51
+	 * @param string		$text	Word explanation
52
+	 * @return word_desc	$this	Object for chaining calls: load()->set()->save()
53
+	 * @throws \vinabb\web\exceptions\unexpected_value
54
+	 */
55 55
 	public function set_desc($text)
56 56
 	{
57 57
 		$text = (string) $text;
@@ -66,66 +66,66 @@  discard block
 block discarded – undo
66 66
 	}
67 67
 
68 68
 	/**
69
-	* Check if BBCode is enabled on the word explanation
70
-	*
71
-	* @return bool
72
-	*/
69
+	 * Check if BBCode is enabled on the word explanation
70
+	 *
71
+	 * @return bool
72
+	 */
73 73
 	public function desc_bbcode_enabled()
74 74
 	{
75 75
 		return $this->bbcode_enabled($this->prefix);
76 76
 	}
77 77
 
78 78
 	/**
79
-	* Enable/Disable BBCode on the word explanation
80
-	* This should be called before set_desc(); desc_enable_bbcode()->set_desc()
81
-	*
82
-	* @param bool		$enable	true: enable; false: disable
83
-	* @return word_desc	$this	Object for chaining calls: load()->set()->save()
84
-	*/
79
+	 * Enable/Disable BBCode on the word explanation
80
+	 * This should be called before set_desc(); desc_enable_bbcode()->set_desc()
81
+	 *
82
+	 * @param bool		$enable	true: enable; false: disable
83
+	 * @return word_desc	$this	Object for chaining calls: load()->set()->save()
84
+	 */
85 85
 	public function desc_enable_bbcode($enable)
86 86
 	{
87 87
 		return $this->enable_bbcode($this->prefix, $enable);
88 88
 	}
89 89
 
90 90
 	/**
91
-	* Check if URLs is enabled on the word explanation
92
-	*
93
-	* @return bool
94
-	*/
91
+	 * Check if URLs is enabled on the word explanation
92
+	 *
93
+	 * @return bool
94
+	 */
95 95
 	public function desc_urls_enabled()
96 96
 	{
97 97
 		return $this->urls_enabled($this->prefix);
98 98
 	}
99 99
 
100 100
 	/**
101
-	* Enable/Disable URLs on the word explanation
102
-	* This should be called before set_desc(); desc_enable_urls()->set_desc()
103
-	*
104
-	* @param bool		$enable	true: enable; false: disable
105
-	* @return word_desc	$this	Object for chaining calls: load()->set()->save()
106
-	*/
101
+	 * Enable/Disable URLs on the word explanation
102
+	 * This should be called before set_desc(); desc_enable_urls()->set_desc()
103
+	 *
104
+	 * @param bool		$enable	true: enable; false: disable
105
+	 * @return word_desc	$this	Object for chaining calls: load()->set()->save()
106
+	 */
107 107
 	public function desc_enable_urls($enable)
108 108
 	{
109 109
 		return $this->enable_urls($this->prefix, $enable);
110 110
 	}
111 111
 
112 112
 	/**
113
-	* Check if smilies are enabled on the word explanation
114
-	*
115
-	* @return bool
116
-	*/
113
+	 * Check if smilies are enabled on the word explanation
114
+	 *
115
+	 * @return bool
116
+	 */
117 117
 	public function desc_smilies_enabled()
118 118
 	{
119 119
 		return $this->smilies_enabled($this->prefix);
120 120
 	}
121 121
 
122 122
 	/**
123
-	* Enable/Disable smilies on the word explanation
124
-	* This should be called before set_desc(); desc_enable_smilies()->set_desc()
125
-	*
126
-	* @param bool		$enable	true: enable; false: disable
127
-	* @return word_desc	$this	Object for chaining calls: load()->set()->save()
128
-	*/
123
+	 * Enable/Disable smilies on the word explanation
124
+	 * This should be called before set_desc(); desc_enable_smilies()->set_desc()
125
+	 *
126
+	 * @param bool		$enable	true: enable; false: disable
127
+	 * @return word_desc	$this	Object for chaining calls: load()->set()->save()
128
+	 */
129 129
 	public function desc_enable_smilies($enable)
130 130
 	{
131 131
 		return $this->enable_smilies($this->prefix, $enable);
Please login to merge, or discard this patch.
ext/vinabb/web/migrations/v10x/bbook_config.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
 class bbook_config extends migration
17 17
 {
18 18
 	/**