public function offsetGet($offset) {
        if($this->ResolveTraitOffsetExists($offset)) {
            return $this->ResolveTraitOffsetGet($offset);
        }

        if($this->AccessTraitOffsetExists($offset)) {
            return $this->AccessTraitOffsetGet($offset);
        }

        //return service if one exists with the requested name
        if($this->getLoops()->hasService($offset)) {
            return $this->getLoops()->getService($offset);
        }

        user_error("Undefined index: $offset", E_USER_NOTICE);
    }
public function offsetGet($offset) {
        if($this->ResolveTraitOffsetExists($offset)) {
            return $this->ResolveTraitOffsetGet($offset);
        }

        if($this->AccessTraitOffsetExists($offset)) {
            return $this->AccessTraitOffsetGet($offset);
        }

        //return service if one exists with the requested name
        if($this->getLoops()->hasService($offset)) {
            return $this->getLoops()->getService($offset);
        }

        user_error("Undefined index: $offset", E_USER_NOTICE);
    }
public function offsetGet ( $ offset ) { if ( $ this -> ResolveTraitOffsetExists ( $ offset ) ) { return $ this -> ResolveTraitOffsetGet ( $ offset ) ; } if ( $ this -> AccessTraitOffsetExists ( $ offset ) ) { return $ this -> AccessTraitOffsetGet ( $ offset ) ; } //return service if one exists with the requested name if ( $ this -> getLoops ( ) -> hasService ( $ offset ) ) { return $ this -> getLoops ( ) -> getService ( $ offset ) ; } user_error ( "Undefined index: $offset" , E_USER_NOTICE ) ; }
Gets a value either via the ResolveTrait, AccessTrait or the loops getService functionality

Values are checked in that order. If no value existed, a notice will be generated.

@param string $key The name of the service
@return mixed The requested service or NULL if not available
Gets a value either via the ResolveTrait AccessTrait or the loops getService functionality