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


PHP ARC2_Class::__init方法代码示例

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


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

示例1:

 function __init()
 {
     parent::__init();
     $this->store = $this->caller;
     $this->keep_time_limit = $this->v('keep_time_limit', 0, $this->a);
     $this->limit = 100000;
 }
开发者ID:johnulist,项目名称:arc2,代码行数:7,代码来源:ARC2_StoreDumper.php

示例2: foreach

 function __init()
 {
     parent::__init();
     foreach ($this->ns as $k => $v) {
         $this->nsp[$v] = $k;
     }
 }
开发者ID:scor,项目名称:rdf,代码行数:7,代码来源:ARC2_RDFSerializer.php

示例3: array

 function __init()
 {
     parent::__init();
     $this->max_operations = $this->v('sparqlscript_max_operations', 0, $this->a);
     $this->max_queries = $this->v('sparqlscript_max_queries', 0, $this->a);
     $this->env = array('endpoint' => '', 'vars' => array(), 'output' => '', 'operation_count' => 0, 'query_count' => 0);
 }
开发者ID:jhigman,项目名称:TalisRdfEditor,代码行数:7,代码来源:ARC2_SPARQLScriptProcessor.php

示例4:

 function __init()
 {
     parent::__init();
     $this->store = $this->caller;
     ARC2::inc('Reader');
     $this->reader = new ARC2_Reader($this->a, $this);
 }
开发者ID:ilovenetwork,项目名称:Tools,代码行数:7,代码来源:ARC2_TestHandler.php

示例5:

 function __init()
 {
     /* db_con */
     parent::__init();
     $this->xsd = 'http://www.w3.org/2001/XMLSchema#';
     $this->allow_extension_functions = $this->v('store_allow_extension_functions', 1, $this->a);
     $this->handler_type = '';
 }
开发者ID:harbulot,项目名称:foafme,代码行数:8,代码来源:ARC2_StoreQueryHandler.php

示例6: array

 function __init()
 {
     parent::__init();
     $this->uri = '';
     $this->index = array();
     $this->fetched = array();
     $this->store = '';
 }
开发者ID:austinvernsonger,项目名称:scalar,代码行数:8,代码来源:ARC2_Resource.php

示例7: array

 function __init()
 {
     /* db_con */
     parent::__init();
     $this->table_lock = 0;
     $this->triggers = $this->v('store_triggers', array(), $this->a);
     $this->queue_queries = $this->v('store_queue_queries', 0, $this->a);
     $this->is_win = strtolower(substr(PHP_OS, 0, 3)) == 'win' ? true : false;
 }
开发者ID:harbulot,项目名称:foafme,代码行数:9,代码来源:ARC2_Store.php

示例8: array

 function __init()
 {
     /* proxy_host, proxy_port, proxy_skip, http_accept_header, http_user_agent_header, max_redirects, reader, skip_dupes */
     parent::__init();
     $this->a['format'] = $this->v('format', false, $this->a);
     $this->triples = array();
     $this->t_count = 0;
     $this->added_triples = array();
     $this->skip_dupes = $this->v('skip_dupes', false, $this->a);
     $this->bnode_prefix = $this->v('bnode_prefix', 'arc' . substr(md5(uniqid(rand())), 0, 4) . 'b', $this->a);
     $this->bnode_id = 0;
 }
开发者ID:harbulot,项目名称:foafme,代码行数:12,代码来源:ARC2_RDFParser.php

示例9: substr

 function __init()
 {
     parent::__init();
     $this->nodes = $this->caller->getNodes();
     $this->index = $this->caller->getNodeIndex();
     $this->bnode_prefix = $this->v('bnode_prefix', 'arc' . substr(md5(uniqid(rand())), 0, 4) . 'b', $this->a);
     $this->bnode_id = 0;
     $this->keep_cdata_ws = $this->v('keep_cdata_whitespace', 0, $this->a);
     if (!isset($this->a['ns'])) {
         $this->a['ns'] = array('rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#');
     }
 }
开发者ID:ilovenetwork,项目名称:Tools,代码行数:12,代码来源:ARC2_RDFExtractor.php

示例10: array

 function __init()
 {
     /* reader */
     parent::__init();
     $this->encoding = $this->v('encoding', false, $this->a);
     $this->state = 0;
     $this->x_base = $this->base;
     $this->xml = 'http://www.w3.org/XML/1998/namespace';
     $this->rdf = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
     $this->nsp = array($this->xml => 'xml', $this->rdf => 'rdf');
     $this->allowCDataNodes = 1;
     $this->target_encoding = '';
 }
