Your IP : 10.10.0.253


Current Path : /var/www/components/com_yendifvideoshare/controllers/
Upload File :
Current File : /var/www/components/com_yendifvideoshare/controllers/user.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 YendifVideoShareControllerUser extends YendifVideoShareController {
	
	public function user() {			
	    $model = $this->getModel( 'user' );
		
	    $view = $this->getView( 'user', 'html' );        	
        $view->setModel( $model, true );		
		$view->setLayout( 'default' );
		$view->display();		
	}
	
	public function videos() {			
	    $model = $this->getModel( 'user' );
		
	    $view = $this->getView( 'user', 'html' );        	
        $view->setModel( $model, true );		
		$view->setLayout( 'videos' );
		$view->videos();		
	}
	
	public function add() {	
		YendifVideoShareUtils::checkToken();
				
	    $model = $this->getModel( 'user' );
		
	    $view = $this->getView( 'user', 'html' );       	
        $view->setModel( $model, true );		
		$view->setLayout( 'add' );
		$view->add();		
	}
	
	public function edit() {		
		YendifVideoShareUtils::checkToken();
		
		$model = $this->getModel( 'user' );
		
	    $view = $this->getView( 'user', 'html' );        		
        $view->setModel( $model, true );		
		$view->setLayout( 'edit' );
		$view->edit();		
	}
	
	public function save() {		
		YendifVideoShareUtils::checkToken();
		
		$model = $this->getModel( 'user' );
		$model->save();		
	}
	
	public function delete() {			
		YendifVideoShareUtils::checkToken();
		
		$model = $this->getModel( 'user' );
		$model->delete();		
	}
			
}