public function getSettings()
{
$settings = (object) array('_msgtype' => 'settings', 'name' => $this->name, 'targettime' => $this->targetTime, 'weight' => $this->weight, 'localonly' => isset($this->localonly) ? $this->localonly : TRUE);
return $settings;
}