application/Espo/Core/Utils/File/ClassParser.php
public function getData($paths, $cacheFile = false)
    {
        $data = null;

        if (is_string($paths)) {
            $paths = array(
                'corePath' => $paths,
            );
        }

        if ($cacheFile && file_exists($cacheFile) && $this->getConfig()->get('useCache')) {
            $data = $this->getFileManager()->getPhpContents($cacheFile);
        } else {
            $data = $this->getClassNameHash($paths['corePath']);

            if (isset($paths['modulePath'])) {
                foreach ($this->getMetadata()->getModuleList() as $moduleName) {
                    $path = str_replace('{*}', $moduleName, $paths['modulePath']);

                    $data = array_merge($data, $this->getClassNameHash($path));
                }
            }

            if (isset($paths['customPath'])) {
                $data = array_merge($data, $this->getClassNameHash($paths['customPath']));
            }

            if ($cacheFile && $this->getConfig()->get('useCache')) {
                $result = $this->getFileManager()->putPhpContents($cacheFile, $data);
                if ($result == false) {
                    throw new \Espo\Core\Exceptions\Error();
                }
            }
        }

        return $data;
    }
public function getData($paths, $cacheFile = false)
    {
        $data = null;

        if (is_string($paths)) {
            $paths = array(
                'corePath' => $paths,
            );
        }

        if ($cacheFile && file_exists($cacheFile) && $this->getConfig()->get('useCache')) {
            $data = $this->getFileManager()->getPhpContents($cacheFile);
        } else {
            $data = $this->getClassNameHash($paths['corePath']);

            if (isset($paths['modulePath'])) {
                foreach ($this->getMetadata()->getModuleList() as $moduleName) {
                    $path = str_replace('{*}', $moduleName, $paths['modulePath']);

                    $data = array_merge($data, $this->getClassNameHash($path));
                }
            }

            if (isset($paths['customPath'])) {
                $data = array_merge($data, $this->getClassNameHash($paths['customPath']));
            }

            if ($cacheFile && $this->getConfig()->get('useCache')) {
                $result = $this->getFileManager()->putPhpContents($cacheFile, $data);
                if ($result == false) {
                    throw new \Espo\Core\Exceptions\Error();
                }
            }
        }

        return $data;
    }
public function getData ( $ paths , $ cacheFile = false ) { $ data = null ; if ( is_string ( $ paths ) ) { $ paths = array ( 'corePath' => $ paths , ) ; } if ( $ cacheFile && file_exists ( $ cacheFile ) && $ this -> getConfig ( ) -> get ( 'useCache' ) ) { $ data = $ this -> getFileManager ( ) -> getPhpContents ( $ cacheFile ) ; } else { $ data = $ this -> getClassNameHash ( $ paths [ 'corePath' ] ) ; if ( isset ( $ paths [ 'modulePath' ] ) ) { foreach ( $ this -> getMetadata ( ) -> getModuleList ( ) as $ moduleName ) { $ path = str_replace ( '{*}' , $ moduleName , $ paths [ 'modulePath' ] ) ; $ data = array_merge ( $ data , $ this -> getClassNameHash ( $ path ) ) ; } } if ( isset ( $ paths [ 'customPath' ] ) ) { $ data = array_merge ( $ data , $ this -> getClassNameHash ( $ paths [ 'customPath' ] ) ) ; } if ( $ cacheFile && $ this -> getConfig ( ) -> get ( 'useCache' ) ) { $ result = $ this -> getFileManager ( ) -> putPhpContents ( $ cacheFile , $ data ) ; if ( $ result == false ) { throw new \ Espo \ Core \ Exceptions \ Error ( ) ; } } } return $ data ; }
Return path data of classes

@param  string  $cacheFile full path for a cache file, ex. data/cache/application/entryPoints.php
@param  string | array $paths in format array(
'corePath' => '',
'modulePath' => '',
'customPath' => '',
);
@return array
Return path data of classes