| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: user.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla.Legacy 5 * @subpackage 1.5 6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 9 * to the GNU General Public License, and as distributed it includes or 10 * is derivative of works licensed under the GNU General Public License or 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 14 15 // Check to ensure this file is within the rest of the framework 16 defined('JPATH_BASE') or die(); 17 18 // Register legacy classes for autoloading 19 JLoader::register('JTableUser', JPATH_LIBRARIES.DS.'joomla'.DS.'database'.DS.'table'.DS.'user.php'); 20 21 /** 22 * Legacy class, use {@link JTableUser} instead 23 * 24 * @deprecated As of version 1.5 25 * @package Joomla.Legacy 26 * @subpackage 1.5 27 */ 28 class mosUser extends JTableUser 29 { 30 /** 31 * Constructor 32 */ 33 function __construct(&$db) 34 { 35 parent::__construct( $db ); 36 } 37 38 function mosUser(&$db) 39 { 40 parent::__construct( $db); 41 } 42 43 /** 44 * Legacy Method, use {@link JTable::reorder()} instead 45 * @deprecated As of 1.5 46 */ 47 function updateOrder( $where='' ) 48 { 49 return $this->reorder( $where ); 50 } 51 52 /** 53 * Legacy Method, use {@link JTable::publish()} instead 54 * @deprecated As of 1.0.3 55 */ 56 function publish_array( $cid=null, $publish=1, $user_id=0 ) 57 { 58 $this->publish( $cid, $publish, $user_id ); 59 } 60 61 /** 62 * Returns a complete user list 63 * 64 * @return array 65 * @deprecated As of 1.5 66 */ 67 function getUserList() 68 { 69 $this->_db->setQuery("SELECT username FROM #__users"); 70 return $this->_db->loadAssocList(); 71 } 72 73 /** 74 * Gets the users from a group 75 * 76 * @param string The value for the group 77 * @param string The name for the group 78 * @param string If RECURSE, will drill into child groups 79 * @param string Ordering for the list 80 * @return array 81 * @deprecated As of 1.5 82 */ 83 function getUserListFromGroup( $value, $name, $recurse='NO_RECURSE', $order='name' ) 84 { 85 $acl =& JFactory::getACL(); 86 87 // Change back in 88 $group_id = $acl->get_group_id( $value, $name, 'ARO'); 89 $objects = $acl->get_group_objects( $group_id, 'ARO', 'RECURSE'); 90 91 if (isset( $objects['users'] )) 92 { 93 $gWhere = '(id =' . implode( ' OR id =', $objects['users'] ) . ')'; 94 95 $query = 'SELECT id AS value, name AS text' 96 . ' FROM #__users' 97 . ' WHERE block = "0"' 98 . ' AND ' . $gWhere 99 . ' ORDER BY '. $order 100 ; 101 $this->_db->setQuery( $query ); 102 $options = $this->_db->loadObjectList(); 103 return $options; 104 } else { 105 return array(); 106 } 107 } 108 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |