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


PHP Part::get_visible方法代码示例

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


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

示例1: HTML

}
/********************************************************************************
 *
 *   Initialize Objects
 *
 *********************************************************************************/
$html = new HTML($config['html']['theme'], $config['html']['custom_css'], 'Bauteil bearbeiten');
try {
    $database = new Database();
    $log = new Log($database);
    $current_user = new User($database, $current_user, $log, 1);
    // admin
    if (!$is_new_part) {
        $part = new Part($database, $current_user, $log, $part_id);
        ///@todo: remove this line:
        $new_visible = $part->get_visible();
    }
    $root_storelocation = new Storelocation($database, $current_user, $log, 0);
    $root_category = new Category($database, $current_user, $log, 0);
    $root_manufacturer = new Manufacturer($database, $current_user, $log, 0);
    $root_footprint = new Footprint($database, $current_user, $log, 0);
    $root_supplier = new Supplier($database, $current_user, $log, 0);
    $root_attachement_type = new AttachementType($database, $current_user, $log, 0);
    if ($orderdetails_id > 0) {
        $orderdetails = new Orderdetails($database, $current_user, $log, $orderdetails_id);
    } else {
        $orderdetails = NULL;
    }
    if ($pricedetails_id > 0) {
        $pricedetails = new Pricedetails($database, $current_user, $log, $pricedetails_id);
    } else {
开发者ID:AlexanderS,项目名称:Part-DB,代码行数:31,代码来源:edit_part_info.php

示例2: array

$html->use_javascript(array('validatenumber', 'popup'));
// global settings
$html->set_variable('use_modal_popup', $config['popup']['modal'], 'boolean');
$html->set_variable('popup_width', $config['popup']['width'], 'integer');
$html->set_variable('popup_height', $config['popup']['height'], 'integer');
if (!$fatal_error) {
    try {
        // part attributes
        $html->set_variable('pid', $part->get_id(), 'integer');
        $html->set_variable('name', $part->get_name(), 'string');
        $html->set_variable('manufacturer_product_url', $part->get_manufacturer_product_url(), 'string');
        $html->set_variable('description', $part->get_description(), 'string');
        $html->set_variable('category_full_path', $part->get_category()->get_full_path(), 'string');
        $html->set_variable('instock', $part->get_instock(), 'integer');
        $html->set_variable('mininstock', $part->get_mininstock(), 'integer');
        $html->set_variable('visible', $part->get_visible(), 'boolean');
        $html->set_variable('comment', nl2br($part->get_comment()), 'string');
        $html->set_variable('footprint_full_path', is_object($footprint) ? $footprint->get_full_path() : '-', 'string');
        $html->set_variable('footprint_filename', is_object($footprint) ? str_replace(BASE, BASE_RELATIVE, $footprint->get_filename()) : '', 'string');
        $html->set_variable('storelocation_full_path', is_object($storelocation) ? $storelocation->get_full_path() : '-', 'string');
        $html->set_variable('storelocation_is_full', is_object($storelocation) ? $storelocation->get_is_full() : false, 'boolean');
        $html->set_variable('manufacturer_full_path', is_object($manufacturer) ? $manufacturer->get_full_path() : '-', 'string');
        $html->set_variable('category_full_path', is_object($category) ? $category->get_full_path() : '-', 'string');
        $html->set_variable('auto_order_exists', $part->get_instock() < $part->get_mininstock(), 'boolean');
        $html->set_variable('manual_order_exists', $part->get_manual_order() && $part->get_instock() >= $part->get_mininstock(), 'boolean');
        // build orderdetails loop
        $orderdetails_loop = array();
        $row_odd = true;
        foreach ($all_orderdetails as $orderdetails) {
            $pricedetails_loop = array();
            foreach ($orderdetails->get_pricedetails() as $pricedetails) {
开发者ID:AlexanderS,项目名称:Part-DB,代码行数:31,代码来源:show_part_info.php


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