Fluent::set_force_is_frontend PHP Метод

set_force_is_frontend() публичный статический Метод

Sets whether to force "is_frontend" to return true or false. This can be used for situations where the frontend controllers are not involved, e.g. API modules, unit testing or retrieving data programmatically.
public static set_force_is_frontend ( boolean $force = true )
$force boolean
    public static function set_force_is_frontend($force = true)
    {
        self::$force_is_frontend = $force;
    }