PVForms is a class that controls the creation and management of HTML form elements.
The class can be tied in with other systems for creating of forms that can be generated by passing in dynamic elements.
Example:
//Create Input Element
echo PVForms::creatInput('name', 'text');
//Create An Input with Bootstrap Element
echo PVForms::creatInput('name', 'text', array('class' => 'form-control'));
//Complete Form
echo PVForms::formBegin('my-form', array('method' => 'post', 'enctype' => 'multipart/form-data'));
echo PVForms::creatInput('name', 'text', array('class' => 'form-control', 'value' => 'My Name', 'placeholder' => 'Enter your name'));
echo PVForms::button('enter', array('type' => 'submit', 'class' => 'btn btn-success'));
echo formEnd();
package |
template |
---|
__callStatic(string $method, mixed $args = array()) : mixed
access |
public |
---|
string
The key/name assigned to the method when added
mixed
Arguements to pass to the annoymous function. The function is called using call_user_func_array.
mixed
$value The value returned is the value the stored function returns
_applyFilter(string $class, string $method, mixed $data, array $options = array()) : mixed
access |
protected |
---|
string
The name of the class the filter is in
string
The method the filter is in
mixed
The data that is being passed to the filter
array
options to be passed to the filter. Passed options we be passed to the function. -'default_return' mixed: If no filter is return, the data passed in by default will be return. Can be overriden -'event' string: An event to associate with the filter. Default is null
mixed
$data The data the function returns
_callAdapter(string $class, string $method) : mixed
access |
protected |
---|
string
The name of the class the adapter is in
string
THe name of the method the class is being called from.
mixed
$value A value that the adapter returns
_hasAdapter( $class, string $method) : \boolea
access |
protected |
---|
string
The associated method
\boolea
$hasAdapter Returns true if it has an adapter or false if it doesn not
_hasFilter(string $class, string $method)
string
The class the filter is in
string
The method of the class that the filter is in
_invokeMethod(string $class, string $method, array $args) : mixed
access |
protected |
---|
string
The name of the class to be called
string
The name of the method in the class to be called
array
An array of arguements. Arguements have to be embedded in an array to be called.
mixed
$data Data returned by the function called
_invokeStaticMethod(string $class, string $method, array $args) : mixed
access |
protected |
---|
string
The name of the class to be called
string
The name of the method in the class to be called
array
An array of arguements. Arguements have to be embedded in an array to be called.
mixed
$data Data returned by the function called
_logAdapter(array $data) : void
access |
private |
---|
array
The data in the adapter
_logFilter(array $data) : void
access |
private |
---|
array
The data in the filter
_logObserver(array $data) : void
access |
private |
---|
array
The data in the observer
_notify(string $event) : void
access |
protected |
---|
string
The name of the even that occured that will trigger notifies
_prepareLogData(array $data) : string
access |
private |
---|
array
string
$message JSON encode message of information about the data
addAdapter(string $trigger_class, string $trigger_method, string $call_class, array $options = array()) : void
access |
public |
---|---|
todo |
add ability to adapt singleton class |
string
The class that contains the function the adapter will respond too
string
The method called that will have the adapter to be called.
string
The new class to be called that has the same method name
array
An array of options that be called -'object' string : Assumes that default method in the class to be called is static. If called object needs to be instantiated, change to object to 'instance' and one will be created before the adapter calls the function -'call_method' string: By default the method to be called to override the current one should be the same name. But this can be ovveridden to call a different method. -'type' string: The type of method being called. Default is class_method but if the method is a closure, set the type to be 'closure' and make the $trigger_method the closure
addClassAdapter(mixed $trigger_class, string $call_class, array $options = array()) : void
access |
public |
---|---|
todo |
Add ability to use singleton classes |
mixed
This can either be the name of the class or an object whose methods will be adapted to another class. The class should be included or be autoloaded by this point.
string
The call class is the classes methods that will be called in place of the methods in the trigger_class. These class does not have to be included as this point.
array
Options that be used to further distinguish the behavior of the adapters added -'object' string: Determines if the object being adapted to is static or an instance.Default is static -'call_class' string: The name of the class that the methods will be adapted too. -'class' string: The name of the whose methods will be adapted to another class
addFilter(string $class, string $method, string $filter_class, string $filter_method, array $options = array()) : void
access |
public |
---|
string
The name of the class the filter is going in
string
The name of the method the filter is in
string
The class that the filter resides in.
string
The method in the class that the parameters will be passed too.
array
Options that can be set for further modifying the filter. -'object' string: If the method being called is static, static should be inserted. If its in an instance, 'instance' should be set. Default is set to static. -'event' string: Associate this filter with an event. -'type' string: The type of function being called. Default is class_method but if the function is a closure, set the type to be 'closure' and make the $filter_method the closure
addMethod(string $method, \function $closure) : void
access |
public |
---|
string
The key/value that will be used to call the function
\function
The anonymous function/closure to be added
addObserver(string $event, string $class, string $method, array $options = array()) : void
access |
public |
---|
string
The name of the event that will cause a certain class and method to fire
string
The name of the class that contains the function that will be fired for this event
string
The name of the method that will be fired when the event occurs
array
Options to further the define the firing of an event -'object' string : If the method being called is static, should be set to static. Else set to instance -'class' stinrg : The name of the class to be called. Default is the class that is passed in. -'method' string: The name of the method to be called. Default is the method that is passed in. -'type' string: The type of function being called. Default is class_method but if the function is a closure, set the type to be 'closure' and make the $method the closure
addToCollection(mixed $data) : void
access |
public |
---|
mixed
Any data type( Object, Array, int, etc) to add to the public data collection
addToCollectionWithName(string $name, mixed $data) : void
access |
public |
---|---|
todo |
check the relevance of get and set |
string
The key/index to assign the value to
mixed
Data to be stored in the collection
checkbox(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
clearFilters(string $class, string $method) : void
access |
public |
---|
string
The class the filter is in
string
The method of the class that the filter is in
clearObservers(string $event) : void
access |
public |
---|
string
The event to remove all the observers from
color(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
date(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
email(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
fieldset(string $data, array $options = array()) : string
see | self::getEventAttributes() self::getStandardAttributes() |
---|---|
access |
public |
string
The information that will be displayed inside the fieldset tag
array
Attributes that can be added to the element. includes self::getStandardAttributes and self::getEventAttributes
string
$strong The strong element that was generated
file(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
form(string $name, string $data, array $options = array())
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
string
The name of the form
string
The content to go instead the form
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
formBegin(string $name, array $options = array()) :
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|
string
The name of the form
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
formEnd(array $options = array())
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
get(string $index) : mixed
access |
public |
---|
string
The index to retrieve a value from
mixed
$data The data that was stored at that index
getFormAttributes(array $attributes = array()) : string
access |
public |
---|---|
todo |
complete documentation |
array
Attribues that will be assigned if they match -'accept' string: The class attribute -'autocomplete' string: The class attribute -'autofocus' string: The class attribute -'chcked' string: The class attribute -'disabled' string: The class attribute -'form' string: The class attribute -'formaction' string: The class attribute -'formenctype' string: The class attribute -'formmethod' string: The class attribute -'formnovalidation' string: The class attribute -'formtarget' string: The class attribute -'height' string: The class attribute -'list' string: The class attribute -'max' string: The class attribute -'maxlength' string: The class attribute -'min' string: The class attribute
string
$attributes Returns the matched attributes as a string
getInstance() : object
access |
public |
---|---|
object
$instance Returns the instance of a class.
getIterator() : \PVIterator
hidden(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
image(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
input(string $name, \sring $type, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
\sring
The type of input being generated
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
label(string $text, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The text to appear in the label
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
legend(string $data, array $options = array()) : string
see | self::getEventAttributes() self::getStandardAttributes() |
---|---|
access |
public |
string
The information that will be displayed inside the legend tag
array
Attributes that can be added to the element. includes self::getStandardAttributes and self::getEventAttributes
string
$header The legend element that was generated
number(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
password(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
radio(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
range(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
removeAdapter( $class, string $method) : void
access |
public |
---|
string
The associated method
removeClassAdapter( $class) : void
access |
public |
---|
reset(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
search(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
select(string $name, array $data, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the select fields name.
array
The data that will create the options. The key in the array will be the options value and the value in the array will be the options display.
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
set(string $index, mixed $value) : void
access |
public |
---|
string
The key or index to store the value at
mixed
A mixed value that can be anytype
setAdapterTrace(boolean $trace = false) : void
access |
public |
---|
boolean
Default is false. If set to true, will trace adatper.
setFilterTrace(boolean $trace = false) : void
access |
public |
---|
boolean
Default is false. If set to true, will trace filter.
setObserverTrace(boolean $trace = false) : void
access |
public |
---|
boolean
Default is false. If set to true, will trace observer.
submit(string $name, string $value = 'Submit', array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
string
The display output of the button.
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
text(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
textarea(string $name, string $value, array $attributes = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
string
The value in the textarea
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
textfield(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
time(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
url(string $name, array $options = array(), array $css_options = array()) : string
see | \PVHTML::getStandardAttributes() \PVHTML::getEventAttributes() \PVHTML::getStandardAttributes() \PVForms::getFormAttributes() |
---|---|
access |
public |
string
The name of the input being generated. Will be the input field's name
array
Options than can be used to further distinguish the element. The options are the same values that will be passed through PVHTML::getStandardAttributes, PVHTML::getEventAttributes and get the self::getFormAttributes funtions
array
Options than can define how the CSS is styled around the form the div around the element. Options will be passed to PVHTML::getStandardAttributes() and PVHTML::getEventAttributes(). Have the option 'disable_css' will disable the div surrouding the element.
string
$element The string that creates the element
_collection :
_methods :
_adapters :
_observers :
_instances :
_filters :
_traceAdapters :
_traceFilters :
_traceObservers :