MvcLite\View\Helper\InputSelect
Select Input View Helper class
- Author: Cory Collier <corycollier@corycollier.com>
Synopsis
- // Inherited constants from ObjectAbstract
- const MSG_ERR_IDENTIFY = 'Descendents must implement the identify method';
- // methods
- public string render()
- protected string buildOptions()
- protected boolean isValidAttribute()
- // Inherited methods from InputElementAbstract
- public string getDefaultAttribs()
- public string getStandardTemplate()
- // Inherited methods from HelperAbstract
- protected string getHtmlAttribs()
- protected string getAdditionalClasses()
- protected boolean isValidAttribute()
- // Inherited methods from ObjectAbstract
- public final void __get()
- public final void __set()
- public final void __call()
- public void __toString()
- public string identify()
- // Inherited methods from View
- public View getView()
Hierarchy
Coverage
Methods | 100% | 3 / 3 |
Lines | 100% | 24 / 24 |
Constants
Name | Value |
---|---|
MSG_ERR_IDENTIFY | 'Descendents must implement the identify method' |
Members
protected
- $view
—
MvcLite\Traits\MvcLite\View
View instance variable.
Methods
protected
- buildOptions() — method to take an array and turn it into a string of li elements
- isValidAttribute() — Local override of the isValidAttribute method.
public
- render() — Method to render a select element
Inherited from MvcLite\View\Helper\InputElementAbstract
public
- getDefaultAttribs() — Gets the default attributes.
- getStandardTemplate() — Standard template for form elements.
Inherited from MvcLite\View\HelperAbstract
protected
- getAdditionalClasses() — Gets any additional classes that might be required from the attributes.
- getHtmlAttribs() — Method to return a string of key=value pairs.
- isValidAttribute() — Checks an attribute name to see if it's valid.
Inherited from MvcLite\ObjectAbstract
public
- __call() — Overriding the __call magic method
- __get() — Overriding the __get magic method
- __set() — Overriding the __set magic method
- __toString() — returns a string representation of the object
- identify() — method used to identify the object instance
Inherited from MvcLite\Traits\View
public
- getView() — Getter for the View instance variable.
History
-
2015-12-21T13:27:11-05:00 (commit #a6ce5da)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
Moving the responsibility to declare groups of form elements to the form itself. This reduces the amount of markup required by input elements, and reduces code bloat
-
2015-12-21T12:13:19-05:00 (commit #3f2c9f1)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
Moving form element view helpers around. Updating unit tests. Altering the way that attributes are created
-
2015-12-14T22:01:17-05:00 (commit #3ca33f8)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
General code cleanup. Also getting unit test coverage for the Dispatcher up to 100%
-
2015-12-14T07:03:35-05:00 (commit #ca452e0)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
Removing the Database class, trait, and associated tests. Cleaning up some of the declarations on the filter and view helper classes
-
2015-12-12T08:17:58-05:00 (commit #87c962f)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
Still moving things around to accomodate case-sensitivity
-
2015-12-12T08:16:47-05:00 (commit #f22ff8c)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
more and more moving stuff for case sensitivity
-
2015-12-12T08:16:05-05:00 (commit #ca879ca)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
more moving things around to accomodate case sensitvity