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


PHP Report::create_e方法代码示例

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


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

示例1: Localize

require_once "../shared/common.php";
$tab = "reports";
$nav = "reportcriteria";
require_once "../shared/logincheck.php";
require_once "../classes/Report.php";
require_once "../classes/Localize.php";
$loc = new Localize(OBIB_LOCALE, $tab);
if (isset($_SESSION['postVars']['type'])) {
    $type = $_SESSION['postVars']['type'];
} elseif (isset($_REQUEST['type'])) {
    $type = $_REQUEST['type'];
} else {
    header('Location: ../reports/index.php');
    exit(0);
}
list($rpt, $err) = Report::create_e($type);
if ($err) {
    header('Location: ../reports/index.php');
    exit(0);
}
Nav::node('reportcriteria', 'Report Criteria');
include "../shared/header.php";
#****************************************************************************
#*  getting form vars
#****************************************************************************
require "../shared/get_form_vars.php";
echo '<h1>' . $loc->getText($rpt->title()) . '</h1>';
if (isset($_REQUEST['msg'])) {
    echo '<p><font class="error">' . H($_REQUEST['msg']) . '</font></p>';
}
?>
开发者ID:vishnu35,项目名称:Granthalay,代码行数:31,代码来源:report_criteria.php

示例2: Localize

$helpPage = "reports";
include "../shared/logincheck.php";
require_once "../classes/Report.php";
require_once "../classes/Localize.php";
$loc = new Localize(OBIB_LOCALE, $tab);
$navLoc = new Localize(OBIB_LOCALE, 'navbars');
define("REPORT_DEFS_DIR", "../reports/defs");
#****************************************************************************
#*  Read report definitions
#****************************************************************************
$reports = array();
$errors = array();
if ($handle = opendir(REPORT_DEFS_DIR)) {
    while (($file = readdir($handle)) !== false) {
        if (preg_match('/^([^._][^.]*)\\.(rpt|php)$/', $file, $m)) {
            list($rpt, $err) = Report::create_e($m[1]);
            if (!$err) {
                if (!isset($reports[$rpt->category()])) {
                    $reports[$rpt->category()] = array();
                }
                $reports[$rpt->category()][$rpt->type()] = $loc->getText($rpt->title());
            } else {
                $errors[] = $err;
            }
        }
    }
    closedir($handle);
}
ksort($reports);
foreach (array_keys($reports) as $k) {
    asort($reports[$k]);
开发者ID:Giordano-Bruno,项目名称:GiordanoBruno,代码行数:31,代码来源:index.php

示例3: variant_el

 function variant_el($newParams, $newName = NULL)
 {
     assert('is_array($this->cache["params"])');
     if ($newName === NULL) {
         $newName = $this->name;
     }
     list($rpt, $err) = Report::create_e($this->cache['type'], $newName);
     if ($err) {
         Fatal::internalError("Unexpected report creation error: " . $err->toStr());
     }
     $params = new Params();
     $params->loadDict($this->cache['params']);
     $errs = $params->load_el($rpt->rpt->paramDefs(), $newParams);
     if (!empty($errs)) {
         return array(NULL, $errs);
     }
     $errs = $rpt->_init_el($params);
     if (!empty($errs)) {
         return array(NULL, $errs);
     }
     return array($rpt, array());
 }
开发者ID:uniedpa,项目名称:espabiblio,代码行数:22,代码来源:Report.php

示例4: echolink

            echo ' ';
        }
    }
    if ($currPage < $pageCount) {
        echolink($currPage + 1, $loc->getText("Next&raquo;"));
        echo ' ';
    }
}
if (!$_REQUEST['type']) {
    header('Location: ../reports/index.php');
    exit(0);
}
if ($_REQUEST['type'] == 'previous') {
    $rpt = Report::load('Report');
} else {
    list($rpt, $err) = Report::create_e($_REQUEST['type'], 'Report');
    if ($err) {
        $rpt = NULL;
    }
}
if (!$rpt) {
    header('Location: ../reports/index.php');
    exit(0);
}
if ($_REQUEST['type'] == 'previous') {
    if (isset($_REQUEST['rpt_order_by'])) {
        list($rpt, $errs) = $rpt->variant_el(array('order_by' => $_REQUEST['rpt_order_by']));
        assert('empty($errs)');
    }
} else {
    $errs = $rpt->initCgi_el();
开发者ID:vishnu35,项目名称:Granthalay,代码行数:31,代码来源:run_report.php


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