File "controller.php"

Full Path: /home/jlklyejr/public_html/wp-content/test/wp-content/plugins/woo-currency/modules/currency_switcher/controller.php
File size: 618 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
class currency_switcherControllerWcu extends controllerWcu {

	public function drawCurrencySwitcherAjax() {
		$res  = new responseWcu();
		$data = escHtmlRecursively( reqWcu::get( 'post' ) );

		if ( isset( $data ) && $data ) {
			$res->setHtml( frameWcu::_()->getModule( 'currency' )->drawModuleAjax( 'currency_switcher', $data ) );
		} else {
			$res->pushError( $this->getModule( 'currency' )->getErrors() );
		}

		$res->ajaxExec();
	}

	public function getPermissions() {
		return array(
			WCU_USERLEVELS => array(
				WCU_ADMIN => array('drawCurrencySwitcherAjax')
			),
		);
	}
}