• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP package函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中package函数的典型用法代码示例。如果您正苦于以下问题:PHP package函数的具体用法?PHP package怎么用?PHP package使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: package

function package($pattern, $destination, $recurse = false, $exclude = false)
{
    global $root, $stage_path;
    $search = $root . '/' . $pattern;
    echo "Packaging " . $search . "\n";
    foreach (glob($search, GLOB_BRACE | GLOB_NOSORT) as $file) {
        if (is_file($file)) {
            if ($exclude && exclude($exclude, $file)) {
                continue;
            }
            if (!is_dir("{$stage_path}/{$destination}")) {
                mkdir("{$stage_path}/{$destination}", 0777, true);
            }
            copy($file, $stage_path . '/' . $destination . '/' . basename($file));
        }
    }
    if ($recurse) {
        foreach (glob(dirname($search) . '/*', GLOB_ONLYDIR | GLOB_NOSORT) as $dir) {
            if ($exclude && exclude($exclude, $dir)) {
                continue;
            }
            package(dirname($pattern) . '/' . basename($dir) . '/' . basename($pattern), $destination . '/' . basename($dir), $recurse - 1, $exclude);
        }
    }
}
开发者ID:dmiguel92,项目名称:osTicket-1.8,代码行数:25,代码来源:package.php


示例2: packingData

<?php

require_once "functions.php";
$packing_array = packingData();
if (isset($_GET["pakitud"])) {
    $package_id = $_GET["pakitud"];
    package($package_id);
}
?>
<html>
	<body>
		<table border="1">
				<?php 
for ($i = 0; $i < count($packing_array); $i++) {
    echo "<tr>";
    echo "<input type='hidden' name='id' value='" . $packing_array[$i]->id . "'>";
    echo "<td>" . $packing_array[$i]->kirjeldus . "</td>";
    echo "<td>" . $packing_array[$i]->korpus . "</td>";
    echo "<td>" . $packing_array[$i]->kuvar . "</td>";
    echo "<td>" . $packing_array[$i]->pakitud . "</td>";
    echo "<td><a href='?pakitud=" . $packing_array[$i]->id . "'>Pakitud</a></td>";
}
?>
			</table>
	</body>
</html>
开发者ID:Dralun,项目名称:eksam,代码行数:26,代码来源:pakkimine.php


示例3: package

 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY MOVINPIXEL AND ITS CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL MOVINPIXEL OR ITS CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */
package('mango.system');
/**
 * 
 *
 * @author Jader Feijo <[email protected]>
 *
 * @license MIT
 *
 * @package mango.system
 *
 */
