Gets the object realpath if found

@return string The absolute canonical path of the file in the server filesystem
489750
public function getRealPath()
    {
        $path = parent::getRealPath();
        if (empty($path)) {
            $path = $this->getRootDir().$this->getFilename();
        }
        return $path;
    }
52141
public function findRealPath($file_path)
    {
        if (@file_exists($file_path)) {
            return realpath($file_path);
        }
        if (@file_exists($this->web_root_path.$file_path)) {
            return $this->web_root_path.$file_path;
        }
        return null;
    }
1044844
public function getRootPath()
    {
        if (null === $this->rootPath) {
            $this->rootPath = dirname((new \ReflectionClass($this))->getFileName());
        }

        return $this->rootPath;
    }
407797
public function getFilePath() {
		if ($this->path === null) {
			throw new NoPath('Path to a file was not been specified');
		}
		
		// Absolute path
		if ($this->path[0] === DIRECTORY_SEPARATOR) {
			return $this->path;
		}
		// Relative path
		return $this->getIntrospectiveData()->dirname . DIRECTORY_SEPARATOR . $this->path;
	}
564919
public function getRelativePath()
    {
        if ($this->file !== null) {
            return dirname($this->file->getForLocalProcessing(false)) . '/';
        } else {
            return str_replace(PATH_site, '', $this->fileInfo['path']);
        }
    }
1190676
public function get()
    {
        if (null === $this->path) {
            throw new \RuntimeException('Path not set.');
        }
        $path = $this->path;
        for ($i = 0, $mx = substr_count($path, DIRECTORY_SEPARATOR); $i <= $mx; $i++) {
            if (is_dir($path . DIRECTORY_SEPARATOR . '.phrozn')) {
                return realpath($path . DIRECTORY_SEPARATOR . '.phrozn');
            }
            $path =  dirname($path);
        }
        return '';
    }
825132
private function _get_path()
    {

        if (empty($this->file) && is_string($this->file)) return false;

        if (strpos($this->file, '/') !== false) {
            $path = explode('/', $this->file);
            array_pop($path);
            $this->path = (string)implode('/', $path) . '/';
        } elseif (strpos('\\', $this->file) !== false) {
            $path = explode('\\', $this->file);
            array_pop($path);
            $this->path = (string)implode('\\', $path) . '\\';
        } else {
            $this->path = getcwd() . '/';
        }

        return true;
    }
242454
public function getCurrentPath()
    {

        // if no filepath defined => autocreate path from table name
        if (!static::$filepath) {
            static::$filepath = "files/" . $this->getTable();
        }

        static::$currentPath = public_path(static::$filepath . '/' . $this->id);

        if (!is_dir(static::$currentPath)) {
            try {
                @mkdir(static::$currentPath, 0777, true);
            } catch (Exception $e) {
                Api::handleError($e);
            }
        }

        return static::$currentPath;
    }
1223001
protected static function getSourcePath()
    {
        $path = DIRECTORY_SEPARATOR.implode(
                DIRECTORY_SEPARATOR,
                array('src', 'Doozr', 'Installer', 'Base.php')
            );

        return realpath(str_replace($path, '', __FILE__)).DIRECTORY_SEPARATOR;
    }
282827
protected function getImagePath()
    {
        if (null == $this->imagePath) {
            $dir = $this->getImageDir();
            $name = $this->getImageName();

            if ($dir && $name && $this->fileExists($dir . $name)) {
                $this->imagePath = $dir . $name;
            }
        }

        return $this->imagePath;
    }
340676
public function getRealpath() {
		if ($this->realpath === null) {
			$this->realpath = realpath($this->path);
		
			if ($this->realpath === false) {
				throw new Exceptions\InvalidPath('Path "' . $this->path . '" doesn\'t exists or inaccsessible', null, null, $this->path);
			}
		}
		
		return $this->realpath;
	}
1315040
public static function getBasicPath() {
        $s = &$_SERVER;
        $ssl = (!empty($s['HTTPS']) && $s['HTTPS'] == 'on') ? true : false;
        $sp = strtolower($s['SERVER_PROTOCOL']);
        $protocol = substr($sp, 0, strpos($sp, '/')) . (($ssl) ? 's' : '');
        $port = $s['SERVER_PORT'];
        $port = ((!$ssl && $port == '80') || ($ssl && $port == '443')) ? '' : ':' . $port;
        $host = isset($s['HTTP_X_FORWARDED_HOST']) ? $s['HTTP_X_FORWARDED_HOST'] : (isset($s['HTTP_HOST']) ? $s['HTTP_HOST'] : null);
        $host = isset($host) ? $host : $s['SERVER_NAME'] . $port;
        $uri = $protocol . '://' . $host;
        return $uri;
    }
611256
protected function _getFilePath()
    {
        $opt_directory = $this->getDirPath();
        $file = $opt_directory . DIRECTORY_SEPARATOR . $this->getRealm() . '.array.php';

        return $file;
    }
863772
public function getServerPath()
    {
        if (is_null($this->_serverPath)) {
            $this->_resourceTypeConfig = $this->getResourceTypeConfig();
            $this->_serverPath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_resourceTypeConfig->getDirectory(), ltrim($this->_clientPath, "/"));
        }

        return $this->_serverPath;
    }
788303
public function GetAppRoot () {
		if ($this->appRoot === NULL) {
			// `ucfirst()` - cause IIS has lower case drive name here - different from __DIR__ value
			$indexFilePath = ucfirst(str_replace(['\\', '//'], '/', $this->globalServer['SCRIPT_FILENAME']));
			$this->appRoot = strpos(__FILE__, 'phar://') === 0
				? 'phar://' . $indexFilePath
				: dirname($indexFilePath);
		}
		return $this->appRoot;
	}
329933
private function getFilePath()
    {

        $tmpDir = realpath($this->getContainer()->get('kernel')->getRootDir() . '/../var/tmp/');
        $fileName = '/' . str_replace(':', '--', $this->getName()) . '.sock';

        if (!file_exists($tmpDir)) {
            mkdir($tmpDir);
        }

        return $tmpDir . $fileName;
    }
52435
public static function GetPath () {
		return static::LasyClassVarAccessCallback('path', function () {return (preg_match(sprintf("@^%s(.+)$@u", str_replace('@', "\\@", dirname($_SERVER['SCRIPT_NAME']))), $_SERVER['REQUEST_URI'], $matches) === 1) ? '/' . explode('?', $matches[1], 2)[0] : '';});
	}