# Get the internal database variables, containing the number of ham and
# spam texts so the spam probability can be calculated in relation to them
# Get the internal database variables, containing the number of ham and
# spam texts so the spam probability can be calculated in relation to them
- return $this->_process_text($text, $category, self::LEARN);
+ return $this->_process_text($text, $category, self::LEARN, $uid);
- return $this->_process_text($text, $category, self::UNLEARN);
+ return $this->_process_text($text, $category, self::UNLEARN, $uid);
- private function _process_text($text, $category, $action)
+ private function _process_text($text, $category, $action, $uid = 0)
- return $this->_database->process_text($tokens, $category, $action);
+ return $this->_database->process_text($tokens, $category, $action, $uid);