Simple wrapper for Url input fields
- Extends
-
Implements
Countable PHPFUI \Interfaces \Walkable Stringable - Traits
Constants |
public
PHPFUI |
Methods |
public PHPFUI\HTML5Element :: __clone () |
public
__construct
(
string
$name
,
string
$label
=
''
,
?
string
$value
=
''
) Construct a Url input
|
public PHPFUI\Base :: __toString () : string |
public
PHPFUI\Base
::
add
(
$item
) Base add function. Adds to the end of the current objects
|
public
PHPFUI\Base
::
addAsFirst
(
$item
) Base addAsFirst function. Adds to the front of the current
|
public
PHPFUI\HTML5Element
::
addAttribute
(
string
$attribute
,
string
$value
=
''
) :
PHPFUI Add an attribute the the object
|
public
PHPFUI\HTML5Element
::
addClass
(
string
$class
) :
PHPFUI Add a class to an object
|
public
PHPFUI\Input\Input
::
addErrorMessage
(
string
$error
) :
PHPFUI Set a specific error
|
public
PHPFUI\HTML5Element
::
addPHPClassName
() :
PHPFUI Adds the base PHP class name as a class to this object |
public
PHPFUI\Base
::
count
() :
int
Number of object in this object. Does not count sub objects. |
public
PHPFUI\HTML5Element
::
deleteAttribute
(
string
$attribute
) :
PHPFUI Deletes the passed attribute |
public
PHPFUI\HTML5Element
::
deleteAttributes
() :
PHPFUI Deletes all attributes |
public
PHPFUI\HTML5Element
::
deleteClass
(
string
$classToDelete
) :
PHPFUI Delete a class from the object |
public
PHPFUI\HTML5Element
::
disabled
() :
PHPFUI Disabled the element |
public
PHPFUI\Base
::
done
(
bool
$done
=
true
) :
PHPFUI Form is done rendering |
public
PHPFUI\HTML5Element
::
getAttribute
(
string
$attribute
) : ?
string
Get an attribute
|
public
PHPFUI\HTML5Element
::
getAttributes
() :
string
Returns the attribute strings. Attributes with values are returned as name/value pairs, |
public
PHPFUI\HTML5Element
::
getClass
() :
string
Returns the class attribute ready for insertion into an element. |
public
PHPFUI\HTML5Element
::
getClasses
() :
array
Returns all classes for the object |
public
static
PHPFUI\Base
::
getDebug
(
int
$flags
=
0
) :
int
Gets the current debug setting |
public
PHPFUI\Input
::
getDisabled
() :
bool
Return true if disabled |
public
PHPFUI\HTML5Element
::
getElement
() :
string
Return the type of the element |
public
PHPFUI\Input\Input
::
getError
() : ?
PHPFUI Get the error message for placement else where. If this is |
public
PHPFUI\Input\Input
::
getHint
() : ?
PHPFUI |
public
PHPFUI\HTML5Element
::
getId
() :
string
Return the id of the object. Elements will not have an id unless this method is called. The id is returned as a string |
public
PHPFUI\HTML5Element
::
getIdAttribute
() :
string
Return the id attribute of the object as a name/value pair. If no id has been requested, and empty string is returned. |
public
PHPFUI\Input\Input
::
getLabel
() :
string
Return the label for the input field |
public
PHPFUI\Input
::
getName
() :
string
Returns the name of the input field |
public
PHPFUI\Input
::
getPlaceholder
() :
string
Returns the current placeholder |
public PHPFUI\Input\Input :: getRequired () : bool |
public
PHPFUI\Base
::
getResponse
() :
string
Get the current response |
public
PHPFUI\HTML5Element
::
getToolTip
(
string
$label
) Get the tool tip as a string
|
public
PHPFUI\Input
::
getType
() :
string
Returns the type of the input field |
public
PHPFUI\Input
::
getValue
() :
string
Return the initial value of the input field |
public
PHPFUI\HTML5Element
::
hasClass
(
string
$class
) :
bool
Return true if the class is present on the object |
public
PHPFUI\HTML5Element
::
hasId
() :
bool
Does this object have an id set already? |
public
PHPFUI\HTML5Element
::
hasToolTip
() :
bool
|
public
PHPFUI\Base
::
isDone
() :
bool
Returns true if the page needs no more processing |
public
PHPFUI\HTML5Element
::
newId
() :
PHPFUI Assign a new id to this element. |
public
PHPFUI\Base
::
prepend
(
$item
) :
PHPFUI Add an object in front of existing object |
public
PHPFUI\HTML5Element
::
setAttribute
(
string
$attribute
,
string
$value
=
''
) :
PHPFUI Set the attribute overwriting the prior value
|
public
PHPFUI\HTML5Element
::
setConfirm
(
$text
) :
PHPFUI A simple way to set a confirm on click
|
public
PHPFUI\Input\Input
::
setDataMask
(
PHPFUI |
public
static
PHPFUI\Base
::
setDebug
(
int
$level
=
0
) :
void
Set the debug level, 1 or higher is on |
public
PHPFUI\Input
::
setDisabled
(
bool
$disabled
=
true
) :
PHPFUI Set disabled |
public
PHPFUI\HTML5Element
::
setElement
(
$element
) :
PHPFUI You can set the element type if you need to morph it for some reason
|
public
PHPFUI\Input\Input
::
setErrorMessages
(
array
$errors
) :
PHPFUI Set all error messages
|
public
PHPFUI\Input\Input
::
setHint
(
string
$hint
) :
PHPFUI Set a hint
|
public
PHPFUI\HTML5Element
::
setId
(
$id
) :
PHPFUI Set the base id of the object
|
public
PHPFUI\Input\Input
::
setLabel
(
string
$label
) :
PHPFUI Set a label if not specified in constructor |
public
PHPFUI\Input
::
setName
(
string
$name
) :
PHPFUI |
public
PHPFUI\Input
::
setPlaceholder
(
string
$placeholder
) :
PHPFUI |
public
PHPFUI\Base
::
setRawResponse
(
string
$response
,
bool
$asJSON
=
true
) :
PHPFUI Sets the page response directly |
public
PHPFUI\Input\Input
::
setRequired
(
bool
$required
=
true
) :
PHPFUI Set required
|
public
PHPFUI\Base
::
setResponse
(
string
$response
,
string
$color
=
'lime'
) :
PHPFUI Set a response in the standard format ('reponse' and 'color' array)
|
public
PHPFUI\HTML5Element
::
setToolTip
(
$tip
) :
PHPFUI Set the tool tip. Can either be a ToolTip or a string. If it is a string, it will be converted to a ToolTip
|
public
PHPFUI\Input\Input
::
setValidator
(
PHPFUI Set the validator for this input field. You must also add it to the page with addAbideValidator() |
public
PHPFUI\Input
::
setValue
(
string
$value
) :
PHPFUI Set the initial value of the input field |
public
PHPFUI\HTML5Element
::
toggleAnimate
(
PHPFUI Will toggle the provided element on click with the provided animation. |
public
PHPFUI\HTML5Element
::
toggleClass
(
PHPFUI Will toggle the class on the provided element on click. |
public
PHPFUI\Input\Input
::
toggleFocus
(
PHPFUI Toggle the passed in element when this field gets focus. |
public
PHPFUI\HTML5Element
::
transferAttributes
(
PHPFUI Moves attributes into this object from the passed object |
public
PHPFUI\HTML5Element
::
transferClasses
(
PHPFUI Moves classes into this object from the passed object |
public
PHPFUI\Base
::
walk
(
string
$method
,
$argument
=
NULL
) Recursively walks all objects and calls the passed method on each object where it exists
|
Properties |
protected bool PHPFUI\Input :: $disabled |
protected
PHPFUI |
protected array PHPFUI\Input\Input :: $errorMessages |
protected
PHPFUI |
protected string PHPFUI\Input\Input :: $hintText |
protected string PHPFUI\Input\Input :: $label |
protected string PHPFUI\Input :: $name |
protected string PHPFUI\Input :: $placeholder |
protected bool PHPFUI\Input\Input :: $required |
protected string PHPFUI\Input :: $type |
protected string PHPFUI\Input :: $value |
Methods |
protected PHPFUI\HTML5Element :: getBody () : string |
protected PHPFUI\Input\Input :: getEnd () : string |
protected PHPFUI\Input\Input :: getStart () : string |
protected
PHPFUI\Input\Input
::
setAutoCompleteRequired
(
PHPFUI |
protected
PHPFUI\HTML5Element
::
upCastCopy
(
PHPFUI Clones the first object and fills it with properties from the second object |
Methods |
public
static
PHPFUI\Base
::
getDebug
(
int
$flags
=
0
) :
int
Gets the current debug setting |
public
static
PHPFUI\Base
::
setDebug
(
int
$level
=
0
) :
void
Set the debug level, 1 or higher is on |