CKFinder_Connector_Core_Config::getXSendfileNginx PHP Метод

getXSendfileNginx() публичный Метод

Get the dditional Nginx X-Sendfile configuration (location => root)
public getXSendfileNginx ( )
    public function getXSendfileNginx()
    {
        $xsendfileNginx = array();
        foreach ($this->_xsendfileNginx as $location => $root) {
            $root = (string) $root;
            $location = rtrim((string) $location, '/') . '/';
            if (substr($root, -1, 1) != '/' && substr($root, -1, 1) != '\\') {
                // root and location paths are concatenated
                // @see http://wiki.nginx.org/XSendfile
                $root = CKFinder_Connector_Utils_FileSystem::combinePaths(rtrim($root, '/'), $location);
            }
            $xsendfileNginx[$location] = $root;
        }
        return $xsendfileNginx;
    }