mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-28 20:29:15 +02:00
API CHANGE Deprecated ImageFormAction, use FormAction with setAttribute('src', 'myimage.png')
This commit is contained in:
parent
d535847f27
commit
b4d7e51da3
@ -1,6 +1,8 @@
|
|||||||
<?php
|
<?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
|
* @package forms
|
||||||
* @subpackage actions
|
* @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
|
* @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) {
|
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->image = $image;
|
||||||
$this->hoverImage = $hoverImage;
|
$this->hoverImage = $hoverImage;
|
||||||
$this->className = $className;
|
$this->className = $className;
|
||||||
|
Loading…
Reference in New Issue
Block a user