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 DatetimeInput

This class describes date and datetime inputs

Hawk\FormInput uses Hawk\Utils
Extended by Hawk\TextInput
Extended by Hawk\DatetimeInput
Namespace: Hawk
Package: Form\Input
Located at Form/DatetimeInput.php

Methods summary

public
# __construct( array $param )

Constructor

Constructor

Parameters

$param
The parameters of the input

Overrides

Hawk\FormInput::__construct
public string
# display( )

Display the input

Display the input

Returns

string
The HTML result of displaying

Overrides

Hawk\FormInput::display
public boolean
# check( Hawk\Form & $form = null )

Check the submitted value

Check the submitted value

Parameters

$form
The form to apply the errors on in case of check failure

Returns

boolean
the check status

Overrides

Hawk\FormInput::check
public string
# dbvalue( )

Return the input value in the database format

Return the input value in the database format

Returns

string
The formatted value

Overrides

Hawk\FormInput::dbvalue

Methods inherited from Hawk\FormInput

__toString(), create(), getInstance(), setParam(), setValue()

Methods used from Hawk\Utils

debug(), getSerializedVersion(), map()

Constants summary

Constants inherited from Hawk\TextInput

TYPE

Constants inherited from Hawk\FormInput

INDEPENDANT

Properties summary

public $max

The maximal date the user can fill

The maximal date the user can fill

# null
public $min

The minimum date the user can fill

The minimum date the user can fill

# null
public $format

The format of the date

The format of the date

# null
public string $dbformat

The format for database

The format for database

# 'Y-m-d'

Properties inherited from Hawk\FormInput

$after, $attr, $attributes, $before, $beforeLabel, $class, $dataType, $disabled, $emptyValue, $errorAt, $field, $hidden, $id, $independant, $insert, $label, $labelClass, $labelStyle, $mask, $maxlength, $name, $nl, $notDisplayed, $pattern, $placeholder, $readonly, $required, $style, $title, $tpl, $unique, $validators, $value

Hawk - PHP documentation API documentation generated by ApiGen