MvcLite\View\Helper\Form
HTML Form 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 void render()
- public string getGroupWrapper()
- public void elementFactory()
- protected array getElementTypeMap()
- // 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
Extends
Coverage
Methods | 100% | 4 / 4 |
Lines | 100% | 40 / 40 |
Constants
Name | Value |
---|---|
MSG_ERR_IDENTIFY | 'Descendents must implement the identify method' |
Members
protected
- $view
—
MvcLite\Traits\MvcLite\View
View instance variable.
Methods
protected
- getElementTypeMap() — Gets the known element type map
public
- elementFactory() — method to return an input element from a given parameter array
- getGroupWrapper() — Gets a wrapping string around an element(s) string.
- render() — renders a form from a model
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-21T13:08:25-05:00 (commit #5617538)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
Updating the response class to allow for setting/getting of content type. Updating the request to read the content type, allowing for semicolon separated values, implementing the content-type acknowledgement in the dispatcher
-
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-18T10:56:31-05:00 (commit #f08d902)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
Unit test updates for view helpers and view items. Also unit testing the MvcLite\Config::getSection method
-
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:31:23-05:00 (commit #da72fc6)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
moving files
-
2015-12-12T08:30:28-05:00 (commit #2275bbb)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
moving files
-
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:15:45-05:00 (commit #e817da6)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
moving things around to accomodate case sensitivity
-
2015-12-02T17:24:15-05:00 (commit #46df124)
Author: Cory Collier (ccollier@redhat.com) / Commiter: Cory Collier (ccollier@redhat.com)
Fixing phpcs issues
-
2015-12-02T16:43:15-05:00 (commit #55a67b0)
Author: Cory Collier (ccollier@redhat.com) / Commiter: Cory Collier (ccollier@redhat.com)
BIG commit. Leveraging php5.4 shorthand for arrays, updating the skeleton app, Adding the Filepath trait, implementing the filepath trait, new Filters, Moved the registry to a new config class, created a new config trait, implemented new config trait, updated a TON of unit tests
-
2015-11-30T09:57:14-05:00 (commit #4b488bf)
Author: Cory Collier (ccollier@redhat.com) / Commiter: Cory Collier (ccollier@redhat.com)
Finally fixing a lot of unit tests. This is the first time phpunit returns a zero code :)
-
2015-11-29T18:50:35-05:00 (commit #7d48d93)
Author: Cory Collier (ccollier@redhat.com) / Commiter: Cory Collier (ccollier@redhat.com)
a lot of work to cleanup the namespacing of view helper code
-
2015-11-29T18:44:56-05:00 (commit #7d443b7)
Author: Cory Collier (ccollier@redhat.com) / Commiter: Cory Collier (ccollier@redhat.com)
A TON of phpcs changes, and updates to accomodate namespacing the view helper classes
-
2015-11-29T13:59:13-05:00 (commit #5ca1372)
Author: Cory Collier (ccollier@redhat.com) / Commiter: Cory Collier (ccollier@redhat.com)
,
-
2015-11-27T22:46:57-05:00 (commit #3067c88)
Author: Cory Collier (ccollier@redhat.com) / Commiter: Cory Collier (ccollier@redhat.com)
Provisional commit - Not done moving things around to be namespace compliant. This commit is completely not functional
-
2015-11-11T08:07:21-05:00 (commit #3838504)
Author: Cory Collier (corycollier@corycollier.com) / Commiter: Cory Collier (corycollier@corycollier.com)
Re-introducing the library components as first class items