/** * Create a new instance of this class * @param string uri URI of the resource * @param Credentials credentials the credentials to use for authenticated requests (optional) */ function __construct($uri, $credentials = null, $request_factory = null) { $this->uri = $uri; $this->credentials = $credentials; $this->request_factory = $request_factory; parent::__construct(); }
function __construct($a = '') { parent::__construct(); $this->a = $a; /* parse the before and after graphs if necessary*/ foreach (array('before', 'after', 'before_rdfxml', 'after_rdfxml') as $rdf) { if (!empty($a[$rdf])) { if (is_string($a[$rdf])) { $parser = ARC2::getRDFParser(); $parser->parse(false, $a[$rdf]); $a[$rdf] = $parser->getSimpleIndex(0); } else { if (is_array($a[$rdf]) and isset($a[$rdf][0]) and isset($a[$rdf][0]['s'])) { //triples array $ser = ARC2::getTurtleSerializer(); $turtle = $ser->getSerializedTriples($a[$rdf]); $parser = ARC2::getTurtleParser(); $parser->parse(false, $turtle); $a[$rdf] = $parser->getSimpleIndex(0); } } $nrdf = str_replace('_rdfxml', '', $rdf); $this->{$nrdf} = $a[$rdf]; } } $this->__init(); }
public function __construct() { parent::__construct(); $this->aSourceNodes = array(); $this->aSinkNodes = array(); $this->aRedundancySettings = array(); $this->aContextSearches = array(); }
public function __construct() { parent::__construct(); $this->aTempImages = array(); $this->aSourceObjects = array(); $this->aSinkObjects = array(); }