当前位置: 首页>>代码示例>>PHP>>正文


PHP Foundry::import方法代码示例

本文整理汇总了PHP中Foundry::import方法的典型用法代码示例。如果您正苦于以下问题:PHP Foundry::import方法的具体用法?PHP Foundry::import怎么用?PHP Foundry::import使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Foundry的用法示例。


在下文中一共展示了Foundry::import方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: defined

<?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';
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:StreamUserAccess.php

示例2: defined

<?php

/**
 * @version    SVN: <svn_id>
 * @package    Quick2cart
 * @author     Techjoomla <extensions@techjoomla.com>
 * @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())
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:31,代码来源:q2cMyProducts.php

示例3: defined

<?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 <mark@stackideas.com>
 */
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);
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:photos.php

示例4: defined

<?php

/**
 * @version    SVN: <svn_id>
 * @package    Quick2cart
 * @author     Techjoomla <extensions@techjoomla.com>
 * @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
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:31,代码来源:q2cmyproducts.php


注:本文中的Foundry::import方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。