Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Renamed InputInterface to WidgetInterface

  • Loading branch information...
commit 0d0c41e6fd88488007fe3037c921f37c33aed526 1 parent 902cada
@ADmad ADmad authored
View
4 src/View/Widget/Basic.php
@@ -14,7 +14,7 @@
*/
namespace Cake\View\Widget;
-use Cake\View\Widget\InputInterface;
+use Cake\View\Widget\WidgetInterface;
/**
* Basic input class.
@@ -23,7 +23,7 @@
* input elements like hidden, text, email, tel and other
* types.
*/
-class Basic implements InputInterface {
+class Basic implements WidgetInterface {
/**
* StringTemplate instance.
View
4 src/View/Widget/Button.php
@@ -14,7 +14,7 @@
*/
namespace Cake\View\Widget;
-use Cake\View\Widget\InputInterface;
+use Cake\View\Widget\WidgetInterface;
/**
* Button input class
@@ -23,7 +23,7 @@
* If you need to make basic submit inputs with type=submit,
* use the Basic input widget.
*/
-class Button implements InputInterface {
+class Button implements WidgetInterface {
/**
* StringTemplate instance.
View
4 src/View/Widget/Checkbox.php
@@ -14,12 +14,12 @@
*/
namespace Cake\View\Widget;
-use Cake\View\Widget\InputInterface;
+use Cake\View\Widget\WidgetInterface;
/**
* Input widget for creating checkbox widgets.
*/
-class Checkbox implements InputInterface {
+class Checkbox implements WidgetInterface {
/**
* Template instance.
View
4 src/View/Widget/DateTime.php
@@ -16,7 +16,7 @@
use Cake\Utility\Time;
use Cake\View\StringTemplate;
-use Cake\View\Widget\InputInterface;
+use Cake\View\Widget\WidgetInterface;
/**
* Input widget class for generating a date time input widget.
@@ -24,7 +24,7 @@
* This class is intended as an internal implementation detail
* of Cake\View\Helper\FormHelper and is not intended for direct use.
*/
-class DateTime implements InputInterface {
+class DateTime implements WidgetInterface {
/**
* Select box widget.
View
4 src/View/Widget/File.php
@@ -14,7 +14,7 @@
*/
namespace Cake\View\Widget;
-use Cake\View\Widget\InputInterface;
+use Cake\View\Widget\WidgetInterface;
/**
* Input widget class for generating a file upload control.
@@ -22,7 +22,7 @@
* This class is intended as an internal implementation detail
* of Cake\View\Helper\FormHelper and is not intended for direct use.
*/
-class File implements InputInterface {
+class File implements WidgetInterface {
/**
* Constructor
View
12 src/View/Widget/InputRegistry.php
@@ -16,7 +16,7 @@
use Cake\Core\App;
use Cake\View\StringTemplate;
-use Cake\View\Widget\InputInterface;
+use Cake\View\Widget\WidgetInterface;
use \ReflectionClass;
/**
@@ -104,7 +104,7 @@ public function add(array $widgets) {
* the `_default` widget is undefined.
*
* @param string $name The widget name to get.
- * @return mixed InputInterface widget interface class.
+ * @return mixed WidgetInterface widget interface class.
* @throws \RuntimeException when widget is undefined.
*/
public function get($name) {
@@ -131,9 +131,9 @@ public function clear() {
* Resolves a widget spec into an instance.
*
* @param mixed $widget The widget to get
- * @return InputInterface
+ * @return WidgetInterface
* @throws \RuntimeException when class cannot be loaded or does not
- * implement InputInterface.
+ * implement WidgetInterface.
*/
protected function _resolveWidget($widget) {
if (is_object($widget)) {
@@ -154,8 +154,8 @@ protected function _resolveWidget($widget) {
} else {
$instance = new $className($this->_templates);
}
- if (!($instance instanceof InputInterface)) {
- throw new \RuntimeException(sprintf('"%s" does not implement the InputInterface', $className));
+ if (!($instance instanceof WidgetInterface)) {
+ throw new \RuntimeException(sprintf('"%s" does not implement the WidgetInterface', $className));
}
return $instance;
}
View
4 src/View/Widget/Label.php
@@ -14,7 +14,7 @@
*/
namespace Cake\View\Widget;
-use Cake\View\Widget\InputInterface;
+use Cake\View\Widget\WidgetInterface;
/**
* Form 'widget' for creating labels.
@@ -22,7 +22,7 @@
* Generally this element is used by other widgets,
* and FormHelper itself.
*/
-class Label implements InputInterface {
+class Label implements WidgetInterface {
/**
* Templates
View
4 src/View/Widget/MultiCheckbox.php
@@ -15,13 +15,13 @@
namespace Cake\View\Widget;
use Cake\Utility\Inflector;
-use Cake\View\Widget\InputInterface;
+use Cake\View\Widget\WidgetInterface;
/**
* Input widget class for generating multiple checkboxes.
*
*/
-class MultiCheckbox implements InputInterface {
+class MultiCheckbox implements WidgetInterface {
/**
* Template instance to use.
View
4 src/View/Widget/Radio.php
@@ -15,7 +15,7 @@
namespace Cake\View\Widget;
use Cake\Utility\Inflector;
-use Cake\View\Widget\InputInterface;
+use Cake\View\Widget\WidgetInterface;
use Traversable;
/**
@@ -24,7 +24,7 @@
* This class is intended as an internal implementation detail
* of Cake\View\Helper\FormHelper and is not intended for direct use.
*/
-class Radio implements InputInterface {
+class Radio implements WidgetInterface {
/**
* Template instance.
View
4 src/View/Widget/SelectBox.php
@@ -14,7 +14,7 @@
*/
namespace Cake\View\Widget;
-use Cake\View\Widget\InputInterface;
+use Cake\View\Widget\WidgetInterface;
use Traversable;
/**
@@ -23,7 +23,7 @@
* This class is intended as an internal implementation detail
* of Cake\View\Helper\FormHelper and is not intended for direct use.
*/
-class SelectBox implements InputInterface {
+class SelectBox implements WidgetInterface {
/**
* Template instance.
View
4 src/View/Widget/Textarea.php
@@ -14,7 +14,7 @@
*/
namespace Cake\View\Widget;
-use Cake\View\Widget\InputInterface;
+use Cake\View\Widget\WidgetInterface;
/**
* Input widget class for generating a textarea control.
@@ -22,7 +22,7 @@
* This class is intended as an internal implementation detail
* of Cake\View\Helper\FormHelper and is not intended for direct use.
*/
-class Textarea implements InputInterface {
+class Textarea implements WidgetInterface {
/**
* Constructor
View
2  src/View/Widget/InputInterface.php → src/View/Widget/WidgetInterface.php
@@ -17,7 +17,7 @@
/**
* Interface for input widgets.
*/
-interface InputInterface {
+interface WidgetInterface {
/**
* Converts the $data into one or many HTML elements.
Please sign in to comment.
Something went wrong with that request. Please try again.