-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
1,488 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
<?php | ||
|
||
namespace Hunter\Core\FormApi; | ||
|
||
|
||
abstract class Form { | ||
/** | ||
* to create a form with post method | ||
*/ | ||
const POST = 'post'; | ||
|
||
/** | ||
* to create a form with get method | ||
*/ | ||
const GET = 'post'; | ||
|
||
/** | ||
* to create a submit button or input | ||
*/ | ||
const SUBMIT = 'submit'; | ||
|
||
/** | ||
* to create a button | ||
*/ | ||
const BUTTON = 'button'; | ||
|
||
/** | ||
* to create a number input | ||
*/ | ||
const NUMBER = 'number'; | ||
|
||
/** | ||
* to create an input hidden | ||
*/ | ||
const HIDDEN = 'hidden'; | ||
|
||
/** | ||
* to create a text input | ||
*/ | ||
const TEXT = 'text'; | ||
|
||
/** | ||
* to create a password input | ||
*/ | ||
const PASSWORD = 'password'; | ||
|
||
/** | ||
* to create an email input | ||
*/ | ||
const EMAIL = 'email'; | ||
|
||
/** | ||
* to create a date input | ||
*/ | ||
const DATE = 'date'; | ||
|
||
/** | ||
* to create a datetime input | ||
*/ | ||
const DATETIME = 'datetime'; | ||
|
||
/** | ||
* to create a phone input | ||
*/ | ||
const TEL = 'tel'; | ||
|
||
/** | ||
* to create a url input | ||
*/ | ||
const URL = 'url'; | ||
|
||
/** | ||
* to create a time input | ||
*/ | ||
const TIME = 'time'; | ||
|
||
/** | ||
* to create a text input | ||
*/ | ||
const RANGE = 'range'; | ||
|
||
/** | ||
* to create a color input | ||
*/ | ||
const COLOR = 'color'; | ||
|
||
/** | ||
* to create a search input | ||
*/ | ||
const SEARCH = 'search'; | ||
|
||
/** | ||
* to create a week input | ||
*/ | ||
const WEEK = 'week'; | ||
|
||
/** | ||
* to create a checkbox input | ||
*/ | ||
const CHECKBOX = 'checkbox'; | ||
|
||
/** | ||
* to create a radio input | ||
*/ | ||
const RADIO = 'radio'; | ||
|
||
/** | ||
* option to get the result | ||
*/ | ||
const GET_TIME = 0; | ||
|
||
/** | ||
* option to have a datetime input | ||
*/ | ||
const GET_DATETIME = 1; | ||
|
||
/** | ||
* to create a file input | ||
*/ | ||
const FILE = 'file'; | ||
|
||
/** | ||
* to create a reset input | ||
*/ | ||
const RESET = 'reset'; | ||
|
||
/** | ||
* to create a datetime-local input | ||
*/ | ||
const DATETIME_LOCAL = 'datetime-local'; | ||
|
||
/** | ||
* to create a image input | ||
*/ | ||
const IMAGE = 'image'; | ||
|
||
/** | ||
* to create a month input | ||
*/ | ||
const MONTH = 'month'; | ||
|
||
} |
Oops, something went wrong.