protected function _actionSetprivacy($context)
    {
        $data = $context->data;

        $names = AnConfig::unbox($data->privacy_name);

        settype($names, 'array');

        foreach ($names as $name) {
            $this->getItem()->setPermission($name, $data->$name);
        }
    }
protected function _actionSetprivacy($context)
    {
        $data = $context->data;

        $names = AnConfig::unbox($data->privacy_name);

        settype($names, 'array');

        foreach ($names as $name) {
            $this->getItem()->setPermission($name, $data->$name);
        }
    }
protected function _actionSetprivacy ( $ context ) { $ data = $ context -> data ; $ names = AnConfig :: unbox ( $ data -> privacy_name ) ; settype ( $ names , 'array' ) ; foreach ( $ names as $ name ) { $ this -> getItem ( ) -> setPermission ( $ name , $ data -> $ name ) ; } }
Set a privacy for a privatable entity.

@param AnCommandContext $context Context parameter
Set a privacy for a privatable entity .