w3sButton __construct(
[object A
$user = null]
)
|
|
Constructor.
Parameters:
|
object A |
$user: |
reference to current user |
API Tags:
void buttonSkeleton(
string
0
)
|
|
Returns the button skeleton, according to the imageTextRelation param.
Parameters:
API Tags:
void checkImage(
string
$image
)
|
|
Checks that the file name passed as reference is a valid string and a valid filename.
Parameters:
API Tags:
void fromArray(
array
$array
)
|
|
Sets the button's attributes from an array. No attributes are required.
Example $button = array("image" => [value], "caption" => [value], ...)
Parameters:
API Tags:
void fromYml(
array
$fileName
)
|
|
Sets the button's attributes from a yml file.
See the editorButtonClose.yml for a full example
Parameters:
API Tags:
void getActionDisabledParams(
)
|
|
API Tags:
void getImageAboveText(
)
|
|
API Tags:
void getImageAfterText(
)
|
|
API Tags:
void getImageBeforeText(
)
|
|
API Tags:
void getImageTextRelation(
)
|
|
API Tags:
void getImageUnderText(
)
|
|
API Tags:
void getRequiredCredentials(
)
|
|
API Tags:
Renders the button
API Tags:
void setAction(
string
$value
)
|
|
Sets / Gets the value of the action property.
Parameters:
API Tags:
void setActionDisabledParams(
array
$value
)
|
|
Sets / Gets the value of the actionParams property.
Parameters:
API Tags:
void setActionParams(
array
$value
)
|
|
Sets / Gets the value of the actionParams property.
Parameters:
API Tags:
void setCaption(
string
$value
)
|
|
Sets / Gets the value of the caption property.
Parameters:
API Tags:
void setCaptionParams(
array
$value
)
|
|
Sets / Gets the value of the captionParams property.
Parameters:
API Tags:
void setCurrentUser(
object
$value
)
|
|
Sets / Gets the value of the currentUser property.
Parameters:
API Tags:
void setEnabled(
boolean
$value
)
|
|
Sets / Gets the value of the enabled property.
Parameters:
API Tags:
void setImage(
string
$value
)
|
|
Sets / Gets the value of the image property.
Parameters:
API Tags:
void setImageAboveText(
string
$value
)
|
|
Sets / Gets the value of the imageAboveText property.
Parameters:
API Tags:
void setImageAfterText(
string
$value
)
|
|
Sets / Gets the value of the imageAfterText property.
Parameters:
API Tags:
void setImageBeforeText(
string
$value
)
|
|
Sets / Gets the value of the imageBeforeText property.
Parameters:
API Tags:
void setImageDisabled(
string
$value
)
|
|
Sets / Gets the value of the imageDisabled property.
Parameters:
API Tags:
void setImageParams(
array
$value
)
|
|
Sets / Gets the value of the imageParams property.
Parameters:
API Tags:
void setImageText(
string
$value
)
|
|
Sets / Gets the value of the imageText property.
Parameters:
API Tags:
void setImageTextRelation(
int
$value
)
|
|
Sets / Gets the value of the imageTextRelation property.
Parameters:
API Tags:
void setImageUnderText(
string
$value
)
|
|
Sets / Gets the value of the imageUnderText property.
Parameters:
API Tags:
void setLinkedTo(
string
$value
)
|
|
Sets / Gets the value of the linkedTo property.
Parameters:
API Tags:
void setRequiredCredentials(
array
$value
)
|
|
Sets / Gets the value of the requiredCredentials property.
Parameters:
API Tags: