Getter for retrieving the stereotype from a DIA object structure.

@param \DOMElement $diaObject
@return boolean
160856
public function getStereoType(\DOMElement $diaObject)
    {
        $xpath = $diaObject->getNodePath() . '/dia:attribute[@name="stereotype"]/dia:string';
        $nodeList = $this->engine->query($xpath);

        if ($nodeList->length == 1) {
            $stereoType = str_replace('#', '', $nodeList->item(0)->nodeValue);

            return $stereoType;
        }
        return false;
    }
589883
public function equalsTo(Object $object)
    {
        if (!$this->sameTypeAs($object)) {
            throw new NotMatchTypeException($this);
        }

        return $this->getId()->id() === $object->getId()->id();
    }
1088260
public function getObjectIdentity($object)
    {
        foreach ($this->configurations as $config) {
            if ($config->isRelevant($object)) {
                return $config->getObjectIdentity();
            }
        }

        return null;
    }
1355336
public static function isScalar($object, $native = false)
    {
        return $native
            ? is_scalar($object)
            : is_scalar($object) || $object instanceof \SplType;
    }
1236856
public function retriveLayerObjects()
    {
        $classes = [];
        foreach ($this->engine->query('//dia:diagram/dia:layer') as $layer) {
            if ($layer->nodeName == 'dia:layer') {
                foreach ($layer->childNodes as $elementObject) {
                    if ($elementObject->nodeName == 'dia:object') {
                        foreach ($elementObject->childNodes as $childNodesAttributes) {
                            if ($childNodesAttributes->nodeName == 'dia:attribute' &&
                                    $childNodesAttributes->attributes->getNamedItem("name")->nodeValue == 'name'
                            ) {
                                $name = str_replace(['#'], [''], $childNodesAttributes->childNodes->item(1)->nodeValue);

                                $classes[$name] = $elementObject;
                            }
                        }
                    }
                }
            }
        }

        return $classes;
    }
1007345
public function getUuid(bool $asObject = false)
    {
        if (true === $asObject) {
            return UuidIdentifier::fromString($this->uuid);
        }

        return $this->uuid;
    }
860663
function (domObject) {
                    var selector = this._selector;
                    if (selector) {
                        if (this._globalSelector) {
                            return document.querySelector(selector);
                        } else {
                            return domObject.querySelector(selector);
                        }
                    }
                    return undefined;
                }
59520
public function equalsTo(Object $object)
    {
        if (!$this->sameTypeAs($object)) {
            throw new NotMatchTypeException($this);
        }

        return $this->start()->equalsTo($object->start()) && $this->end()->equalsTo($object->end());
    }
1370603
public function isLabelSet($object)
    {
        $this->reflectionProperty->setAccessible(true);
        $v = $this->reflectionProperty->getValue($object);
        if (true === $v) {
            return true;
        }

        return false;
    }
1342096
public function laterThan($object)
    {
        if (!$this->sameTypeAs($object)) {
            throw new NotMatchTypeException($this);
        }

        return ($this->year() > $object->year()) ||
        ($this->year() >= $object->year() && $this->month() > $object->month()) ||
        ($this->year() >= $object->year() && $this->month() >= $object->month() && $this->day() > $object->day());
    }
638684
public static function fromContentObject( eZContentObject $contentObject )
    {
        $set = new ezpContentFieldSet();
        $languages = $contentObject->availableLanguages();
        foreach( $languages as $language )
        {
            $set->childrenFieldSets[$language] =
                ezpContentFieldSet::fromDataMap( $contentObject->fetchDataMap( false, $language ) );
        }

        // this sequence is REALLY ugly
        reset( $languages );
        $set->setActiveLanguage( current( $languages ) );

        return $set;
    }
614914
private function supports($object)
    {
        if ($object instanceof ObjectCollection) {
            return $object->isInstanceOf($this->getClass());
        } else {
            //doctrine sends proxy so we have to do the check with the instanceof operator
            $rc = new \ReflectionClass($this->getClass());
            $toCheck = $rc->newInstanceWithoutConstructor();

            return $object instanceof $toCheck;
        }
    }
1232788
function contentObjectVersionObject( $asObject = true )
    {
        $version = eZContentObjectVersion::fetchVersion( $this->ContentObjectVersion, $this->ContentObjectID, $asObject );
        if ( $this->CurrentLanguage != false )
        {
            $version->CurrentLanguage = $this->CurrentLanguage;
        }
        return $version;
    }
195898
static function isUserObject( $contentObject )
    {
        if ( !$contentObject )
        {
            return false;
        }

        eZDataType::loadAndRegisterType( 'ezuser' );

        $contentClass = $contentObject->attribute( 'content_class' );
        $classAttributeList = $contentClass->fetchAttributes();
        foreach( $classAttributeList as $classAttribute )
        {
            if ( $classAttribute->attribute( 'data_type_string' ) == eZUserType::DATA_TYPE_STRING )
                return true;
        }

        return false;
    }
230062
public function pegaValoresAtributoDoObjeto($object)
    {
        $nomeAtributos   = self::pegaAtributosDoObjeto($object);
        $valAtrFinal     = [];
        $reflectionClass = new ReflectionClass($object);
        
        $iterator = 0;
        $limit    = count($nomeAtributos);
        for ($iterator; $iterator < $limit; $iterator++) {
            $reflectionProperty = $reflectionClass->getProperty($nomeAtributos[$iterator]);
            $reflectionProperty->setAccessible(true);
            $valAtrFinal[$iterator] = $reflectionProperty->getValue($object);
        }

        return $valAtrFinal;
    }
817444
function genderVariables($object) {
        if (strstr($this->conditions, "@gender") == false)
            return array();

        if ($object == null)
            return array("@gender" => "unknown");

        $context = $this->language_case->language->contextByKeyword("gender");

        if ($context == null)
            return array("@gender" => "unknown");

        return $context->vars($object);
    }
643731
public function retornaValoresAtributosClassesMaes($object)
    {
        if (self::verificaSeEClasseFilha($object)) {
            
            $nomeClassesMae = self::retornaClassesMaes($object);
            
            $valores  = [];
            $iterator = 0;
            $limit    = count($nomeClassesMae);
            for ($iterator; $iterator < $limit; $iterator++) {
                $valores[$iterator] = self::pegaValoresAtributoDoObjeto(
                    $nomeClassesMae[$iterator]
                );
            }

            return $valores;
        }

        return false;
    }