Check if object is resolved

@param stdClass $obj object to check

@return boolean
334864
protected function resolved($obj)
	{
		if( ! is_object($obj) )
		{
			return true;
		}

		$data = get_object_vars($obj);
		if( count($data) == 2
			&& array_key_exists('id', $data)
			&& array_key_exists('type', $data)
		)
		{
			return false;
		}

		return true;
	}
827349
public static function cached_object($obj, $class = null)
	{
		$class = $class ?: get_called_class();
		$id    = (is_int($obj) or is_string($obj)) ? (string) $obj : $class::implode_pk($obj);

		$result = ( ! empty(static::$_cached_objects[$class][$id])) ? static::$_cached_objects[$class][$id] : false;

		return $result;
	}
1294187
public function equals($object): bool
    {
        if (get_class($object) !== get_class($this)) {
            return false;
        }

        return $this == $object;
    }
1018237
public function getIncluded($obj)
	{
		$includes = $this->getIncludes(true);
		$objectKey = $this->objectKey($obj);
		
		if(array_key_exists($objectKey, $includes))
		{
			return $includes[$objectKey];
		}

		return $obj;
	}
1165850
private function canCastToString($obj)
  {
    if (is_scalar($obj) || is_null($obj)) {
      return true;
    }
    return is_object($obj) && method_exists($obj, '__toString');
  }
128868
public function Equals($obj)
	{
		if ( ! $obj instanceof NotationValue )
		{
			return false;
		}

		/**
		 * @var NotationValue $other
		 */
		$other = $obj;
		return $this->LocalName == $other->LocalName && $this->NamespaceUri == $other->NamespaceUri;

	}
549460
private function resolveAttributes(stdClass $stdClass)
	{
		$attributes = array('action', 'hash', 'scope', 'data');

		$message = '';
		foreach ($attributes as $attribute) {
			$message .= $this->resolveAttribute($stdClass, $attribute);
		}

		return $message;
	}
1069432
private function applyTransaction($obj)
    {
        if(null !== $this->str_next_transaction) {
            $obj->setTransaction($this->str_next_transaction);
            $this->str_next_transaction = null;
        }
        return $obj;
    }
245352
protected static function resolveFacadeInstance($name)
		{
			if (is_object($name)) {
				return $name;
			}

			if (isset(static::$resolvedInstance[$name])) {
				return static::$resolvedInstance[$name];
			}

			return false;
		}
929973
public function Equals( $obj )
	{
		if ( ! $obj instanceof GMonthDayValue )
		{
			return false;
		}

		/**
		 * @var DateTimeValueBase $other
		 */
		$other = $obj;
		return $this->ToString( null ) == $other->ToString( null );
	}
912965
public function Equals( $obj )
	{
		if ( is_string( $obj ) )
		{
	        return $this->Value == $obj;
		}
		else if ( $obj instanceof AnyUriValue )
		{
			/**
			 * @var AnyUriValue $other
			 */
			$other = $obj;
	        return $this->Value == $other->Value;
		}

	    return false;
	}
304970
public function Equals( $obj )
	{
		if ( ! $obj instanceof FunctionDesc ) return false;
		/**
		 * @var FunctionDesc $other
		 */
		$other = $obj;
		return $this->name == $other->name && $this->ns == $other->ns && ( $this->arity == $other->arity || $this->arity == -1 || $other->arity == -1 );
	}
992406
private function resolveObject($code)
    {
        $value = $this->resolveCode($code);

        if (!\is_object($value)) {
            throw new RuntimeException('Unable to inspect a non-object');
        }

        return $value;
    }
284452
protected Object resolveObject(Object objectToResolve) {
        final String methodName = "resolveObject";
        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.entry(this,
                        cclass,
                        methodName,
                        new Object[] { objectToResolve });

        Object resolvedObject; // The resolved object we will return.
        if (objectToResolve instanceof Token) {
            resolvedObject = ((Token) objectToResolve).current();
        } else {
            resolvedObject = objectToResolve;
        }

        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.exit(this, cclass,
                       methodName,
                       new Object[] { resolvedObject });
        return resolvedObject;
    }
873873
public function preCacheTranslateObject(ModelObject $obj)
    {
        $plugin = $this->PluginService->getByID($obj->PluginID);
        if(empty($plugin) || !$plugin->isInstalled() || !$plugin->isEnabled())
            return null;

        if($obj->getXMLSchema() != '') {
            // resolve schema
            $schemaXML = "<?xml version='1.0'?><schema>";
            $schemaXML .= preg_replace('/\<\?xml([^\>\/]*)\>/', '' , $obj->getXMLSchema());
            $schemaXML .= "</schema>";

            try {
                $schema = $this->NodeSchemaParser->parse($schemaXML);
            }catch(Exception $e){
                throw new SchemaException("Unable to parse schema for aspect [{$obj->Slug}]:\n ". $e->getMessage());
            }

            $obj->setSchema($schema);
        } else {
            $obj->setSchema(new NodeSchema());
        }


        return $obj;
    }
841918
public function resolved($abstract)
    {
        $abstract = $this->normalize($abstract);
        if ($this->isAlias($abstract)) {
            $abstract = $this->getAlias($abstract);
        }
        return isset($this->resoleved[$abstract]) || isset($this->instances[$abstract]);
    }
291134
public function equals($obj)
    {
        if (gettype($obj) === 'object' && $obj instanceof self) {
            return $obj->getFirst() === $this->getFirst() && $obj->getSecond() === $this->getSecond();
        }

        return false;
    }