class MMutableString extends MString
{
    //
    // ************************************************************
    //
开发者ID:jaderfeijo,项目名称:mangoSystemLib,代码行数:31,代码来源:MMutableString.php


示例4: package

 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY MOVINPIXEL AND ITS CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL MOVINPIXEL OR ITS CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */
package('mango.system.io');
import('mango.system.*');
import('mango.system.exceptions.*');
/**
 * 
 *
 * @author Jader Feijo <[email protected]>
 *
 * @license MIT
 *
 * @package mango.system.io
 *
 */
abstract class MOutputStream extends MStream
{
    //
开发者ID:jaderfeijo,项目名称:mangoSystemLib,代码行数:31,代码来源:MOutputStream.php


示例5: package

 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
// $Id: AllAmpolirosDatatransferTests.php,v 1.2 2004-07-08 15:04:26 alex Exp $
/**
 * @package com.solarix.ampoliros.tests.datatransfer
 * @author Alex Pagnoni <[email protected]>
 * @copyright Copyright 2000-2004 Solarix Srl
 * @since 4.0
 */
package('com.solarix.ampoliros.tests.datatransfer');
import('carthag.dev.unit.framework.TestSuite');
import('com.solarix.ampoliros.tests.datatransfer.ClipboardTest');
/**
 * @package com.solarix.ampoliros.tests.datatransfer
 * @author Alex Pagnoni <[email protected]>
 * @copyright Copyright 2000-2004 Solarix Srl
 * @since 4.0
 */
class AllAmpolirosDatatransferTests extends Object
{
    public static function suite()
    {
        $suite = new TestSuite('AmpolirosDatatransfer');
        $suite->addTestSuite(new ReflectionClass('ClipboardTest'));
        return $suite;
开发者ID:alexpagnoni,项目名称:ampoliros,代码行数:31,代码来源:AllAmpolirosDatatransferTests.php


示例6: package

 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
// $Id: XmlRpcUser.php,v 1.3 2004-07-08 15:04:26 alex Exp $
package('com.solarix.ampoliros.webservices.xmlrpc');
import('com.solarix.ampoliros.io.log.Logger');
/*!
 @class XmlRpcUser

 @abstract XML RPC interface users.
 */
class XmlRpcUser extends Object
{
    var $mLog;
    var $mAmpDb;
    var $mUserId;
    var $mProfileId = 0;
    var $mSiteId = 0;
    /*!
         @function XmlRpcUser
开发者ID:alexpagnoni,项目名称:ampoliros,代码行数:31,代码来源:XmlRpcUser.php


示例7: package

 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY MOVINPIXEL AND ITS CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL MOVINPIXEL OR ITS CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */
package('mango.system.exceptions');
import('mango.system.*');
import('mango.system.io.*');
/**
 *
 * @author Jader Feijo <[email protected]>
 *
 * @package mango.system.exceptions
 *
 */
class MFileNotFoundException extends MException
{
    protected $filePath;
    public function __construct(MString $filePath, MException $previous = null)
    {
        parent::__construct(Sf("File at path '%s' could not be found!", $filePath), MException::FILE_NOT_FOUND_EXCEPTION, $previous);
开发者ID:jaderfeijo,项目名称:mangoSystemLib,代码行数:31,代码来源:MFileNotFoundException.php


示例8: package

 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
// $Id: HuiDispatcher.php,v 1.10 2004-07-08 15:04:26 alex Exp $
package('com.solarix.ampoliros.hui');
/*!
 @class HuiDispatcher
 @abstract Hui events dispatcher.
 @discussion Hui events dispatcher.
 */
class HuiDispatcher extends Object
{
    /*! @var mName string - Dispatcher name. */
    private $mName;
    /*! @var mEvents array - Array of the event functions. */
    public $mEvents = array();
    /*! @var mDispatched bool - True when the events have been dispatched. */
    private $mDispatched;
    /*!
      @function HuiDispatcher
开发者ID:alexpagnoni,项目名称:ampoliros,代码行数:31,代码来源:HuiDispatcher.php


示例9: package

 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
// $Id: RecordSet_odbc.php,v 1.3 2004-07-08 15:04:23 alex Exp $
package('com.solarix.ampoliros.db.drivers.odbc');
import('com.solarix.ampoliros.db.RecordSet');
class recordset_pgsql extends recordset
{
    var $suppseek = true;
    var $_start = false;
    function _Init()
    {
        $this->resultrows = @pg_numrows($this->resultid);
        $this->resultfields = @pg_numfields($this->resultid);
    }
    function _Seek($row)
    {
        $this->currentrow = $row;
        return true;
    }
开发者ID:alexpagnoni,项目名称:ampoliros,代码行数:31,代码来源:RecordSet_odbc.php


示例10: package

 *                    Ampoliros Application Server
 *
 *                      http://www.ampoliros.com
 *
 *
 *
 *   Copyright (C) 2000-2004 Solarix
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
// $Id: HuiAuthHelper.php,v 1.5 2004-07-14 15:16:44 alex Exp $
package('com.solarix.ampoliros.hui.helpers');
import('com.solarix.ampoliros.hui.mvc.HuiRequest');
import('com.solarix.ampoliros.hui.mvc.HuiResponse');
interface HuiAuthHelper
{
    public function auth(HuiRequest $request, HuiResponse $response);
}
开发者ID:alexpagnoni,项目名称:ampoliros,代码行数:31,代码来源:HuiAuthHelper.php


示例11: package

 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY MOVINPIXEL AND ITS CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL MOVINPIXEL OR ITS CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */
package('mango.data');
import('mango.system.*');
/**
 * Class that describes an entity's property
 *
 * This class holds and manages the information necessary to describe
 * an entity's property
 *
 * @author Jader Feijo <[email protected]>
 *
 * @license MIT
 *
 * @package mango.data
 *
 */
class MEntityDescriptionProperty extends MEntityDescriptionAttribute
开发者ID:jaderfeijo,项目名称:mangoSystemLib,代码行数:31,代码来源:MEntityDescriptionProperty.php


示例12: switch

#
#
require "../settings.php";
require "../core-settings.php";
require "../libs/ext.lib.php";
## Decide
if (isset($_POST["key"])) {
    switch ($_POST["key"]) {
        case "process":
            $OUTPUT = process($_POST);
            break;
        case "confirm":
            $OUTPUT = confirm($_POST);
            break;
        case "pack":
            $OUTPUT = package($_POST);
            break;
        default:
            $OUTPUT = slctEmployee();
    }
} else {
    $OUTPUT = slctEmployee();
}
require "../template.php";
function mlist($name, $curr = "")
{
    $month = 1;
    $months = array("1", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
    $list = "<select name={$name}>";
    while ($month <= 12) {
        if ($month == $curr) {
开发者ID:kumarsivarajan,项目名称:accounting-123,代码行数:31,代码来源:salaries-staff.php


示例13: package

<?php

/**
 * Description of ContrPerro
 *
 * @author ubuntu
 */
require_once Controller_php;
package("pack1");
import("Perro");
class ContrPack1 extends Controller
{
    /**
     * 
     * @return Pack1
     */
    public static function getInstance()
    {
        return parent::getInstance();
    }
    public function getPerro(Procedure &$pro, int $perroid)
    {
        $p = Perro::persistence();
        $perro = $pro->declare_var('per', new RowType($p));
        $pro->select($p->id, $p->nombre, $p->persona_id)->from($p)->where(c($p->id = $perroid))->into($perro);
        return $perro;
    }
    public function getPerros(Procedure &$pro)
    {
        $p = Perro::persistence();
        $pro->returns(new RowType($p));
开发者ID:exildev,项目名称:corvus,代码行数:31,代码来源:ContrPack1.php


示例14: package

<?php

package('musicpd', ["emerge/use" => "vorbis"])->install();
service('musicpd')->enable()->requires(package('musicpd'));
开发者ID:EaterOfCode,项目名称:Order,代码行数:4,代码来源:musicpd.php


示例15: package

 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
// $Id: ModuleConfig.php,v 1.6 2004-07-08 15:04:25 alex Exp $
package('com.solarix.ampoliros.module');
/*!
 @abstract Module configuration handling.
 */
class ModuleConfig extends Object
{
    /*! @var ampdb dblayer class - Ampoliros database handler. */
    private $ampdb;
    /*! @var modname string - Module name. */
    private $modname;
    /*!
      @param ampdb dblayer class - Ampoliros database handler.
      @param modname string - Module name.
      */
    public function ModuleConfig(DBLayer $ampdb, $modname)
    {
开发者ID:alexpagnoni,项目名称:ampoliros,代码行数:31,代码来源:ModuleConfig.php


示例16: package

 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY MOVINPIXEL AND ITS CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL MOVINPIXEL OR ITS CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */
package('mango.system.xml');
import('mango.system.*');
/**
 * 
 *
 * @author Jader Feijo <[email protected]>
 *
 * @license MIT
 *
 * @package mango.system.xml
 *
 */
class MXMLView extends MMarkupElementView
{
    //
    // ************************************************************
开发者ID:jaderfeijo,项目名称:mangoSystemLib,代码行数:31,代码来源:MXMLView.php


示例17: package

<?php

package("japha.lang");
/**
 * $Id$
 *
 * Class ClassLoader
 *
 * Provides a mechanism for loading class files into the global namespace, and keeping track of those files
 * in an effort to make sure that the same file is not loaded twice, and to make sure that any errors that
 * can be caught in the linking process ARE caught, and not let alone until run time.
 *
 * @author <a href="mailto:[email protected]">Ryan Gantt</a>
 * @version $Revision$
 */
class ClassLoader extends Object
{
    // The VM (parent) instance of the ClassLoader class. If no VM instance exists, then it is a reflective reference
    private $classLoader;
    function __construct($parent = null)
    {
        if ($parent == null) {
            $this->classLoader = $this->getSystemClassLoader();
        }
    }
    /**
     * Loads a class into the virtual machine memory space - If the class has not been resolved, then it starts
     * the resolution progress, along with verification and preparation. Not necessarily in that order.
     *
     * @param name The fully qualified name of the class to load
     * @param resolve A boolean value that states whether or not the current class has been resolved
开发者ID:rgantt,项目名称:japha,代码行数:31,代码来源:ClassLoader.php


示例18: package

 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
// $Id: Ampoliros.php,v 1.16 2004-07-08 14:49:15 alex Exp $
package('com.solarix.ampoliros.core');
import('carthag.util.Singleton');
class Ampoliros extends Singleton
{
    private $bootstrapped = false;
    private $pid;
    private $state;
    private $mode;
    private $interface;
    private $edition;
    const STATE_SETUP = 1;
    const STATE_DEVELOPMENT = 2;
    const STATE_DEBUG = 3;
    const STATE_PRODUCTION = 4;
    const STATE_UPGRADE = 5;
    const STATE_MAINTENANCE = 6;
开发者ID:alexpagnoni,项目名称:ampoliros,代码行数:31,代码来源:Ampoliros.php


示例19: package

 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
// $Id: DBLayerFactory.php,v 1.6 2004-07-13 15:20:52 alex Exp $
package('com.solarix.ampoliros.db');
import('com.solarix.ampoliros.db.DBLayer');
global $dbtypes;
$dbtypes = array();
class DBLayerFactory extends Object
{
    public function dBLayerFactory()
    {
        OpenLibrary('configman.library');
        $this->FillDbLayers();
    }
    public function fillDbLayers()
    {
        global $dbtypes;
        $dbtypes = array();
        $dbcfgfile = new ConfigFile(CONFIG_PATH . 'dblayers.cfg', TRUE);
开发者ID:alexpagnoni,项目名称:ampoliros,代码行数:31,代码来源:DBLayerFactory.php


示例20: package

 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
// $Id: Group.php,v 1.6 2004-07-08 15:04:23 alex Exp $
package('com.solarix.ampoliros.site.user');
class Group extends Object
{
    public $mrAmpDb;
    public $mrSiteDb;
    public $siteserial;
    public $groupid;
    /*!
       @function Group
      
       @abstract Class constructor
       */
    public function Group(DBLayer $rampDb, DBLayer $rsiteDb, $siteserial, $groupid = 0)
    {
        $this->mrAmpDb = $rampDb;
        $this->mrSiteDb = $rsiteDb;
开发者ID:alexpagnoni,项目名称:ampoliros,代码行数:31,代码来源:Group.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP package_flush_cache函数代码示例发布时间:2022-05-15
下一篇:
PHP pack_list函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap