PHP 클래스 Jarves\Utils

파일 보기 프로젝트 열기: jarves/jarves 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cachedPageToUrl
$jarves Jarves
$localFilesystem Jarves\Filesystem\Filesystem
$webFilesystem Jarves\Filesystem\Filesystem

공개 메소드들

메소드 설명
__construct ( Jarves $jarves, PageStack $pageStack, Filesystem $localFilesystem, Filesystem $webFilesystem, Cacher $cacher ) Utils constructor.
compressCss ( array $files, string $includePath = '' ) : string
compressJs ( array $assets, $targetPath )
getComposerArray ( $bundleClass )
newNewsFeed ( Objects $repo, string $objectKey, array $item, string $verb, string | null $message = null ) Adds a new news-feed entry. If not message (means null) is passed we generate a diff.

보호된 메소드들

메소드 설명
generateDiff ( Objects $repo, $objectKey, $origItem ) : string

메소드 상세

__construct() 공개 메소드

Utils constructor.
public __construct ( Jarves $jarves, PageStack $pageStack, Filesystem $localFilesystem, Filesystem $webFilesystem, Cacher $cacher )
$jarves Jarves
$pageStack PageStack
$localFilesystem Jarves\Filesystem\Filesystem
$webFilesystem Jarves\Filesystem\Filesystem
$cacher Jarves\Cache\Cacher

compressCss() 공개 메소드

public compressCss ( array $files, string $includePath = '' ) : string
$files array
$includePath string The directory where to compressed css is. with trailing slash!
리턴 string

compressJs() 공개 메소드

public compressJs ( array $assets, $targetPath )
$assets array

generateDiff() 보호된 메소드

protected generateDiff ( Objects $repo, $objectKey, $origItem ) : string
$repo Objects
$objectKey
$origItem
리턴 string

getComposerArray() 공개 메소드

public getComposerArray ( $bundleClass )

newNewsFeed() 공개 메소드

Adds a new news-feed entry. If not message (means null) is passed we generate a diff.
public newNewsFeed ( Objects $repo, string $objectKey, array $item, string $verb, string | null $message = null )
$repo Objects
$objectKey string
$item array
$verb string
$message string | null

프로퍼티 상세

$cachedPageToUrl 보호되어 있는 프로퍼티

protected $cachedPageToUrl

$jarves 보호되어 있는 프로퍼티

protected Jarves,jarves $jarves
리턴 Jarves

$localFilesystem 보호되어 있는 프로퍼티

protected Filesystem,Jarves\Filesystem $localFilesystem
리턴 Jarves\Filesystem\Filesystem

$webFilesystem 보호되어 있는 프로퍼티

protected Filesystem,Jarves\Filesystem $webFilesystem
리턴 Jarves\Filesystem\Filesystem