Get the full path name to the mapping.

@param string $model
@param string $path

@return string
166720
protected function getPath($model, $path)
    {
        $name = Str::lower(str_replace('\\', '_', $model));

        return $path.'/'.$name.'.php';
    }
901908
protected function getModel($request, $model)
    {
        if ($this->isClassName($model)) {
            return trim($model);
        } else {
            return $request->route($model, null) ?:
                ((preg_match("/^['\"](.*)['\"]$/", trim($model), $matches)) ? $matches[1] : null);
        }
    }
1014567
protected function _path($path) {
		if (($file = $this->stat($path)) == false) {
			return '';
		}
		
		$parentsIds = $this->getParents($path);
		$path = '';
		foreach ($parentsIds as $id) {
			$dir = $this->stat($id);
			$path .= $dir['name'].$this->separator;
		}
		return $path.$file['name'];
	}
728906
public function getFullUrl($path)
    {
        $url = $this->getUrl($path);
                        
        if(!preg_match("/^(\\w+)\\:\\/\\//", $url)) {   
            $basePath = dirname($_SERVER['SCRIPT_NAME']);
            $domain = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://';
            $domain .= htmlspecialchars($_SERVER["HTTP_HOST"]);            
            $url = "{$domain}{$basePath}/{$url}";
        }
        
        return $url;        
    }
1191781
public static function getNameFromPath($path)
    {
        $path = rtrim($path, '/'); // may be a folder
        if (empty($path)) {
            return '.';
        } // self directory

        $marker = strrpos($path, '/');
        if (false === $marker) {
            return $path;
        }

        return substr($path, $marker + 1);
    }
613725
public static function getFull($path = NULL, $front = '')
    {
        if($path){
            $hostInfo = Yii::$app->request->getHostInfo();
            $hostInfo = parse_url($hostInfo);
            $scheme =  $hostInfo['scheme'];
            $host =  $hostInfo['host'];
            if($front){
                $host = explode(".", $host);
                $host[0] = $front;
                $host = join(".", $host);
            }
            $path = $scheme . '://' . $host . '/' . ltrim($path, '/');
        }

        return $path;
    }
654344
public function pathToUrl($path) {
        if (empty($this->config['url_prefix'])) return '/'.$path;
        else if (empty($this->config['path'])) return rtrim($this->config['url_prefix'], '/').'/'.$path;
        else return rtrim($this->config['url_prefix'], '/').'/'.$this->relativePath($path);
    }
557928
protected function getDestenationPath($path)
    {
        if (!empty($path)) {
            $path = Helpers::getPathWithSlash($path);
        }

        return Config::getViewsPath() . $path;
    }
237298
def full_path_str(self):
        ''''''
        with self._mutex:
            if self._parent:
                if self._parent._name == '/':
                    return self._parent.full_path_str + self._name
                else:
                    return self._parent.full_path_str + '/' + self._name
            else:
                return self._name
70248
private function getDataByPath($name): string
    {
        $namePath = explode('.', $name);
        $out = $this->model;

        for ($i=0; $i < count($namePath); $i++) {

            $out = $i+1 < count($namePath) ?
                $out->{$namePath[$i]} : $out->{$namePath[$i].'_'.$this->language->getShortName()};

            if (is_array($out)) {
                for ($j=0; $j < count($out); $j++) {
                    $out[$j] = $out[$j]->{$namePath[$i+1].'_'.$this->language->getShortName()};
                }
                $out = implode(', ', $out);
                break;
            }
        }

        return trim($out, ', ');
    }
1113548
public function renderNodeName($model)
    {
        $result = $model->name;
        $additionalName = '';
        if ($model->level == 0) {
            $site = \skeeks\cms\models\CmsSite::findOne(['id' => $model->cms_site_id]);
            if ($site) {
                $additionalName = $site->name;
            }
        }

        if ($additionalName) {
            $result .= " [{$additionalName}]";
        }

        return $result;
    }
133389
public function makePathToUploadedFile($model, $path_pattern = null, array $model_map = array())
    {
        return parent::makePathToUploadedFile($model, $path_pattern,
            $model instanceof Model ? $model->getFileAssignMap() : $model_map);
    }
1205233
public function getPathUrl($path)
    {
        $path = $this->validatePath($path);

        $fullPath = $this->storagePath.implode("/", array_map("rawurlencode", explode("/", $path)));

        return Url::to($fullPath);
    }
806317
public function name($path)
	{
		$path = Util::normalizePath($path);

		return $this->adapter->name($path);
	}
664554
protected function path($path)
    {
        if (strpos($path, './') === 0) {
            return $this->dir . '/' . substr($path, 2);
        }

        if (strpos($path, '../') === 0) {
            return dirname($this->dir) . '/' . substr($path, 3);
        }

        return $path;
    }
317963
public static function getFolder(string $path)
    {
        $arrFolders = explode(DIRECTORY_SEPARATOR, $path);
        $fullPath = "";
        if ($arrFolders[0] !== "") {
            $fullPath = $arrFolders[0];
        }
        unset($arrFolders[0]);
        foreach ($arrFolders as $folder) {
            $fullPath .= DIRECTORY_SEPARATOR . $folder;
            if (file_exists($fullPath) && is_dir($fullPath)) {
                continue;
            }
            mkdir($fullPath, 0775);
        }
        return $path;
    }
1018992
public function getName(Model $model, $id = null) {
		if (empty($id) || empty($model->displayField)) {
			return false;
		}
		if (is_array($id)) {
			if (!isset($id[$model->alias][$model->displayField])) {
				return false;
			}

			$result = $id[$model->alias][$model->displayField];
		} else {
			$model->id = $id;
			$result = $model->field($model->displayField);
		}

		return $result;
	}