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


PHP include_class函数代码示例

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


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

示例1: createObject

 /**
  * Instantiate a class
  *
  * @param string $class name of class
  * @param mixed  $p1    paramater for constructor of class (optional)
  * @param mixed  $p2    paramater for constructor of class (optional)
  * @param mixed  $p3    paramater for constructor of class (optional)
  * @param mixed  $p4    paramater for constructor of class (optional)
  * @param mixed  $p5    paramater for constructor of class (optional)
  * @param mixed  $p6    paramater for constructor of class (optional)
  * @param mixed  $p7    paramater for constructor of class (optional)
  * @param mixed  $p8    paramater for constructor of class (optional)
  * @param mixed  $p9    paramater for constructor of class (optional)
  * @param mixed  $p10   paramater for constructor of class (optional)
  * @param mixed  $p11   paramater for constructor of class (optional)
  * @param mixed  $p12   paramater for constructor of class (optional)
  * @param mixed  $p13   paramater for constructor of class (optional)
  * @param mixed  $p14   paramater for constructor of class (optional)
  * @param mixed  $p15   paramater for constructor of class (optional)
  * @param mixed  $p16   paramater for constructor of class (optional)
  *
  * @return object the instantiated class
  */
 public static function createObject($class, $p1 = '_UNDEF_', $p2 = '_UNDEF_', $p3 = '_UNDEF_', $p4 = '_UNDEF_', $p5 = '_UNDEF_', $p6 = '_UNDEF_', $p7 = '_UNDEF_', $p8 = '_UNDEF_', $p9 = '_UNDEF_', $p10 = '_UNDEF_', $p11 = '_UNDEF_', $p12 = '_UNDEF_', $p13 = '_UNDEF_', $p14 = '_UNDEF_', $p15 = '_UNDEF_', $p16 = '_UNDEF_')
 {
     list($appname, $class) = explode('.', $class, 2);
     $is_included = include_class($appname, $class);
     if ($is_included) {
         if (class_exists("{$appname}_{$class}")) {
             $class = "{$appname}_{$class}";
         }
         if ($p1 === '_UNDEF_') {
             $obj = new $class();
         } else {
             $code = "\$obj = new {$class}(";
             for ($i = 1; $i < 17; ++$i) {
                 $arg = "p{$i}";
                 if (${$arg} === '_UNDEF_') {
                     break;
                 } else {
                     $code .= "\${$arg}, ";
                 }
             }
             $code = substr($code, 0, -2) . ');';
             eval($code);
         }
         return $obj;
     } else {
         trigger_error("Can not createObject({$class}), file does not exist", E_USER_ERROR);
     }
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:51,代码来源:class.object_factory.inc.php

示例2: __construct

 /**
  * Includes and connects this class to classes required
  */
 function __construct()
 {
     $this->Config = include_class('Config');
     $this->Output = include_class('Output');
     $this->fileManager = include_class('fileManager');
     $this->getID3 = include_class('getID3');
 }
开发者ID:jiminald,项目名称:PHP-Multimedia-Sorter,代码行数:10,代码来源:music.php

示例3: include_class

 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with phpGroupWare; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License
 * @internal Development of this application was funded by http://www.bergen.kommune.no/
 * @package property
 * @subpackage controller
 * @version $Id$
 */
phpgw::import_class('phpgwapi.uicommon');
phpgw::import_class('controller.sodocument');
phpgw::import_class('controller.soprocedure');
include_class('controller', 'document', 'inc/model/');
class controller_uidocument extends phpgwapi_uicommon
{
    private $so;
    private $so_procedure;
    private $read;
    private $add;
    private $edit;
    private $delete;
    public $public_functions = array('query' => true, 'add' => true, 'view' => true, 'delete' => true, 'show' => true, 'document_types' => true);
    public function __construct()
    {
        parent::__construct();
        $this->so = controller_sodocument::get_instance();
        $this->so_procedure = controller_soprocedure::get_instance();
        $this->read = $GLOBALS['phpgw']->acl->check('.control', PHPGW_ACL_READ, 'controller');
开发者ID:HaakonME,项目名称:porticoestate,代码行数:31,代码来源:class.uidocument.inc.php

示例4: SectionTemplate

<?php

$header = new SectionTemplate();
$header->file = "header.php";
$footer = new SectionTemplate();
$footer->file = "footer.php";
include_class('band_news');
include_class('band_members');
include_class('shows');
include_class('band_information');
$bn = new BandNewsList();
$view = 'overview';
$linkBrowse = "news.php?browse=1";
$linkLatest = "news.php";
$paging = new SectionTemplate();
$paging->file = "paging.php";
$paging->args['perPage'] = is_numeric($_GET['e']) ? $_GET['e'] : 10;
$paging->args['start'] = is_numeric($_GET['s']) ? $_GET['s'] : ($paging->args['start'] = 1);
if ($_GET['id']) {
    $view = 'detail';
    $bnd = BandNews::get($_GET['id']);
    $st = new SectionTemplate();
    $st->file = "news_detail.php";
    $st->args['news'] = $bnd;
} else {
    if ($_GET['browse']) {
        $view = 'browse';
        $news = array();
        $result = $bn->get_band_news($_GET['e'], $_GET['s'], 1);
        $paging->args['total'] = $bn->get_total(1);
        $paging->args['url'] = USE_MOD_REWRITE ? SITE_WEB_DIRECTORY . 'news/browse/' : 'news.php';
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:news.php

示例5: SectionTemplate

<?php

$header = new SectionTemplate();
$header->file = "header.php";
$footer = new SectionTemplate();
$footer->file = "footer.php";
$search = new SectionTemplate();
$search->file = "shows_search.php";
include_class('shows');
include_class('venues');
include_class('locations');
include_class('m2');
include_class('tours');
include_class('band_members');
$view = '';
if ($_GET['id']) {
    $bs = Show::get($_GET['id']);
    if ($_GET['media_instance_id'] > 0) {
        $mi = MediaInstance::get($_GET['media_instance_id']);
        if (!db::isError($mi) && !db::isError($bs)) {
            if (($mi->getAreaID() == $bs->getAVAreaID() || $mi->getAreaID() == $bs->getPhotoAreaID()) && $bs->isActive()) {
                $view = 'media';
                $media = new SectionTemplate();
                $media->file = "media_detail.php";
                $media->args['media'] = $mi;
                $media->args['exitURL'] = USE_MOD_REWRITE ? '/show/' . $bs->getID() . '/' : '/shows.php?id=' . $bs->getID();
            }
        }
    }
    if ($view != 'media' && !db::isError($bs)) {
        $view = 'detail';
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:shows.php

示例6: create

 function create($class_name)
 {
     include_class($class_name, '/core/controllers/');
     return create_object($class_name);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:5,代码来源:site_object_controller.class.php

示例7: assembleMenuItems

/**
 * Assembles the Adminsitrator Menu Items into an array
 *
 * @param array $mods
 * @return array
 */
function assembleMenuItems($mods)
{
    global $VM_LANG, $mosConfig_absolute_path, $mosConfig_live_site;
    $modCount = 1;
    $modules = array();
    foreach ($mods as $module) {
        switch ($module) {
            case 'admin':
                $modules[$module]['title'] = $VM_LANG->_('PHPSHOP_ADMIN_MOD');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-config', 'href' => 'page=admin.show_cfg', 'text' => $VM_LANG->_('PHPSHOP_CONFIG'));
                if (defined('_VM_IS_BACKEND')) {
                    $modules[$module]['links'][] = array('text' => '-');
                    $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-user', 'href' => 'page=admin.user_list', 'text' => $VM_LANG->_('PHPSHOP_USERS'));
                }
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-user', 'href' => 'page=admin.usergroup_list', 'text' => $VM_LANG->_('VM_USERGROUP_LBL'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=admin.user_field_list', 'text' => $VM_LANG->_('VM_MANAGE_USER_FIELDS'));
                $modules[$module]['links'][] = array('text' => '-');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=admin.country_list', 'text' => $VM_LANG->_('PHPSHOP_COUNTRY_LIST_MNU'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=admin.curr_list', 'text' => $VM_LANG->_('PHPSHOP_CURRENCY_LIST_MNU'));
                $modules[$module]['links'][] = array('text' => '-');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=admin.module_list', 'text' => $VM_LANG->_('PHPSHOP_MODULE_LIST_MNU'));
                $modules[$module]['links'][] = array('text' => '-');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=admin.update_check', 'text' => $VM_LANG->_('VM_CHECK_UPDATES_MNU'));
                $modCount++;
                break;
            case 'store':
                $modules[$module]['title'] = $VM_LANG->_('PHPSHOP_STORE_MOD');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-info', 'href' => 'page=store.index', 'text' => $VM_LANG->_('PHPSHOP_STATISTIC_SUMMARY'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-config', 'href' => 'page=store.store_form', 'text' => $VM_LANG->_('PHPSHOP_STORE_FORM_MNU'));
                if ($_SESSION['auth']['perms'] != "admin" && defined('VM_IS_BACKEND')) {
                    $modules[$module]['links'][] = array('text' => '-');
                    $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-user', 'href' => 'page=store.user_list', 'text' => $VM_LANG->_('PHPSHOP_USER_LIST_MNU'));
                }
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=store.payment_method_list', 'text' => $VM_LANG->_('PHPSHOP_PAYMENT_METHOD_LIST_MNU'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-editadd', 'href' => 'page=store.payment_method_form', 'text' => $VM_LANG->_('PHPSHOP_PAYMENT_METHOD_FORM_MNU'));
                $modules[$module]['links'][] = array('text' => '-');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=store.shipping_module_list', 'text' => $VM_LANG->_('VM_SHIPPING_MODULE_LIST_LBL'));
                $modules[$module]['links'][] = array('text' => '-');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=store.creditcard_list', 'text' => $VM_LANG->_('PHPSHOP_CREDITCARD_LIST_LBL'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-editadd', 'href' => 'page=store.creditcard_form', 'text' => $VM_LANG->_('PHPSHOP_CREDITCARD_FORM_LBL'));
                $modules[$module]['links'][] = array('text' => '-');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=store.export_list', 'text' => $VM_LANG->_('VM_ORDER_EXPORT_MODULE_LIST_MNU'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-editadd', 'href' => 'page=store.export_form', 'text' => $VM_LANG->_('VM_ORDER_EXPORT_MODULE_FORM_MNU'));
                $modCount++;
                break;
            case 'shopper':
                $modules[$module]['title'] = $VM_LANG->_('PHPSHOP_SHOPPER_MOD');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=shopper.shopper_group_list', 'text' => $VM_LANG->_('PHPSHOP_SHOPPER_GROUP_LIST_MNU'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-editadd', 'href' => 'page=shopper.shopper_group_form', 'text' => $VM_LANG->_('PHPSHOP_SHOPPER_GROUP_FORM_MNU'));
                $modCount++;
                break;
            case 'product':
                include_class("product");
                $modules[$module]['title'] = $VM_LANG->_('PHPSHOP_PRODUCT_MOD');
                // Check for CSVImproved Installation!
                $text = $VM_LANG->_('CSVIMPROVED_TITLE');
                if (file_exists($mosConfig_absolute_path . '/administrator/components/com_csvimproved/admin.csvimproved.php')) {
                    $url = $mosConfig_live_site . '/administrator/index2.php?option=com_csvimproved';
                    $extra = 'onclick="document.location=this.href"';
                    $title = str_replace('"', '&quot;', $VM_LANG->_('CSVIMPROVED_TITLE'));
                } else {
                    $url = 'http://www.csvimproved.com/index.php?option=com_ionfiles&Itemid=2';
                    $extra = 'target="_blank"';
                    $title = str_replace('"', '&quot;', $VM_LANG->_('CSVIMPROVED_NEEDINSTALL'));
                }
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-import', 'href' => $url, 'title' => $title, 'text' => $text, 'extra' => $extra);
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=product.product_list', 'text' => $VM_LANG->_('PHPSHOP_PRODUCT_LIST_MNU'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-editadd', 'href' => 'page=product.product_form', 'text' => $VM_LANG->_('PHPSHOP_PRODUCT_FORM_MNU'));
                $modules[$module]['links'][] = array('text' => '-');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-install', 'href' => 'page=product.product_inventory', 'text' => $VM_LANG->_('PHPSHOP_PRODUCT_INVENTORY_MNU'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=product.specialprod', 'text' => $VM_LANG->_('PHPSHOP_SPECIAL_PRODUCTS'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=product.folders', 'text' => $VM_LANG->_('PHPSHOP_PRODUCT_FOLDERS'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=product.review_list', 'text' => $VM_LANG->_('PHPSHOP_REVIEWS'));
                $modules[$module]['links'][] = array('text' => '-');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=product.product_discount_list', 'text' => $VM_LANG->_('PHPSHOP_PRODUCT_DISCOUNT_LIST_LBL'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-editadd', 'href' => 'page=product.product_discount_form', 'text' => $VM_LANG->_('PHPSHOP_PRODUCT_DISCOUNT_FORM_MNU'));
                $modules[$module]['links'][] = array('text' => '-');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=product.product_type_list', 'text' => $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_LIST_LBL'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-editadd', 'href' => 'page=product.product_type_form', 'text' => $VM_LANG->_('PHPSHOP_PRODUCT_PRODUCT_TYPE_FORM_MNU'));
                $modules[$module]['links'][] = array('text' => '-');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=product.product_category_list', 'text' => $VM_LANG->_('PHPSHOP_CATEGORY_LIST_MNU'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-editadd', 'href' => 'page=product.product_category_form', 'text' => $VM_LANG->_('PHPSHOP_CATEGORY_FORM_MNU'));
                $modCount++;
                break;
            case 'order':
                $modules[$module]['title'] = $VM_LANG->_('PHPSHOP_ORDER_MOD');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=order.order_list', 'text' => $VM_LANG->_('PHPSHOP_ORDER_LIST_MNU'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=order.order_status_list', 'text' => $VM_LANG->_('PHPSHOP_ORDER_STATUS_LIST_MNU'));
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-editadd', 'href' => 'page=order.order_status_form', 'text' => $VM_LANG->_('PHPSHOP_ORDER_STATUS_FORM_MNU'));
                $modCount++;
                break;
            case 'vendor':
                $modules[$module]['title'] = $VM_LANG->_('PHPSHOP_VENDOR_MOD');
                $modules[$module]['links'][] = array('iconCls' => 'vmicon vmicon-16-content', 'href' => 'page=vendor.vendor_list', 'text' => $VM_LANG->_('PHPSHOP_VENDOR_LIST_MNU'));