开发者ID:jhigman,项目名称:TalisRdfEditor,代码行数:13,代码来源:ARC2_LegacyXMLParser.php

示例11: Reader

 function __init()
 {
     /* inc_path, proxy_host, proxy_port, proxy_skip, http_accept_header, http_user_agent_header, max_redirects */
     parent::__init();
     $this->http_method = 'GET';
     $this->message_body = '';
     $this->http_accept_header = $this->v('http_accept_header', 'Accept: application/rdf+xml; q=0.9, */*; q=0.1', $this->a);
     $this->http_user_agent_header = $this->v('http_user_agent_header', 'User-Agent: ARC Reader (http://arc.semsol.org/)', $this->a);
     $this->http_custom_headers = $this->v('http_custom_headers', '', $this->a);
     $this->max_redirects = $this->v('max_redirects', 3, $this->a);
     $this->format = $this->v('format', false, $this->a);
     $this->redirects = array();
     $this->stream_id = '';
 }
开发者ID:VUW-SIM-FIS,项目名称:emiemi,代码行数:14,代码来源:ARC2_Reader.php

示例12: Reader

 function __init()
 {
     /* inc_path, proxy_host, proxy_port, proxy_skip, http_accept_header, http_user_agent_header, max_redirects */
     parent::__init();
     $this->http_method = $this->v('http_method', 'GET', $this->a);
     $this->message_body = $this->v('message_body', '', $this->a);
     $this->http_accept_header = $this->v('http_accept_header', 'Accept: application/rdf+xml; q=0.9, text/turtle; q=0.8, */*; q=0.1', $this->a);
     $this->http_user_agent_header = $this->v('http_user_agent_header', 'User-Agent: ARC Reader (http://arc.semsol.org/)', $this->a);
     $this->http_custom_headers = $this->v('http_custom_headers', '', $this->a);
     $this->max_redirects = $this->v('max_redirects', 3, $this->a);
     $this->format = $this->v('format', false, $this->a);
     $this->redirects = array();
     $this->stream_id = '';
     $this->timeout = $this->v('reader_timeout', 30, $this->a);
     $this->response_headers = array();
     $this->digest_auth = 0;
     $this->auth_infos = $this->v('reader_auth_infos', array(), $this->a);
 }
开发者ID:GettyScholarsWorkspace,项目名称:GettyScholarsWorkspace,代码行数:18,代码来源:ARC2_Reader.php

示例13: array

 function __init()
 {
     parent::__init();
     $this->graph = ARC2::getComponent('PMJ_ResourceGraphPlugin', array('ns' => $this->ns));
     if (!isset($this->currURI)) {
         $this->currURI = isset($this->a['currURI']) ? $this->expandPName($this->a['currURI']) : false;
     }
     if (!isset($this->revProp)) {
         $this->revProp = isset($this->a['revProp']) ? $this->expandPName($this->a['revProp']) : false;
     }
     if (!isset($this->revURI)) {
         $this->revURI = isset($this->a['revURI']) ? $this->expandPName($this->a['revURI']) : false;
     }
     $this->storeGraphURI = isset($this->a['storeGraphURI']) ? $this->expandPName($this->a['storeGraphURI']) : '';
     $this->subNegotiators = array();
     $this->store = isset($this->a['store']) ? $this->a['store'] : false;
     $this->selector = isset($this->a['selector']) ? $this->a['selector'] : NegotiatorSelector::getInstance();
     $this->source = isset($this->a['source']) ? $this->a['source'] : false;
     $this->ns['rdfs'] = 'http://www.w3.org/2000/01/rdf-schema#';
     $this->ns['rdf'] = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
     $this->ns['xsd'] = "http://www.w3.org/2001/XMLSchema#";
 }
开发者ID:patrickmj,项目名称:Rubrick,代码行数:22,代码来源:negotiators_DataNegotiatorPlugin.php

示例14:

 function __init()
 {
     /* db_con */
     parent::__init();
     $this->store = $this->caller;
 }
开发者ID:OlivierGeorgeon,项目名称:ernest-trace-player,代码行数:6,代码来源:ARC2_StoreHelper.php

示例15: array

 function __init()
 {
     parent::__init();
     $this->headers = array('http' => 'HTTP/1.1 200 OK');
 }
开发者ID:jonphipps,项目名称:Metadata-Registry,代码行数:5,代码来源:ARC2_DataWikiPlugin.php


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