Class Environment

Useful functions for getting paths for concrete5 items.

Namespace: Concrete\Core\Foundation
Package: Core
Copyright: Copyright (c) 2003-2012 Concrete5. (http://www.concrete5.org)
License: MIT License
Author: Andrew Embler andrew@concrete5.org
Located at src/Foundation/Environment.php

Methods summary

public static
# get( )
public static
public
public
# reset( )
protected
# getOverrides( )

Builds a list of all overrides.

public
# getDirectoryContents( $dir, $ignoreFilesArray = array(), $recursive = false )
public
# overrideCoreByPackage( $segment, $pkgOrHandle )
public
# getRecord( $segment, $pkgHandle = false )
public
# getUncachedRecord( $segment, $pkgHandle = false )

Bypasses overrides cache to get record.

public
# getPath( $subpath, $pkgIdentifier = false )

Returns a full path to the subpath segment. Returns false if not found.

public
# getURL( $subpath, $pkgIdentifier = false )

Returns a public URL to the subpath item. Returns false if not found.

public

Properties summary

protected array $coreOverrides
# array()
protected array $corePackages
# array()
protected array $coreOverridesByPackage
# array()
protected boolean $overridesScanned
# false
protected array $cachedOverrides
# array()
protected boolean $autoLoaded
# false
protected array $ignoreFiles
# array('__MACOSX')