title = __($title);
$this->icon = $icon;
$this->submitButton = $submitButton;
$this->closeButton = $closeButton;
$this->closeButtonLocation = $closeButtonLocation;
$this->submitButtonColor = 'primary';
$this->submitButtonText = __($title);
$this->submitButtonIcon = $icon;
}
public function startForm()
{ ?>
array(
# 'buttonText' => 'testButton2123',
# 'buttonIcon' => 'ico123123ncontnet',
# 'buttonHref' => 'test'
# 'buttonColor' => 'success'
# ) > next array
public function addExtraButtons($extraButtonsArray)
{
foreach ($extraButtonsArray as $numb => $extraButtonArray) {
if (is_array($extraButtonArray)) {
if (array_key_exists('buttonIcon', $extraButtonArray) && array_key_exists('buttonText', $extraButtonArray) && array_key_exists('buttonHref', $extraButtonArray) && array_key_exists('buttonColor', $extraButtonArray)) {
array_push($this->extraButtonsArray, $extraButtonArray);
return true;
}
}
}
return false;
}
public function formFooter()
{ ?>