0byt3m1n1-V2
Path:
/
home
/
a
/
c
/
a
/
academiac
/
www
/
[
Home
]
File: usergroups.php.tar
home/academiac/www/administrator/components/com_virtuemart/tables/usergroups.php 0000604 00000003522 15137215736 0024525 0 ustar 00 <?php /** * * Usergroup table * * @package VirtueMart * @subpackage Userfields * @author Oscar van Eijk * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id: usergroups.php 6475 2012-09-21 11:54:21Z Milbo $ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); if(!class_exists('VmTable'))require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'vmtable.php'); /** * Userfields table class * The class is used to manage the userfields in the shop. * * @package VirtueMart * @author Oscar van Eijk * @author Max Milbers */ class TableUsergroups extends VmTable { /** @var Primary Key*/ var $virtuemart_permgroup_id = 0; /** @var Authentification Groupname*/ var $group_name=''; /** @var Authentification level standard is set to demo*/ var $group_level = 750; var $published = 0; /** * @param JDataBase $db */ function __construct(&$db) { parent::__construct('#__virtuemart_permgroups', 'virtuemart_permgroup_id', $db); $this->setUniqueName('group_name'); $this->setLoggable(); } /** * Validates the userfields record fields. * * @return boolean True if the table buffer is contains valid data, false otherwise. */ function check($nrOfValues){ if (preg_match('/[^a-z0-9\._\-]/i', $this->group_name) > 0) { vmError(JText::_('COM_VIRTUEMART_PERMISSION_GROUP_NAME_INVALID_CHARACTERS')); return false; } return parent::check(); } } //No CLosing Tag home/academiac/www/administrator/components/com_virtuemart/models/usergroups.php 0000604 00000004011 15137216455 0024527 0 ustar 00 <?php /** * * Data module for shop extensions * * @package VirtueMart * @subpackage Extensions * @author StephanieS * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id: usergroups.php 6350 2012-08-14 17:18:08Z Milbo $ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); if(!class_exists('VmModel'))require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'vmmodel.php'); if(!class_exists('TableUsergroups'))require(JPATH_VM_ADMINISTRATOR.DS.'tables'.DS.'usergroups.php'); /** * Model class for shop Currencies * * @package VirtueMart * @subpackage Extensions * @author StephanieS, Max Milbers */ class VirtueMartModelUsergroups extends VmModel { /** * constructs a VmModel * setMainTable defines the maintable of the model * @author Max Milbers */ function __construct() { parent::__construct(); $this->setMainTable('usergroups'); } function getUsergroup() { $db = JFactory::getDBO(); if (empty($this->_data)) { $this->_data = $this->getTable('usergroups'); $this->_data->load((int)$this->_id); } return $this->_data; } function getUsergroups($onlyPublished=false, $noLimit=false) { $where = array(); if ($onlyPublished) { $where[] = ' `#__virtuemart_shoppergroups`.`published` = 1'; } $whereString = ''; if (count($where) > 0) $whereString = ' WHERE '.implode(' AND ', $where) ; return $this->_data = $this->exeSortSearchListQuery(0,'*',' FROM `#__virtuemart_permgroups`',$whereString,'',$this->_getOrdering()); } } home/academiac/www/administrator/components/com_virtuemart/controllers/usergroups.php 0000604 00000002343 15137243312 0025610 0 ustar 00 <?php /** Extensions controller * @package VirtueMart * @subpackage Extensions * @author StephanieS * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id: usergroups.php 3285 2011-05-18 23:46:39Z Electrocity $ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); // Load the controller framework jimport('joomla.application.component.controller'); if(!class_exists('VmController'))require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'vmcontroller.php'); /** * Extensions Controller * * @package VirtueMart * @subpackage Extensions * @author StephanieS */ class VirtuemartControllerUsergroups extends VmController { /** * Method to display the view * * @access public * @author */ function __construct() { parent::__construct(); } } // pure php no closing tag
©
2018.