本文整理汇总了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;
}
示例2: foreach
function __init()
{
parent::__init();
foreach ($this->ns as $k => $v) {
$this->nsp[$v] = $k;
}
}
示例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);
}
示例4:
function __init()
{
parent::__init();
$this->store = $this->caller;
ARC2::inc('Reader');
$this->reader = new ARC2_Reader($this->a, $this);
}
示例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 = '';
}
示例6: array
function __init()
{
parent::__init();
$this->uri = '';
$this->index = array();
$this->fetched = array();
$this->store = '';
}
示例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;
}
示例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;
}
示例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#');
}
}
示例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 = '';
}
示例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 = '';
}
示例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);
}
示例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#";
}
示例14:
function __init()
{
/* db_con */
parent::__init();
$this->store = $this->caller;
}
示例15: array
function __init()
{
parent::__init();
$this->headers = array('http' => 'HTTP/1.1 200 OK');
}