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;
    }
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;
    }
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 ; }
Set a notification value for a notitification type.

@param string $type       The type of the notification.
@param mixed  $value      The value of the notification setting.
@param bool   $send_email Boolean flag to whether email the notifications to the user or not

@return ComNotificationsDomainEntitySetting
Set a notification value for a notitification type .