function on($user)
{
- return $this->set_notify($user, 1);
+ return $this->setNotify($user, 1);
}
function off($user)
{
- return $this->set_notify($user, 0);
+ return $this->setNotify($user, 0);
}
function output($user, $text)
{
$text = '['.common_config('site', 'name') . '] ' . $text;
- $this->imPlugin->send_message($this->imPlugin->get_screenname($user), $text);
+ $this->imPlugin->sendMessage($this->imPlugin->getScreenname($user), $text);
}
function error($user, $text)
{
$text = '['.common_config('site', 'name') . '] ' . $text;
- $screenname = $this->imPlugin->get_screenname($user);
+ $screenname = $this->imPlugin->getScreenname($user);
if($screenname){
- $this->imPlugin->send_message($screenname, $text);
+ $this->imPlugin->sendMessage($screenname, $text);
return true;
}else{
common_log(LOG_ERR,
}
}
- function set_notify($user, $notify)
+ function setNotify($user, $notify)
{
+ global $_PEAR;
+
$user_im_prefs = new User_im_prefs();
$user_im_prefs->transport = $this->imPlugin->transport;
$user_im_prefs->user_id = $user->id;
$result = $user_im_prefs->update($original);
if (!$result) {
- $last_error = &PEAR::getStaticProperty('DB_DataObject','lastError');
+ $last_error = &$_PEAR->getStaticProperty('DB_DataObject','lastError');
common_log(LOG_ERR,
'Could not set notify flag to ' . $notify .
' for user ' . common_log_objstring($user) .