yf_unsubscribe user module

Fileplugins/common/modules/yf_unsubscribe.class.php
Usemodule('unsubscribe'), URL ?object=unsubscribe

Public properties

PropertyDefaultDescription
None declared in this class.

Public methods 2

show

public function show()
    public function show()
    {
        common()->message_success(t('You just have been unsubscribed'));
        return js_redirect('./');
    }

Methods starting with _ hooks and helpers; not routable as page actions

public function _module_action_handler($method)
    public function _module_action_handler($method)
    {
        if ( ! $method || substr($method, 0, 1) === '_' || ! method_exists($this, $method)) {
            $method = 'show';
            // For links like this: /news/uvazhaemie-polzovateli-i-posetiteli
            if (($_GET['action'] ?? null) && ! ($_GET['id'] ?? null)) {
                $_GET['id'] = ($_GET['action'] ?? null);
                $_GET['action'] = $method;
            }
        }
        return $this->$method();
    }