<?php /** * @package EasySocial * @copyright Copyright (C) 2010 - 2012 Stack Ideas Sdn Bhd. All rights reserved. * @license GNU/GPL, see LICENSE.php * EasySocial 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. * See COPYRIGHT.php for copyright notices and details. */ defined('_JEXEC') or die('Unauthorized Access'); Foundry::import('admin:/includes/maintenance/dependencies'); class SocialMaintenanceScriptStreamUserAccess extends SocialMaintenanceScript { public static $title = "Sync user's privacy access in stream table."; public static $description = "Sync user's privacy access in stream table."; public function main() { // determine what privacy rule to used for each context_type $context = array(); // $context['photos'] = 'photos.view'; // $context['discuss'] = 'core.view'; // $context['kunena'] = 'core.view'; // $context['k2'] = 'core.view'; // $context['komento'] = 'core.view'; // $context['blog'] = 'easyblog.blog.view'; // $context['badges'] = 'core.view'; // $context['friends'] = 'core.view'; // $context['links'] = 'story.view';
<?php /** * @version SVN: <svn_id> * @package Quick2cart * @author Techjoomla <*****@*****.**> * @copyright Copyright (c) 2009-2015 TechJoomla. All rights reserved. * @license GNU General Public License version 2 or later. */ // No direct access defined('_JEXEC') or die; Foundry::import('admin:/includes/apps/apps'); if (!defined('DS')) { define('DS', '/'); } /** * Quick2cart users product application for EasySocial. * * @version Release: <1.0> * @since 1.0 */ class SocialUserAppQ2cMyProducts extends SocialAppItem { /** * Class constructor. * * @since 1.0 * @access public * @param array return all html code of layout. */ public function __construct($options = array())
<?php /** * @package EasySocial * @copyright Copyright (C) 2010 - 2014 Stack Ideas Sdn Bhd. All rights reserved. * @license GNU/GPL, see LICENSE.php * EasySocial 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. * See COPYRIGHT.php for copyright notices and details. */ defined('_JEXEC') or die('Unauthorized Access'); Foundry::import('admin:/includes/group/group'); /** * Photos application for EasySocial * @since 1.0 * @author Mark Lee <*****@*****.**> */ class SocialUserAppPhotos extends SocialAppItem { /** * Class constructor * * @since 1.0 * @access public */ public function __construct($options = array()) { JFactory::getLanguage()->load('app_photos', JPATH_ROOT); parent::__construct($options);
<?php /** * @version SVN: <svn_id> * @package Quick2cart * @author Techjoomla <*****@*****.**> * @copyright Copyright (c) 2009-2015 TechJoomla. All rights reserved. * @license GNU General Public License version 2 or later. */ // No direct access defined('_JEXEC') or die; Foundry::import('admin:/includes/model'); class q2cmyproductsModel extends EasySocialModel { /** * Retrieves a list of products created by a particular user. * * @since 1.0 * @access public * @param int $userId The user's / creator's id. * * @return Array A list of products. */ public function getItems($userId, $limit = 0, $storeid = '') { $db = Foundry::db(); $sql = $db->sql(); $sql = 'SELECT DISTINCT(i.item_id), i.name, i.images, i.featured, i.parent, i.min_quantity, i.max_quantity, i.product_id, i.stock FROM `#__kart_items` as i, `#__kart_store` as s WHERE s.id = i.store_id AND i.state=1