Completed
Push — master ( 47b0f8...cbbce4 )
by Khoa
09:57
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_text_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_text_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_text($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 text_bbcode_enabled();
128 128
 
129 129
 	/**
130
-	* Enable/Disable BBCode on the word explanation
131
-	* This should be called before set_text(); text_enable_bbcode()->set_text()
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_text(); text_enable_bbcode()->set_text()
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 text_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 text_urls_enabled();
144 144
 
145 145
 	/**
146
-	* Enable/Disable URLs on the word explanation
147
-	* This should be called before set_text(); text_enable_urls()->set_text()
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_text(); text_enable_urls()->set_text()
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 text_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 text_smilies_enabled();
160 160
 
161 161
 	/**
162
-	* Enable/Disable smilies on the word explanation
163
-	* This should be called before set_text(); text_enable_smilies()->set_text()
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_text(); text_enable_smilies()->set_text()
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 text_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_word.php 1 patch
Indentation   +75 added lines, -75 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
29 29
 	protected $data;
30 30
 
31 31
 	/**
32
-	* Constructor
33
-	*
34
-	* @param \phpbb\db\driver\driver_interface				$db				Database object
35
-	* @param \vinabb\web\entities\helper\helper_interface	$entity_helper	Entity helper
36
-	* @param string											$table_name		Table name
37
-	*/
32
+	 * Constructor
33
+	 *
34
+	 * @param \phpbb\db\driver\driver_interface				$db				Database object
35
+	 * @param \vinabb\web\entities\helper\helper_interface	$entity_helper	Entity helper
36
+	 * @param string											$table_name		Table name
37
+	 */
38 38
 	public function __construct(\phpbb\db\driver\driver_interface $db, \vinabb\web\entities\helper\helper_interface $entity_helper, $table_name)
39 39
 	{
40 40
 		$this->db = $db;
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
 	}
44 44
 
45 45
 	/**
46
-	* Data for this entity
47
-	*
48
-	* @return array
49
-	*/
46
+	 * Data for this entity
47
+	 *
48
+	 * @return array
49
+	 */
50 50
 	protected function prepare_data()
51 51
 	{
52 52
 		return [
@@ -64,12 +64,12 @@  discard block
 block discarded – undo
64 64
 	}
65 65
 
66 66
 	/**
67
-	* Load the data from the database for an entity
68
-	*
69
-	* @param int					$id		Word ID
70
-	* @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
71
-	* @throws \vinabb\web\exceptions\out_of_bounds
72
-	*/
67
+	 * Load the data from the database for an entity
68
+	 *
69
+	 * @param int					$id		Word ID
70
+	 * @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
71
+	 * @throws \vinabb\web\exceptions\out_of_bounds
72
+	 */
73 73
 	public function load($id)
74 74
 	{
75 75
 		$sql = 'SELECT *
@@ -89,16 +89,16 @@  discard block
 block discarded – undo
89 89
 	}
90 90
 
91 91
 	/**
92
-	* Import data for an entity
93
-	*
94
-	* Used when the data is already loaded externally.
95
-	* Any existing data on this entity is over-written.
96
-	* All data is validated and an exception is thrown if any data is invalid.
97
-	*
98
-	* @param array					$data	Data array from the database
99
-	* @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
100
-	* @throws \vinabb\web\exceptions\invalid_argument
101
-	*/
92
+	 * Import data for an entity
93
+	 *
94
+	 * Used when the data is already loaded externally.
95
+	 * Any existing data on this entity is over-written.
96
+	 * All data is validated and an exception is thrown if any data is invalid.
97
+	 *
98
+	 * @param array					$data	Data array from the database
99
+	 * @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
100
+	 * @throws \vinabb\web\exceptions\invalid_argument
101
+	 */
102 102
 	public function import($data)
103 103
 	{
104 104
 		// Clear out any saved data
@@ -126,13 +126,13 @@  discard block
 block discarded – undo
126 126
 	}
127 127
 
128 128
 	/**
129
-	* Insert the entity for the first time
130
-	*
131
-	* Will throw an exception if the entity was already inserted (call save() instead)
132
-	*
133
-	* @return bbook_word_interface $this Object for chaining calls: load()->set()->save()
134
-	* @throws \vinabb\web\exceptions\out_of_bounds
135
-	*/
129
+	 * Insert the entity for the first time
130
+	 *
131
+	 * Will throw an exception if the entity was already inserted (call save() instead)
132
+	 *
133
+	 * @return bbook_word_interface $this Object for chaining calls: load()->set()->save()
134
+	 * @throws \vinabb\web\exceptions\out_of_bounds
135
+	 */
136 136
 	public function insert()
137 137
 	{
138 138
 		// The entity already exists
@@ -154,14 +154,14 @@  discard block
 block discarded – undo
154 154
 	}
155 155
 
156 156
 	/**
157
-	* Save the current settings to the database
158
-	*
159
-	* This must be called before closing or any changes will not be saved!
160
-	* If adding an entity (saving for the first time), you must call insert() or an exception will be thrown
161
-	*
162
-	* @return bbook_word_interface $this Object for chaining calls: load()->set()->save()
163
-	* @throws \vinabb\web\exceptions\out_of_bounds
164
-	*/
157
+	 * Save the current settings to the database
158
+	 *
159
+	 * This must be called before closing or any changes will not be saved!
160
+	 * If adding an entity (saving for the first time), you must call insert() or an exception will be thrown
161
+	 *
162
+	 * @return bbook_word_interface $this Object for chaining calls: load()->set()->save()
163
+	 * @throws \vinabb\web\exceptions\out_of_bounds
164
+	 */
165 165
 	public function save()
166 166
 	{
167 167
 		// The entity does not exist
@@ -183,32 +183,32 @@  discard block
 block discarded – undo
183 183
 	}
184 184
 
185 185
 	/**
186
-	* Get the word ID
187
-	*
188
-	* @return int
189
-	*/
186
+	 * Get the word ID
187
+	 *
188
+	 * @return int
189
+	 */
190 190
 	public function get_id()
191 191
 	{
192 192
 		return isset($this->data['word_id']) ? (int) $this->data['word_id'] : 0;
193 193
 	}
194 194
 
195 195
 	/**
196
-	* Get the word
197
-	*
198
-	* @return string
199
-	*/
196
+	 * Get the word
197
+	 *
198
+	 * @return string
199
+	 */
200 200
 	public function get_word()
201 201
 	{
202 202
 		return isset($this->data['word']) ? (string) $this->data['word'] : '';
203 203
 	}
204 204
 
205 205
 	/**
206
-	* Set the word
207
-	*
208
-	* @param string					$text	Word
209
-	* @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
210
-	* @throws \vinabb\web\exceptions\unexpected_value
211
-	*/
206
+	 * Set the word
207
+	 *
208
+	 * @param string					$text	Word
209
+	 * @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
210
+	 * @throws \vinabb\web\exceptions\unexpected_value
211
+	 */
212 212
 	public function set_word($text)
213 213
 	{
214 214
 		$text = (string) $text;
@@ -232,22 +232,22 @@  discard block
 block discarded – undo
232 232
 	}
233 233
 
234 234
 	/**
235
-	* Get the word language
236
-	*
237
-	* @return string
238
-	*/
235
+	 * Get the word language
236
+	 *
237
+	 * @return string
238
+	 */
239 239
 	public function get_lang()
240 240
 	{
241 241
 		return isset($this->data['word_lang']) ? (string) $this->data['word_lang'] : '';
242 242
 	}
243 243
 
244 244
 	/**
245
-	* Set the word language
246
-	*
247
-	* @param string					$text	2-letter language ISO code
248
-	* @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
249
-	* @throws \vinabb\web\exceptions\unexpected_value
250
-	*/
245
+	 * Set the word language
246
+	 *
247
+	 * @param string					$text	2-letter language ISO code
248
+	 * @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
249
+	 * @throws \vinabb\web\exceptions\unexpected_value
250
+	 */
251 251
 	public function set_lang($text)
252 252
 	{
253 253
 		$text = (string) $text;
@@ -269,22 +269,22 @@  discard block
 block discarded – undo
269 269
 	}
270 270
 
271 271
 	/**
272
-	* Get the word link
273
-	*
274
-	* @return string
275
-	*/
272
+	 * Get the word link
273
+	 *
274
+	 * @return string
275
+	 */
276 276
 	public function get_url()
277 277
 	{
278 278
 		return isset($this->data['word_url']) ? (string) htmlspecialchars_decode($this->data['word_url']) : '';
279 279
 	}
280 280
 
281 281
 	/**
282
-	* Set the word link
283
-	*
284
-	* @param string					$text	Word URL
285
-	* @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
286
-	* @throws \vinabb\web\exceptions\unexpected_value
287
-	*/
282
+	 * Set the word link
283
+	 *
284
+	 * @param string					$text	Word URL
285
+	 * @return bbook_word_interface	$this	Object for chaining calls: load()->set()->save()
286
+	 * @throws \vinabb\web\exceptions\unexpected_value
287
+	 */
288 288
 	public function set_url($text)
289 289
 	{
290 290
 		$text = strtolower($text);
Please login to merge, or discard this patch.
ext/vinabb/web/entities/bbook_chapter_interface.php 1 patch
Indentation   +150 added lines, -150 removed lines patch added patch discarded remove patch
@@ -14,239 +14,239 @@
 block discarded – undo
14 14
 interface bbook_chapter_interface
15 15
 {
16 16
 	/**
17
-	* Load the data from the database for an entity
18
-	*
19
-	* @param int						$id		Chapter ID
20
-	* @return bbook_chapter_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		Chapter ID
20
+	 * @return bbook_chapter_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_chapter_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_chapter_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_chapter_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_chapter_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_chapter_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_chapter_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 ID
68
-	*
69
-	* @return int
70
-	*/
67
+	 * Get the book ID
68
+	 *
69
+	 * @return int
70
+	 */
71 71
 	public function get_book_id();
72 72
 
73 73
 	/**
74
-	* Set the book ID
75
-	*
76
-	* @param int						$id		Book ID
77
-	* @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
78
-	* @throws \vinabb\web\exceptions\unexpected_value
79
-	*/
74
+	 * Set the book ID
75
+	 *
76
+	 * @param int						$id		Book ID
77
+	 * @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
78
+	 * @throws \vinabb\web\exceptions\unexpected_value
79
+	 */
80 80
 	public function set_book_id($id);
81 81
 
82 82
 	/**
83
-	* Get the parent chapter ID
84
-	*
85
-	* @return int
86
-	*/
83
+	 * Get the parent chapter ID
84
+	 *
85
+	 * @return int
86
+	 */
87 87
 	public function get_parent_id();
88 88
 
89 89
 	/**
90
-	* Set the parent chapter ID
91
-	*
92
-	* @param int						$id		Parent ID
93
-	* @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
94
-	* @throws \vinabb\web\exceptions\unexpected_value
95
-	*/
90
+	 * Set the parent chapter ID
91
+	 *
92
+	 * @param int						$id		Parent ID
93
+	 * @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
94
+	 * @throws \vinabb\web\exceptions\unexpected_value
95
+	 */
96 96
 	public function set_parent_id($id);
97 97
 
98 98
 	/**
99
-	* Get the left_id for the tree
100
-	*
101
-	* @return int
102
-	*/
99
+	 * Get the left_id for the tree
100
+	 *
101
+	 * @return int
102
+	 */
103 103
 	public function get_left_id();
104 104
 
105 105
 	/**
106
-	* Get the right_id for the tree
107
-	*
108
-	* @return int
109
-	*/
106
+	 * Get the right_id for the tree
107
+	 *
108
+	 * @return int
109
+	 */
110 110
 	public function get_right_id();
111 111
 
112 112
 	/**
113
-	* Get the chapter title
114
-	*
115
-	* @return string
116
-	*/
113
+	 * Get the chapter title
114
+	 *
115
+	 * @return string
116
+	 */
117 117
 	public function get_name();
118 118
 
119 119
 	/**
120
-	* Set the chapter title
121
-	*
122
-	* @param string						$text	Chapter title
123
-	* @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
124
-	* @throws \vinabb\web\exceptions\unexpected_value
125
-	*/
120
+	 * Set the chapter title
121
+	 *
122
+	 * @param string						$text	Chapter title
123
+	 * @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
124
+	 * @throws \vinabb\web\exceptions\unexpected_value
125
+	 */
126 126
 	public function set_name($text);
127 127
 
128 128
 	/**
129
-	* Get the chapter SEO title
130
-	*
131
-	* @return string
132
-	*/
129
+	 * Get the chapter SEO title
130
+	 *
131
+	 * @return string
132
+	 */
133 133
 	public function get_name_seo();
134 134
 
135 135
 	/**
136
-	* Set the chapter SEO title
137
-	*
138
-	* @param string						$text	Chapter SEO title
139
-	* @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
140
-	* @throws \vinabb\web\exceptions\unexpected_value
141
-	*/
136
+	 * Set the chapter SEO title
137
+	 *
138
+	 * @param string						$text	Chapter SEO title
139
+	 * @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
140
+	 * @throws \vinabb\web\exceptions\unexpected_value
141
+	 */
142 142
 	public function set_name_seo($text);
143 143
 
144 144
 	/**
145
-	* Get the chapter language
146
-	*
147
-	* @return string
148
-	*/
145
+	 * Get the chapter language
146
+	 *
147
+	 * @return string
148
+	 */
149 149
 	public function get_lang();
150 150
 
151 151
 	/**
152
-	* Set the chapter language
153
-	*
154
-	* @param string						$text	2-letter language ISO code
155
-	* @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
156
-	* @throws \vinabb\web\exceptions\unexpected_value
157
-	*/
152
+	 * Set the chapter language
153
+	 *
154
+	 * @param string						$text	2-letter language ISO code
155
+	 * @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
156
+	 * @throws \vinabb\web\exceptions\unexpected_value
157
+	 */
158 158
 	public function set_lang($text);
159 159
 
160 160
 	/**
161
-	* Get chapter content for edit
162
-	*
163
-	* @return string
164
-	*/
161
+	 * Get chapter content for edit
162
+	 *
163
+	 * @return string
164
+	 */
165 165
 	public function get_text_for_edit();
166 166
 
167 167
 	/**
168
-	* Get chapter content for display
169
-	*
170
-	* @param bool $censor True to censor the text
171
-	* @return string
172
-	*/
168
+	 * Get chapter content for display
169
+	 *
170
+	 * @param bool $censor True to censor the text
171
+	 * @return string
172
+	 */
173 173
 	public function get_text_for_display($censor = true);
174 174
 
175 175
 	/**
176
-	* Set chapter content
177
-	*
178
-	* @param string						$text	Chapter content
179
-	* @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
180
-	* @throws \vinabb\web\exceptions\unexpected_value
181
-	*/
176
+	 * Set chapter content
177
+	 *
178
+	 * @param string						$text	Chapter content
179
+	 * @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
180
+	 * @throws \vinabb\web\exceptions\unexpected_value
181
+	 */
182 182
 	public function set_text($text);
183 183
 
184 184
 	/**
185
-	* Check if BBCode is enabled on the chapter content
186
-	*
187
-	* @return bool
188
-	*/
185
+	 * Check if BBCode is enabled on the chapter content
186
+	 *
187
+	 * @return bool
188
+	 */
189 189
 	public function text_bbcode_enabled();
190 190
 
191 191
 	/**
192
-	* Enable/Disable BBCode on the chapter content
193
-	* This should be called before set_text(); text_enable_bbcode()->set_text()
194
-	*
195
-	* @param bool						$enable	true: enable; false: disable
196
-	* @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
197
-	*/
192
+	 * Enable/Disable BBCode on the chapter content
193
+	 * This should be called before set_text(); text_enable_bbcode()->set_text()
194
+	 *
195
+	 * @param bool						$enable	true: enable; false: disable
196
+	 * @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
197
+	 */
198 198
 	public function text_enable_bbcode($enable);
199 199
 
200 200
 	/**
201
-	* Check if URLs is enabled on the chapter content
202
-	*
203
-	* @return bool
204
-	*/
201
+	 * Check if URLs is enabled on the chapter content
202
+	 *
203
+	 * @return bool
204
+	 */
205 205
 	public function text_urls_enabled();
206 206
 
207 207
 	/**
208
-	* Enable/Disable URLs on the chapter content
209
-	* This should be called before set_text(); text_enable_urls()->set_text()
210
-	*
211
-	* @param bool						$enable	true: enable; false: disable
212
-	* @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
213
-	*/
208
+	 * Enable/Disable URLs on the chapter content
209
+	 * This should be called before set_text(); text_enable_urls()->set_text()
210
+	 *
211
+	 * @param bool						$enable	true: enable; false: disable
212
+	 * @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
213
+	 */
214 214
 	public function text_enable_urls($enable);
215 215
 
216 216
 	/**
217
-	* Check if smilies are enabled on the chapter content
218
-	*
219
-	* @return bool
220
-	*/
217
+	 * Check if smilies are enabled on the chapter content
218
+	 *
219
+	 * @return bool
220
+	 */
221 221
 	public function text_smilies_enabled();
222 222
 
223 223
 	/**
224
-	* Enable/Disable smilies on the chapter content
225
-	* This should be called before set_text(); text_enable_smilies()->set_text()
226
-	*
227
-	* @param bool						$enable	true: enable; false: disable
228
-	* @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
229
-	*/
224
+	 * Enable/Disable smilies on the chapter content
225
+	 * This should be called before set_text(); text_enable_smilies()->set_text()
226
+	 *
227
+	 * @param bool						$enable	true: enable; false: disable
228
+	 * @return bbook_chapter_interface	$this	Object for chaining calls: load()->set()->save()
229
+	 */
230 230
 	public function text_enable_smilies($enable);
231 231
 
232 232
 	/**
233
-	* Get the chapter views
234
-	*
235
-	* @return int
236
-	*/
233
+	 * Get the chapter views
234
+	 *
235
+	 * @return int
236
+	 */
237 237
 	public function get_views();
238 238
 
239 239
 	/**
240
-	* Get the editing time
241
-	*
242
-	* @return int
243
-	*/
240
+	 * Get the editing time
241
+	 *
242
+	 * @return int
243
+	 */
244 244
 	public function get_time();
245 245
 
246 246
 	/**