public function __construct($consumer_key, $consumer_secret, $signature_method = OAUTH_SIG_METHOD_HMACSHA1, $auth_type = 0) { if (!class_exists('OAuth')) { return ar_error::raiseError('OAuth PECL extension not installed', ar_exceptions::CONFIGURATION_ERROR); } $oauth = new OAuth($consumer_key, $consumer_secret, $signature_method, $auth_type); $oauth->setRequestEngine(OAUTH_REQENGINE_STREAMS); parent::__construct($oauth); }
public function __construct($wrapped) { parent::__construct($wrapped); $this->__class = 'ar_connect_dbClient'; if ($this->wrapped instanceof PDOStatement) { $this->row = $this->wrapped->fetch(); if (!$this->row) { $this->row = null; } } $this->cursor = 0; }
public function __get($name) { $result = parent::__get($name); if (is_object($result)) { $result = new ar_cacheProxy($result, $this->cacheStore->subStore($name)); } return $result; }
public function __construct($data, $encoding, $type_name = '', $type_namespace = '', $node_name = '', $node_namespace = '') { $soapVar = new SoapVar($data, $encoding, $type_name, $type_namespace, $node_name, $node_namespace); parent::__construct($soapVar); }