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

Trait Utils

This trait contains utilities method that cen be used anywhere in the core

Direct Known Users

Hawk\Controller, Hawk\DB, Hawk\ViewPlugin, Hawk\Form, Hawk\FormFieldset, Hawk\FormInput, Hawk\HTTPRequest, Hawk\ItemList, Hawk\Mail, Hawk\Model, Hawk\Route

Indirect Known Users

Hawk\ButtonInput, Hawk\CheckboxInput, Hawk\HtmlInput, Hawk\IntegerInput, Hawk\Language, Hawk\MenuItem, Hawk\NumberInput, Hawk\ObjectInput, Hawk\PasswordInput, Hawk\Permission, Hawk\ProfileQuestion, Hawk\ProfileQuestionValue, Hawk\ColorInput, Hawk\RadioInput, Hawk\Role, Hawk\RolePermission, Hawk\SelectInput, Hawk\SubmitInput, Hawk\TextareaInput, Hawk\TextInput, Hawk\TimeInput, Hawk\User, Hawk\View\Plugins\Accordion, Hawk\DatetimeInput, Hawk\View\Plugins\Button, Hawk\View\Plugins\Form, Hawk\View\Plugins\Icon, Hawk\View\Plugins\Import, Hawk\View\Plugins\Panel, Hawk\View\Plugins\Tabs, Hawk\View\Plugins\Text, Hawk\View\Plugins\Uri, Hawk\View\Plugins\Widget, Hawk\Widget, Hawk\DeleteInput, Hawk\WysiwygInput, Hawk\EmailInput, Hawk\FileInput, Hawk\FloatInput, Hawk\GenericModel, Hawk\HiddenInput

Namespace: Hawk
Package: Utils
Located at Utils.php

Methods summary

public static
# debug( mixed $var, boolean $exit = false )

Display variables for development debug

Display variables for development debug

Parameters

$var
The variable to display
$exit
if set to true, exit the script
public static string
# getSerializedVersion( string $version )

Serialize a version number as integer. Example :

<?php
     echo Utils::getSerializedVersion('1.15.12'); // Output "01151200"
?>

Serialize a version number as integer. Example :

<?php
     echo Utils::getSerializedVersion('1.15.12'); // Output "01151200"
?>

Parameters

$version
The version number to serialize, in the format gg.rr.cc(.pp)

Returns

string
The serialized version
public
# map( array $array, Object $object = null )

Map an array data to the object that use this trait

Map an array data to the object that use this trait

Parameters

$array
The data to map to the object
$object
The object to map. If not set, get $this in the execution context of the method
Hawk - PHP documentation API documentation generated by ApiGen