Get loaded object. If object is not loaded yet, then load it and save it
locally. Otherwise, just return the pre-loaded object.

@return mixed Loaded object
173422
public function get()
    {
        if ($this->adminUser instanceof AdminUserInterface) {
            return $this->adminUser;
        }

        $token = $this->tokenStorage instanceof TokenStorageInterface
            ? $this->tokenStorage->getToken()
            : null;

        $this->adminUser = ($token instanceof UsernamePasswordToken)
            ? $token->getUser()
            : $this
                ->adminUserFactory
                ->create();

        return $this->adminUser;
    }
29886
public function getModel()
    {
        if (!isset($this->_pk))
            throw new InvalidCallException('Invalid usage. You must call this method only if load method succeeds');

        if (isset($this->_model))
            return $this->_model;

        $class = $this->modelClass;
        return $this->_model = $class::findOne($this->_pk);
    }
936104
public function current()
    {
        $data = $this->dataSource->current();
        $object = null;

        if (is_array($data)) {
            $object = $this->getPrototypeStrategy()->createObject($this->getObjectPrototype(), $data);
            $this->getHydrator()->hydrate($data, $object);
        }

        return $object;
    }
697936
public function current()
    {
    	$data = $this->dbi->current();
		$class_name = $this->__class_name;
		$object = new $class_name($data['id']);
//		$object->set_id($data['id']);
		$object->data = $data;
		$object->set_is_loaded(true);
		return $object;
    }
1049525
public function getQueueObject()
    {
        if ($this->jQueueObject === null) {
            $this->jQueueObject = Queue::get('job_' . $this->getJobHandle(), array('timeout' => 1));
        }

        return $this->jQueueObject;
    }
1045355
public function getUser() {
    if ($this->user !== null) {
      // we've already determined this and cached the value.
      return $this->user;
    }

    return $this->user = $this->getUserFromAvailableData();
  }
422054
public function getObject()
    {
        //security check
        if (!isset($this->_object)) {
            $condition = array($this->_property => $this->_value);
            $repository = AnDomain::getRepository($this->getIdentifier());

            //check if an entity exiting in the repository with $condition
            if ($data = $repository->find($condition, false)) {
                $this->_object = $data;

                return $this->_object;
            }

            //now time to fetch the object from the database
            //but lets grab all the similar entities all together
            $handle = $this->getIdentifier().$this->_property;
            $values = isset(self::$_values[$handle]) ? self::$_values[$handle] : array();

            if (empty($values)) {
                return;
            }

            $values = AnHelperArray::unique($values);
            $query = $repository->getQuery();
            AnDomainQueryHelper::applyFilters($query, $this->_relationship->getQueryFilters());
            $query->where(array($this->_property => $values));
            $entities = $repository->fetchSet($query);

            //the object must have been fetched with the set
            //in the previous line
            //if the object is still not fetched, then the object
            //doesn't exists in the databse
            $this->_object = $repository->find($condition, false);

            if (!$this->_object) {
                //lets cache the null result to prevent re-fetching
                //the same result
                $query = $repository->getQuery()->where($condition)->limit(1);

                if ($repository->hasBehavior('cachable')) {
                    $repository->emptyCache($query);
                }

                $this->_object = false;

                //if it's a required one-to-one relationship
                //then instantaite a new entity if the entity doesn't exists
                if ($this->_relationship->isOneToOne()) {
                    if ($this->_relationship->isRequired()) {
                        $this->_object = $repository->getEntity(array(
                            'data' => array($this->_property => $this->_value),
                        ));
                    }
                }
            }

            unset(self::$_values[$handle]);
        }

        return $this->_object;
    }
1160110
public function getObject()
    {
        if ($this->_object === null) {
            $this->_object = $this->adminProperty->createObject($this->value);
        }
        
        return $this->_object;
    }
693486
public function getPayloadObject()
    {
        if (!isset($this->_dataObject) && !empty($this->payload)) {
            $this->_dataObject = unserialize($this->payload);
            $this->_dataObject->model = $this;
        }

        return $this->_dataObject;
    }
25840
function admin_object()
	{
		if($this->__havefc())
			return $this->__lastc();

		$admin_main_class = $this->main_class();

		return $this->__setc(object_load($admin_main_class, $this->id()));
	}
1205317
public function toObject()
    {
        $obj = new stdClass();

        if (! empty($this->attributes)) {
            foreach ($this->attributes as $key => $value) {
                $obj->$key = $value;
            }
        }

        return $obj;
    }
22445
function object()
    {
        if ( $this->hasContentObject() )
        {
            return $this->ContentObject;
        }
        $contentobject_id = $this->attribute( 'contentobject_id' );
        $obj = eZContentObject::fetch( $contentobject_id );
        if ( $this->CurrentLanguage )
        {
            $obj->setCurrentLanguage( $this->CurrentLanguage );
        }
        $this->ContentObject = $obj;
        return $obj;
    }
38810
public function getLoaded()
    {
        $oLoaded                 = new \stdClass();
        $oLoaded->css            = $this->aCss;
        $oLoaded->cssInline      = $this->aCssInline;
        $oLoaded->js             = $this->aJs;
        $oLoaded->jsInlineHeader = $this->aJsInlineHeader;
        $oLoaded->jsInlineFooter = $this->aJsInlineFooter;

        return $oLoaded;
    }
801991
public function getPlaceableObject()
    {
        if ($this->placeableobject) {
            return $this->placeableobject;
        }
        $instance = Injector::inst()->get($this->ObjectClassName);
        $this->placeableobject = $instance;
        return $instance;
    }
1022993
public function get()
	{
		if( $this->object === null )
		{
			$extDirs = (array) $this->container->getParameter( 'aimeos_shop.extdir' );
			$this->object = new \Aimeos\Bootstrap( $extDirs, false );
		}

		return $this->object;
	}
1350041
public function getOrder()
    {
        if ($this->oxorderarticles__oxorderid->value) {
            // checking if the object already exists in the cache
            if (isset($this->_aOrderCache[$this->oxorderarticles__oxorderid->value])) {
                // returning the cached object
                return $this->_aOrderCache[$this->oxorderarticles__oxorderid->value];
            }
            // creatina new order object and trying to load it
            $oOrder = oxNew(\OxidEsales\Eshop\Application\Model\Order::class);
            if ($oOrder->load($this->oxorderarticles__oxorderid->value)) {
                return $this->_aOrderCache[$this->oxorderarticles__oxorderid->value] = $oOrder;
            }
        }

        return null;
    }
865361
private static function getLoader()
    {
        if (self::isNull(self::$loader)) {
            self::$loader = Loader::getImageLoader(Image::getConfig());
        }

        return self::$loader;
    }