source/Core/ShopControl.php
protected function _canExecuteFunction($view, $function)
    {
        $canExecute = true;
        if (method_exists($view, $function)) {
            $reflectionMethod = new ReflectionMethod($view, $function);
            if (!$reflectionMethod->isPublic()) {
                $canExecute = false;
            }
        }

        return $canExecute;
    }
protected function _canExecuteFunction($view, $function)
    {
        $canExecute = true;
        if (method_exists($view, $function)) {
            $reflectionMethod = new ReflectionMethod($view, $function);
            if (!$reflectionMethod->isPublic()) {
                $canExecute = false;
            }
        }

        return $canExecute;
    }
protected function _canExecuteFunction ( $ view , $ function ) { $ canExecute = true ; if ( method_exists ( $ view , $ function ) ) { $ reflectionMethod = new ReflectionMethod ( $ view , $ function ) ; if ( ! $ reflectionMethod -> isPublic ( ) ) { $ canExecute = false ; } } return $ canExecute ; }
Check if method can be executed.

@param FrontendController $view     View object to check if its method can be executed.
@param string             $function Method to check if it can be executed.

@return bool
Check if method can be executed .