Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • ClassFinder
  • EnvironmentClassFinderSettings

Interfaces

  • ClassFinderInterface
  • ClassFinderSettingsInterface

Class ClassFinder

Class Finder

ClassFinder implements ClassFinderInterface
Package: Shared\ClassFinder
Category: System
Located at Shared/ClassFinder/ClassFinder.inc.php

Methods summary

public
# __construct( ClassFinderSettingsInterface $settings, DataCache $dataCache )

Constructor

Constructor

Parameters

$settings
$dataCache
public
# __destruct( )

Destructor

Destructor

Update the cache file with the latest results.

public array
# findByParent( string $parentClassName )

Returns an associative array with classes that have the given class in their parent list. Array format: [ClassName] => [ClassFullFilePath]

Returns an associative array with classes that have the given class in their parent list. Array format: [ClassName] => [ClassFullFilePath]

Parameters

$parentClassName

Returns

array

Implementation of

ClassFinderInterface::findByParent()
public array
# findByInterface( string $interfaceName )

Returns an associative array with classes that implement the given interface. Array format: [ClassName] => [ClassFullFilePath]

Returns an associative array with classes that implement the given interface. Array format: [ClassName] => [ClassFullFilePath]

Parameters

$interfaceName

Returns

array

Throws

RuntimeException

Implementation of

ClassFinderInterface::findByInterface()
protected boolean
# _hasNeededParent( string $className, string $neededParentClassName )

Checks if $className a sub-class of $neededParentClassName

Checks if $className a sub-class of $neededParentClassName

Parameters

$className
$neededParentClassName

Returns

boolean
protected boolean
# _isLoadableClassFile( string $classFile )

Checks if $classFile is allowed to be included

Checks if $classFile is allowed to be included

Parameters

$classFile

Returns

boolean

Properties summary

protected array $availableClassesArray
# array()
protected array $allowedDirectories
# array()
protected array $disallowedDirectories
# array()
protected DataCache $dataCache
#
protected array $cachedResults
#
API documentation generated by ApiGen