Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7411452
ContributeCardAction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ContributeCardAction.php
View Options
<?php
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @file
*/
namespace
MediaWiki\Specials\Contribute\Card
;
class
ContributeCardAction
{
private
string
$action
;
private
string
$actionText
;
private
string
$actionType
;
/**
* @param string $action the action's url or command to be attached to card element
* @param string $actionText the action's text to be shown on the bottom of the card element
* @param string $actionType the action's type, specifying if it is a url or a function, ...
*/
public
function
__construct
(
string
$action
,
string
$actionText
,
string
$actionType
)
{
$this
->
action
=
$action
;
$this
->
actionText
=
$actionText
;
$this
->
actionType
=
$actionType
;
}
public
function
getActionType
():
string
{
return
$this
->
actionType
;
}
public
function
getAction
():
string
{
return
$this
->
action
;
}
public
function
getActionText
():
string
{
return
$this
->
actionText
;
}
public
function
setAction
(
string
$action
):
void
{
$this
->
action
=
$action
;
}
public
function
setActionText
(
string
$actionText
):
void
{
$this
->
actionText
=
$actionText
;
}
public
function
toArray
():
array
{
return
[
'action'
=>
$this
->
action
,
'actionText'
=>
$this
->
actionText
,
'actionType'
=>
$this
->
actionType
,
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 23:37 (1 d, 22 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
95/5e/a8343cbd5b909640b8f39bb705ff
Default Alt Text
ContributeCardAction.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment