This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Admin\Form\View\Helper; | |
use Zend\Form\ElementInterface; | |
use Zend\Form\View\Helper\FormElement; | |
class ExFormElement extends FormElement | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Image extends \Zend\Form\Element\File implements ExFormElementInterface | |
{ | |
public function getInputSpecification() { | |
$specs = parent::getInputSpecification(); | |
if (!isset($specs['filters']) || !is_array($specs['filters'])) { | |
$specs['filters'] = array(); | |
} | |
$specs['filters'][] = array( | |
'name' => 'thumbnailfilter' | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function laf_woocommerce_checkout_update_order_review($post_data) | |
{ | |
if (!empty($post_data)) { | |
parse_str($post_data, $data); | |
} | |
else | |
return false; |