|
@@ 187-197 (lines=11) @@
|
| 184 |
|
* @return array Custom BBCode user group ids |
| 185 |
|
* @access public |
| 186 |
|
*/ |
| 187 |
|
public function get_bbcode_group_data($bbcode_id) |
| 188 |
|
{ |
| 189 |
|
$sql = 'SELECT bbcode_group |
| 190 |
|
FROM ' . BBCODES_TABLE . ' |
| 191 |
|
WHERE bbcode_id = ' . (int) $bbcode_id; |
| 192 |
|
$result = $this->db->sql_query($sql); |
| 193 |
|
$row = $this->db->sql_fetchrow($result); |
| 194 |
|
$this->db->sql_freeresult($result); |
| 195 |
|
|
| 196 |
|
return explode(',', $row['bbcode_group']); |
| 197 |
|
} |
| 198 |
|
|
| 199 |
|
/** |
| 200 |
|
* Get the bbcode_group data from the database, |
|
@@ 308-317 (lines=10) @@
|
| 305 |
|
* @return int The maximum value in the column |
| 306 |
|
* @access protected |
| 307 |
|
*/ |
| 308 |
|
protected function get_max_column_value($column) |
| 309 |
|
{ |
| 310 |
|
$sql = 'SELECT MAX(' . $this->db->sql_escape($column) . ') AS maximum |
| 311 |
|
FROM ' . BBCODES_TABLE; |
| 312 |
|
$result = $this->db->sql_query($sql); |
| 313 |
|
$maximum = $this->db->sql_fetchfield('maximum'); |
| 314 |
|
$this->db->sql_freeresult($result); |
| 315 |
|
|
| 316 |
|
return (int) $maximum; |
| 317 |
|
} |
| 318 |
|
} |
| 319 |
|
|