function &_get_item_from_row(&$row) { if (!$row) { return; } $item = new ModLogItem(); $item->set_from_db($row); return $item; }
function _log_user_moderation($_action, &$_user, $_reason) { $this->_prepare_modlog(); $change = new ModLogItem($_action); $change->set_reason($_reason); $change->set_from_user($this->get_current_user()); $change->set_from_moderator_group($this->get_current_group()); $change->set_attribute('username', $_user->get_name()); $this->get_modlogdb()->log($change); }