//.........这里部分代码省略.........
开发者ID:BackupTheBerlios,项目名称:kmit-svn,代码行数:101,代码来源:extlayout.js.php

示例8: include_class

 * phpGroupWare 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 phpGroupWare; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License
 * @internal Development of this application was funded by http://www.bergen.kommune.no/
 * @package property
 * @subpackage controller
 * @version $Id$
 */
include_class('controller', 'model', 'inc/model/');
class controller_check_item extends controller_model
{
    public static $so;
    protected $id;
    protected $control_item_id;
    protected $check_list_id;
    // Objects
    protected $control_item;
    protected $cases_array = array();
    /**
     * Constructor.  Takes an optional ID.  If a contract is created from outside
     * the database the ID should be empty so the database can add one according to its logic.
     * 
     * @param int $id the id of this composite
     */
开发者ID:HaakonME,项目名称:porticoestate,代码行数:31,代码来源:class.check_item.inc.php

示例9: include_class

<?php

include_class('venues');
include_class('locations');
$so = $args['show'];
if (is_object($so) && !db::isError($so)) {
    $ID = $so->getID();
    $venue = $so->getVenueObject();
    if (db::isError($venue) || !is_object($venue)) {
        unset($venue);
    } else {
        $venueName = $venue->getName();
        $venueAddress1 = $venue->getAddress1();
        $venueAddress2 = $venue->getAddress2();
        $venueCity = $venue->getCity();
        $venueStateProvince = $venue->getStateProvince();
        $venuePostalCode = $venue->getPostalCode();
        $venueCountry = $venue->getCountry();
    }
    $name = USE_MOD_REWRITE ? '<a href="' . SITE_WEB_DIRECTORY . '/show/' . $ID . '">' . $so->getName() . '</a>' : '<a href="' . SITE_WEB_DIRECTORY . '/shows.php?id=' . $ID . '">' . $so->getName() . '</a>';
    $access = $so->isAllAges() ? "All Ages!" : "21 and Over";
    $uo = $so->getUserObject();
    $cost = $so->getCost();
    $date = $so->getDate("F d, Y");
    $time = $so->getTime("g:i A");
    if ($uo->isBandMember()) {
        $bm = BandMember::getByUserID($uo->getID());
        if ($bm->isActive()) {
            if (USE_MOD_REWRITE) {
                $poster = '<a href="' . SITE_WEB_DIRECTORY . '/member/' . $ID . '/">Read More</a>';
            } else {
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:show_summary.php

示例10: add

 function add($postArray)
 {
     $db = new db();
     include_class('venues');
     $e = new Error();
     $name = $db->sanitize_to_db($postArray['name']);
     $dt = $db->sanitize_to_db($postArray['date']);
     $date = date("Y-m-d", strtotime($dt));
     if ($postArray['time']) {
         $time = $db->sanitize_to_db($postArray['time']);
         $time = "'" . date("H:i:s", strtotime($time)) . "'";
     } else {
         $time = "null";
     }
     if ($postArray['cost'] != "") {
         $cost = $db->sanitize_to_db($postArray['cost']);
         $cost = "'{$cost}'";
     } else {
         $cost = "null";
     }
     $is_all_ages = $postArray['is_all_ages'] == '1' ? 1 : 0;
     $other_bands = $db->sanitize_to_db($postArray['other_bands']);
     $notes = $db->sanitize_to_db($postArray['notes']);
     if (User::isAdmin()) {
         $uo = User::get($postArray['user_id']);
         if (db::isError($uo)) {
             $e->add($uo);
         } else {
             if (!$uo->isAdmin() && $uo->isBandMember()) {
                 $e->add("Invalid user. User must be a band member or an administrator.");
             }
         }
     } else {
         $uo = User::getCurrent();
     }
     if ($postArray['venue_id'] != '0') {
         $ve = Venue::get($postArray['venue_id']);
     }
     if (db::isError($ve)) {
         $e->add($ve);
     }
     if ($e->hasErrors()) {
         return $e;
     }
     $user_id = $uo->getID();
     $venue_id = $db->sanitize_to_db($postArray['venue_id']);
     if (!$name) {
         $name = is_object($ve) && !db::isError($ve) ? $db->sanitize_to_db($ve->getName()) : "(untitled show)";
     }
     $r = mysql_query("insert into Shows (name, venue_id, date, time, user_id, cost, is_all_ages, other_bands, notes, is_active) values ('{$name}', '{$venue_id}', '{$date}', {$time}, {$user_id}, {$cost}, {$is_all_ages}, '{$other_bands}', '{$notes}'," . DEFAULT_ACTIVE . ")");
     if ($r) {
         return Show::get(mysql_insert_id());
     } else {
         return Error::MySQL();
     }
 }
开发者ID:pinecreativelabs,项目名称:audition,代码行数:56,代码来源:shows.php

示例11: include_class

 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with phpGroupWare; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License
 * @internal Development of this application was funded by http://www.bergen.kommune.no/bbb_/ekstern/
 * @package property
 * @subpackage import
 * @version $Id$
 */
/**
 * @package property
 */
include_class('property', 'cron_parent', 'inc/cron/');
class reset_workorder_cached_budget extends property_cron_parent
{
    function __construct()
    {
        parent::__construct();
        $this->function_name = get_class($this);
        $this->sub_location = lang('workorder');
        $this->function_msg = 'reset workorder cached budget';
    }
    public function execute()
    {
        $orders = array();
        $sql = "SELECT DISTINCT fm_workorder.id as order_id" . " FROM fm_workorder " . " {$this->join} fm_workorder_budget ON fm_workorder.id = fm_workorder_budget.order_id" . " WHERE continuous = 1" . " ORDER BY fm_workorder.id";
        $this->db->query($sql, __LINE__, __FILE__);
        $_order_budget = array();
开发者ID:HaakonME,项目名称:porticoestate,代码行数:31,代码来源:reset_workorder_cached_budget.php

示例12: include_class

<?php

include 'base.php';
User::protect();
include_class('links');
$section = 'links';
$page_title = 'View/Edit Links';
$category_id = $_GET['category_id'] > 0 && is_numeric($_GET['category_id']) ? $_GET['category_id'] : 0;
$lc = LinkCategory::get($category_id);
if (!db::isError($l)) {
    switch ($_GET['task']) {
        case 'deactivate':
            $res = $lc->deactivate();
            if (!db::isError($res)) {
                header('Location: links.php?category_id=' . $category_id);
            }
            break;
        case 'activate':
            $res = $lc->activate();
            if (!db::isError($res)) {
                header('Location: links.php?category_id=' . $category_id);
            }
            break;
        case 'delete':
            $res = $lc->remove();
            if (!db::isError($res)) {
                header('Location: links.php');
            }
            break;
    }
}
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:links.php

示例13: include_class

<?php

include_class('db');
class UserList
{
    var $total = 0;
    function getTotal()
    {
        return $this->total;
    }
    function getAdminUsers()
    {
        $query = 'select Users.ID from Users left join Band_Members on (Users.ID = Band_Members.user_id) where level = "ADMIN" and Band_Members.user_id is null order by lastname asc';
        $r = mysql_query($query);
        if ($r) {
            $users = array();
            while ($row = mysql_fetch_assoc($r)) {
                $users[] = User::get($row['ID']);
            }
            return $users;
        } else {
            $e = new Error();
            $e->add(mysql_error());
            return $e;
        }
    }
    function getActiveAdminUsers()
    {
        $query = 'select Users.ID from Users left join Band_Members on (Users.ID = Band_Members.user_id) where level = "ADMIN"  and Band_Members.user_id is null and Users.is_active = 1 order by lastname asc';
        $r = mysql_query($query);
        if ($r) {
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:users.php

示例14: include_class

 function &instance($db_table_name)
 {
     include_class($db_table_name . '_db_table', '/core/db_tables/');
     $obj =& instantiate_object($db_table_name . '_db_table');
     return $obj;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:6,代码来源:db_table_factory.class.php

示例15: include_class

<?php

include 'base.php';
User::protect();
include_class('tours');
$section = 'tours';
if ($_POST['submit']) {
    // add news entry
    $tour = Tour::add($_POST);
    if (!db::isError($tour)) {
        header('Location: tour_edit.php?id=' . $tour->getID());
    }
}
$page_title = 'Add Tour';
$calendar = true;
$editors = array('description');
include 'layout/header.php';
?>

<div id="breadcrumb">
	<a href="index.php">Audition &#62;</a>
	<a href="live.php">Live &#62;</a>
	<a href="tours.php">Tours &#62;</a>
</div>

<?php 
if (User::isAdmin()) {
    if (db::isError($tour)) {
        $tour->outputList();
    }
    ?>
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:tour_add.php


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