|
@@ 181-191 (lines=11) @@
|
| 178 |
|
* @return array Custom BBCode user group ids |
| 179 |
|
* @access public |
| 180 |
|
*/ |
| 181 |
|
public function get_bbcode_group_data($bbcode_id) |
| 182 |
|
{ |
| 183 |
|
$sql = 'SELECT bbcode_group |
| 184 |
|
FROM ' . BBCODES_TABLE . ' |
| 185 |
|
WHERE bbcode_id = ' . (int) $bbcode_id; |
| 186 |
|
$result = $this->db->sql_query($sql); |
| 187 |
|
$row = $this->db->sql_fetchrow($result); |
| 188 |
|
$this->db->sql_freeresult($result); |
| 189 |
|
|
| 190 |
|
return explode(',', $row['bbcode_group']); |
| 191 |
|
} |
| 192 |
|
|
| 193 |
|
/** |
| 194 |
|
* Get the bbcode_group data from the database, |
|
@@ 302-311 (lines=10) @@
|
| 299 |
|
* @return int The maximum value in the column |
| 300 |
|
* @access protected |
| 301 |
|
*/ |
| 302 |
|
protected function get_max_column_value($column) |
| 303 |
|
{ |
| 304 |
|
$sql = 'SELECT MAX(' . $this->db->sql_escape($column) . ') AS maximum |
| 305 |
|
FROM ' . BBCODES_TABLE; |
| 306 |
|
$result = $this->db->sql_query($sql); |
| 307 |
|
$maximum = $this->db->sql_fetchfield('maximum'); |
| 308 |
|
$this->db->sql_freeresult($result); |
| 309 |
|
|
| 310 |
|
return (int) $maximum; |
| 311 |
|
} |
| 312 |
|
} |
| 313 |
|
|