function setKey($key) {
		$this->cnxn->confirmTransaction('setKey');
		$currKey = $this->key;
		if (!is_null($currKey) && is_null($key)) {
			$this->cnxn->unregisterStructWithKey($this, $currKey);
		} else if (is_null($currKey) && !is_null($key)) {
			$this->cnxn->registerStructWithKey($this, $key);
		} else if ($currKey != $key) {
			$this->cnxn->unregisterStructWithKey($this, $currKey);
			$this->cnxn->registerStructWithKey($this, $key);
		}
		$this->key = $key;
	}
function setKey($key) {
		$this->cnxn->confirmTransaction('setKey');
		$currKey = $this->key;
		if (!is_null($currKey) && is_null($key)) {
			$this->cnxn->unregisterStructWithKey($this, $currKey);
		} else if (is_null($currKey) && !is_null($key)) {
			$this->cnxn->registerStructWithKey($this, $key);
		} else if ($currKey != $key) {
			$this->cnxn->unregisterStructWithKey($this, $currKey);
			$this->cnxn->registerStructWithKey($this, $key);
		}
		$this->key = $key;
	}
function setKey ( $ key ) { $ this -> cnxn -> confirmTransaction ( 'setKey' ) ; $ currKey = $ this -> key ; if ( ! is_null ( $ currKey ) && is_null ( $ key ) ) { $ this -> cnxn -> unregisterStructWithKey ( $ this , $ currKey ) ; } else if ( is_null ( $ currKey ) && ! is_null ( $ key ) ) { $ this -> cnxn -> registerStructWithKey ( $ this , $ key ) ; } else if ( $ currKey != $ key ) { $ this -> cnxn -> unregisterStructWithKey ( $ this , $ currKey ) ; $ this -> cnxn -> registerStructWithKey ( $ this , $ key ) ; } $ this -> key = $ key ; }
Subclasses can override to indicate the connection should look for a key when the struct is fetched.
Subclasses can override to indicate the connection should look for a key when the struct is fetched .