Source of file BootstrapFormAction.php
Size: 0,875 Bytes - Last Modified: 2021-12-23T10:56:03+00:00
/var/www/docs.ssmods.com/process/src/code/BootstrapFormAction.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | <?php /** * Creates a {@link FormAction} object that is compatible * with the Twitter Bootstrap CSS framework. * * @author Uncle Cheese <unclecheese@leftandmain.com> * @package bootstrap_forms */ class BootstrapFormAction extends DataExtension { /** * Sets the style of button. Options include: * - "success" * - "danger" * - "info" * - "primary" * - "warning" * - "inverse" * * @param string $style * @return BootstrapFormAction */ public function setStyle($style) { $this->owner->ButtonStyle = trim(strtolower($style)); return $this->owner; } /** * Sets the size of the button. Options include: * - "large" * - "small" * - "mini" * * @param string $size * @return BootstrapFormAction */ public function setSize($size) { $this->owner->ButtonSize = trim(strtolower($size)); return $this->owner; } } |