Your IP : 10.10.0.253


Current Path : /var/www/components/com_yendifvideoshare/controllers/
Upload File :
Current File : /var/www/components/com_yendifvideoshare/controllers/ads.php

<?php
/**
 * @version    1.2.9
 * @package    Com_YendifVideoShare
 * @author     PluginsWare Interactive Pvt. Ltd <admin@yendifplayer.com>
 * @copyright  Copyright (c) 2012 - 2021 PluginsWare Interactive Pvt. Ltd. All Rights Reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

// Prevent direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

class YendifVideoShareControllerAds extends YendifVideoShareController {
	
	public function vast() {
		$model = $this->getModel( 'ads' );

	    $view = $this->getView( 'ads', 'xml' );	
		$view->setModel( $model, true );		
		$view->setLayout( 'vast' );
		$view->vast();
	}

	public function vmap() {
		$model = $this->getModel( 'ads' );
		
	    $view = $this->getView( 'ads', 'xml' );	
		$view->setModel( $model, true );		
		$view->setLayout( 'vmap' );
		$view->vmap();
	}

	public function impression() {
		$model = $this->getModel( 'ads' );
		$model->impression();
	}

	public function click() {
		$model = $this->getModel( 'ads' );
		$model->click();
	}
			
}