src/pods/access.php
public function offsetGet($offset) {
		if ( $this->offsetExists( $offset ) ) {
			return parent::offsetGet( $offset );
		} else {
			if( 'id' == $offset || 'ID' == $offset ) {
				$_value = $this->pod->id();
			}else{
				$_value = $this->pod->field( $offset );
			}

			if( $_value ) {
				parent::offsetSet( $offset, $_value );
				return $_value;
			}
		}
	}
public function offsetGet($offset) {
		if ( $this->offsetExists( $offset ) ) {
			return parent::offsetGet( $offset );
		} else {
			if( 'id' == $offset || 'ID' == $offset ) {
				$_value = $this->pod->id();
			}else{
				$_value = $this->pod->field( $offset );
			}

			if( $_value ) {
				parent::offsetSet( $offset, $_value );
				return $_value;
			}
		}
	}
public function offsetGet ( $ offset ) { if ( $ this -> offsetExists ( $ offset ) ) { return parent :: offsetGet ( $ offset ) ; } else { if ( 'id' == $ offset || 'ID' == $ offset ) { $ _value = $ this -> pod -> id ( ) ; } else { $ _value = $ this -> pod -> field ( $ offset ) ; } if ( $ _value ) { parent :: offsetSet ( $ offset , $ _value ) ; return $ _value ; } } }
Get an offset if already set or traverse Pod and then set plus reutrn.

@since 0.1.0

@param mixed $offset Offset to get

@return mixed
Get an offset if already set or traverse Pod and then set plus reutrn .