Hawk - PHP documentation
  • Namespace
  • Class
  • Tree

Namespaces

  • Hawk
    • View
      • Plugins

Classes

  • App
  • ButtonInput
  • Cache
  • CheckboxInput
  • ColorInput
  • Conf
  • Controller
  • Crypto
  • DatabaseSessionHandler
  • DatetimeInput
  • DB
  • DBExample
  • DeleteInput
  • Dialogbox
  • EmailInput
  • ErrorHandler
  • Event
  • FileInput
  • FileSystem
  • FloatInput
  • Form
  • FormFieldset
  • FormInput
  • GenericModel
  • GifImage
  • HawkApi
  • HawkUpdater
  • HiddenInput
  • HtmlInput
  • HTTPRequest
  • Icon
  • Image
  • IntegerInput
  • ItemList
  • ItemListField
  • JpegImage
  • Lang
  • Language
  • LeftSidebarTab
  • Less
  • Logger
  • Mail
  • MenuItem
  • Model
  • NoSidebarTab
  • NumberInput
  • ObjectInput
  • Option
  • Panel
  • PasswordInput
  • Permission
  • Plugin
  • PluginInstaller
  • PngImage
  • ProfileQuestion
  • ProfileQuestionValue
  • RadioInput
  • Request
  • Response
  • RightSidebarTab
  • Role
  • RolePermission
  • Route
  • Router
  • SelectInput
  • Session
  • Singleton
  • SubmitInput
  • Tabs
  • TextareaInput
  • TextInput
  • Theme
  • TimeInput
  • Upload
  • User
  • View
  • ViewPlugin
  • Widget
  • WysiwygInput

Traits

  • Utils

Exceptions

  • AppStopException
  • DBExampleException
  • DBException
  • FileSystemException
  • HawkApiException
  • ImageException
  • MailException
  • UploadException
  • ViewException

Class Less

This class use the library lessc to compile less files into CSS, using cache system to build only if necessary

Namespace: Hawk
Package: Utils
Located at Less.php

Methods summary

public
# __construct( string $source )

Constructor

Constructor

Parameters

$source
The Less source filename
public
# build( string $dest, boolean $force = false, array $variables = array() )

Build the Less file

Build the Less file

Parameters

$dest
The destination CSS file
$force
If set to true, will build whereas the cache status
$variables
Less variables to set before compiling the Less file
public static
# compile( string $source, string $dest, boolean $force = false, array $variables = array() )

Build a source Less file to a Css destination file

Build a source Less file to a Css destination file

Parameters

$source
The Less source filename
$dest
The destination CSS file
$force
If set to true, will build whereas the cache status
$variables
Less variables to set before compiling the Less file

Constants summary

string CACHE_DIR
# 'less/'
Hawk - PHP documentation API documentation generated by ApiGen