クライアントリソースの一覧を取得する

@param string $realpath_dist リソースファイルの出力先。
省略時は、各ファイルのサーバー内部パスを返す。
@return object css および js ファイルの一覧
194212
public function get_client_resources($realpath_dist = null){
		$px2ce = $this->createPickles2ContentsEditor();
		$rtn = $px2ce->get_client_resources($realpath_dist);

		// px2ce
		if(is_string($realpath_dist) && is_dir($realpath_dist)){
			$this->fs->copy_r(__DIR__.'/../dist/', $realpath_dist.'/px2me/');
			array_push($rtn->js, 'px2me/pickles2-module-editor.min.js');
			array_push($rtn->css, 'px2me/pickles2-module-editor.min.css');
		}else{
			array_push($rtn->js, realpath(__DIR__.'/../dist/pickles2-module-editor.min.js'));
			array_push($rtn->css, realpath(__DIR__.'/../dist/pickles2-module-editor.min.css'));
		}

		return $rtn;
	}
805679
public function location($realpath = false)
    {
        if ($this->view->exists($this->content)) {
            return ($realpath) ? $this->view->getFinder()->find($this->content) : $this->content;
        }
    }
10623
private function realpath($path)
    {
        if (substr($path, 0, 1) === '/' || substr($path, 1, 1) === ':') {
            return $path;
        }

        return $this->baseDir . '/' . $path;
    }
640770
public static function realPath($path)
    {
        if (self::isPhar($path) === false) {
            return realpath($path);
        }

        preg_match('/^(phar:\/{0,2})?(.*)?/u', $path, $matches);

        $path = self::resolveRelativeToGlobal($matches[2]);
        $path = self::resolveDots($path);

        return self::PHAR_PREFIX . $path;
    }
1115735
public function add_css($path=''){
    if ( $css = $this->get_css($path) ){
      if ( !isset($this->obj->css) ){
        $this->obj->css = '';
      }
      $this->obj->css .= $css;
    }
    return $this;
  }
459435
def _realpath(fs, path, seen=pset()):
    

    real = Path.root()
    for segment in path.segments:
        current = real / segment
        seen = seen.add(current)
        while True:
            try:
                current = fs.readlink(current)
            except (exceptions.FileNotFound, exceptions.NotASymlink):
                break
            else:
                current = current.relative_to(real)
                if current in seen:
                    raise exceptions.SymbolicLoop(path)
                current = fs.realpath(current, seen=seen)
        real = current
    return real
510487
protected function _getRealAppPath()
    {
        $path = realpath(APP);
        if (substr($path, -1, 1) !== DS) {
            $path .= DS;
        }

        return $path;
    }
1207039
public function getRealPath($path, $rootDir)
    {
        if (!is_string($path)) {
            return false;
        }

        if ($this->isRelativePath($path)) {
            return realpath($rootDir . DIRECTORY_SEPARATOR . $path);
        }

        return realpath($path);
    }
35065
private function getRealPath($path)
    {
        if (file_exists(PUBLIC_DIR . $path . '.tpl'))
        {
            $this->is_smarty = TRUE;
            return $path . '.tpl';
        }
        return PUBLIC_DIR . $path . '.php';
    }
912047
protected function realpath($path)
    {
        $realpath = $path;
        if (strpos($realpath, '~') === 0 && ($homedir = $this->getUserHomeDir())) {
            $realpath = $homedir . substr($realpath, 1);
        }
        $realpath = realpath($realpath);

        if ($realpath === false) {
            throw new \Exception(sprintf('Could not determine real path of %s.', $path));
        }

        return $realpath;
    }
1044618
function realpath(path) {
  // /a/b/./c/./d ==> /a/b/c/d
  path = path.replace(DOT_RE, "/")

  /*
    @author wh1100717
    a//b/c ==> a/b/c
    a///b/////c ==> a/b/c
    DOUBLE_DOT_RE matches a/b/c//../d path correctly only if replace // with / first
  */
  path = path.replace(MULTI_SLASH_RE, "$1/")

  // a/b/c/../../d  ==>  a/b/../d  ==>  a/d
  while (path.match(DOUBLE_DOT_RE)) {
    path = path.replace(DOUBLE_DOT_RE, "/")
  }

  return path
}
1164392
protected static function _realpath($path)
    {
        $realPath = realpath($path);
        if ($realPath !== false) {
            $path = $realPath;
        }

        return rtrim($path, '/\\');
    }
531389
public function getReal()
   {
      if(!$this->isExists())
      {
         throw new IOException("File not exist");
      }

      $temp = realpath($this->toString());

      if($this->isDir())
      {
         $temp = rtrim($temp, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
      }

      return new static($temp, $this->getRootDirectory());
   }
1113618
private function _correctRelativePath ($typePath, $relativePath) {
		$result = str_replace('\\', '/', $relativePath);
		if (substr($relativePath, 0, 2) == './') {
			if (self::$_viewScriptsFullPathBase === NULL)
				self::_initViewScriptsFullPathBase();
			$typedViewDirFullPath = implode('/', [
				self::$_viewScriptsFullPathBase, $typePath
			]);
			$renderedFullPaths = & $this->__protected['renderedFullPaths'];
			$lastRenderedFullPath = $renderedFullPaths[count($renderedFullPaths) - 1];
			$renderedRelPath = substr($lastRenderedFullPath, strlen($typedViewDirFullPath));
			$renderedRelPathLastSlashPos = strrpos($renderedRelPath, '/');
			if ($renderedRelPathLastSlashPos !== FALSE) {
				$result = substr($renderedRelPath, 0, $renderedRelPathLastSlashPos + 1).substr($relativePath, 2);
				$result = ltrim($result, '/');
			}
		}
		return $result;
	}
677588
protected function generateCss($scssPath, $cssPath) {
        $cssDirName = preg_replace('/^(.+)(\/|\\\\)[^\/\\\\]+$/', '\\1', $cssPath);
        if (!is_dir($cssDirName)) {
            mkdir($cssDirName, 0777);
        }
        $response = trim(shell_exec("$this->sassBinary $scssPath $cssPath --style $this->style $this->flags 2>&1"));
        if (strpos($response, 'error') !== false) {
            if ($response === $this->currentError) {
                echo '.';
            } else {
                echo substr($scssPath, strlen($this->entryPath)) . "\n" . $response . "\n";
            }
            $this->currentError = $response;
        }
        else {
            if ($this->currentError) {
                echo "fixed\n";
                $this->currentError = null;
            }
            echo substr($scssPath, strlen($this->entryPath)) . "\n";
        }
    }
219607
private function getRealFilePath( string $filePath ) : string
	{
		$realFilePath = getcwd() . DIRECTORY_SEPARATOR . ltrim( $filePath, '/' );
		$outputDir    = dirname( $realFilePath );
		if ( !@mkdir( $outputDir, 0777, true ) && !is_dir( $outputDir ) )
		{
			throw new InvalidArgumentException( 'Invalid file path: ' . $realFilePath );
		}

		return $realFilePath;
	}
329652
protected function realPath($additionalPath)
    {
        if (substr($additionalPath, 0, 1) === '/') {
            $path = $additionalPath;
        } else if ($additionalPath !== '') {
            $path = $this->path . $additionalPath;
        } else {
            $path = $this->path;
        }
    
        return $path;
    }