Spork Code Libraries

Sass

Convert Sass (http://sass-lang.com/) scripts into inline style sheets

Extends

Properties

$compiler

$compiler : \Spork\CSS\AbstractCompiler

Compiler instance or service name to use

Type

\Spork\CSS\AbstractCompiler — | string

$resolver

$resolver : \Zend\View\Resolver\ResolverInterface

Resolver instance to use

Type

\Zend\View\Resolver\ResolverInterface
Inherited from
\Spork\View\Helper\CSS\AbstractHelper

Methods

__invoke()

__invoke(string  $template = null) : \Spork\View\Helper\CSS\AbstractHelper|string

Invoking the class will either compile a template and return the CSS or return itself if not template is specified.

Parameters

string $template

Optional template to compile

Returns

\Spork\View\Helper\CSS\AbstractHelper|string
Inherited from
\Spork\View\Helper\CSS\AbstractHelper

compile()

compile(string  $template) : string

Compile template

Parameters

string $template

Returns

string —

CSS

Inherited from
\Spork\View\Helper\CSS\AbstractHelper

getCompiler()

getCompiler() : \Spork\CSS\AbstractCompiler

Get compiler instance

Throws

\Exception

On compiler not set or invalid compiler type found

Returns

\Spork\CSS\AbstractCompiler
Inherited from
\Spork\View\Helper\CSS\AbstractHelper
Inherited from
\Spork\View\Helper\CSS\AbstractHelper

getResolver()

getResolver() : \Zend\View\Resolver\ResolverInterface

Get resolver instance. If resolver has not been set a default resolver is created.

Returns

\Zend\View\Resolver\ResolverInterface
Inherited from
\Spork\View\Helper\CSS\AbstractHelper

setResolver()

setResolver(\Zend\View\Resolver\ResolverInterface  $resolver) : \Spork\View\Helper\CSS\AbstractHelper

Set Resolver instance

Parameters

\Zend\View\Resolver\ResolverInterface $resolver

Returns

\Spork\View\Helper\CSS\AbstractHelper
Inherited from
\Spork\View\Helper\CSS\AbstractHelper

initializeResolver()

initializeResolver() 

Initializes Resolver to find files by mimicking the default template resolver and using compiler extensions.

Inherited from
\Spork\View\Helper\CSS\AbstractHelper