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


PHP ARC2::getIncPath方法代码示例

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


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

示例1: inc

 static function inc($f, $path = '')
 {
     $prefix = 'ARC2';
     if (preg_match('/^([^\\_]+)\\_(.*)$/', $f, $m)) {
         $prefix = $m[1];
         $f = $m[2];
     }
     $inc_path = $path ? $path : ARC2::getIncPath($f);
     $path = $inc_path . $prefix . '_' . urlencode($f) . '.php';
     if (file_exists($path)) {
         return include_once $path;
     }
     /* safe-mode hack */
     if (@(include_once $path)) {
         return 1;
     }
     /* try other path */
     if ($prefix != 'ARC2') {
         $path = $inc_path . strtolower($prefix) . '/' . $prefix . '_' . urlencode($f) . '.php';
         if (file_exists($path)) {
             return include_once $path;
         }
         /* safe-mode hack */
         if (@(include_once $path)) {
             return 1;
         }
     }
     return 0;
 }
开发者ID:p6,项目名称:arc2,代码行数:29,代码来源:ARC2.php

示例2: __init

 function __init()
 {
     /* base, time_limit */
     $this->inc_path = ARC2::getIncPath();
     $this->base = $this->v('base', ARC2::getScriptURI(), $this->a);
     $this->errors = array();
     $this->warnings = array();
 }
开发者ID:harbulot,项目名称:foafme,代码行数:8,代码来源:ARC2_Class.php

示例3: __init

 function __init()
 {
     /* base, time_limit */
     if (!$_POST && isset($GLOBALS['HTTP_RAW_POST_DATA'])) {
         parse_str($GLOBALS['HTTP_RAW_POST_DATA'], $_POST);
     }
     /* php5 bug */
     $this->inc_path = ARC2::getIncPath();
     $this->ns_count = 0;
     $this->nsp = array('http://www.w3.org/1999/02/22-rdf-syntax-ns#' => 'rdf');
     $this->used_ns = array('http://www.w3.org/1999/02/22-rdf-syntax-ns#');
     $this->ns = $this->v('ns', array(), $this->a);
     $this->base = $this->v('base', ARC2::getRequestURI(), $this->a);
     $this->errors = array();
     $this->warnings = array();
     $this->adjust_utf8 = $this->v('adjust_utf8', 0, $this->a);
     $this->max_errors = $this->v('max_errors', 25, $this->a);
 }
开发者ID:portokallidis,项目名称:Metamorphosis-Meducator,代码行数:18,代码来源:ARC2_Class.php

示例4: __init

 function __init()
 {
     /* base, time_limit */
     if (!$_POST && isset($GLOBALS['HTTP_RAW_POST_DATA'])) {
         parse_str($GLOBALS['HTTP_RAW_POST_DATA'], $_POST);
     }
     /* php5 bug */
     $this->inc_path = ARC2::getIncPath();
     $this->ns_count = 0;
     $rdf = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
     $this->nsp = array($rdf => 'rdf');
     $this->used_ns = array($rdf);
     $this->ns = array_merge(array('rdf' => $rdf), $this->v('ns', array(), $this->a));
     $this->base = $this->v('base', ARC2::getRequestURI(), $this->a);
     $this->errors = array();
     $this->warnings = array();
     $this->adjust_utf8 = $this->v('adjust_utf8', 0, $this->a);
     $this->max_errors = $this->v('max_errors', 25, $this->a);
     $this->has_pcre_unicode = @preg_match('/\\pL/u', 'test');
     /* \pL = block/point which is a Letter */
 }
开发者ID:johnulist,项目名称:arc2,代码行数:21,代码来源:ARC2_Class.php

示例5: testGetIncPath

 public function testGetIncPath()
 {
     $actual = ARC2::getIncPath('RDFParser');
     $this->assertStringEndsWith('parsers/', $actual, 'should create correct path');
     $this->assertTrue(is_dir($actual), 'should create correct pointer');
 }
开发者ID:neumann89,项目名称:FUB-xml-project6-2013,代码行数:6,代码来源:ARC2_Test.php


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