public function setValue($type, $value, $send_email)
    {
        $filter = $this->getService('anahita:filter.cmd');
        $type = $filter->sanitize($type);
        $value = $filter->sanitize($value);

        settype($send_email, 'boolean');

        if (!in_range($type, 0, 2)) {
            $type = 1;
        }

        $send_email = (bool) $send_email;
        $this->__call('setValue', array($type, array('send_email' => $send_email)));

        return $this;
    }