API CHANGE Deprecated ImageFormAction, use FormAction with setAttribute('src', 'myimage.png')

This commit is contained in:
Ingo Schommer 2011-12-22 14:40:51 +01:00
parent d535847f27
commit b4d7e51da3

View File

@ -1,6 +1,8 @@
<?php
/**
* Action that uses an image instead of a button
* Action that uses an image instead of a button.
*
* @deprecated 3.0 Use FormAction with setAttribute('src', 'myimage.png') and custom JavaScript to achieve hover effect
* @package forms
* @subpackage actions
*/
@ -16,6 +18,8 @@ class ImageFormAction extends FormAction {
* @param form The parent form, auto-set when the field is placed inside a form
*/
function __construct($action, $title = "", $image = "", $hoverImage = null, $className = null, $form = null) {
Deprecation::notice('3.0', "Use FormAction with setAttribute('src', 'myimage.png') and custom JavaScript to achieve hover effect");
$this->image = $image;
$this->hoverImage = $hoverImage;
$this->className = $className;