src/Nodes/SVGNodeContainer.php
public function getContainerStyleByPattern($pattern)
    {
        if ($pattern === null) {
            return array();
        }

        $nodeStyles = array();
        if (!empty($this->parent)) {
            $nodeStyles = $this->parent->getContainerStyleByPattern($pattern);
        }

        $keys = $this->pregGrepStyle($pattern);
        foreach ($keys as $key) {
            $nodeStyles = array_merge($nodeStyles, $this->containerStyles[$key]);
        }

        return $nodeStyles;
    }
public function getContainerStyleByPattern($pattern)
    {
        if ($pattern === null) {
            return array();
        }

        $nodeStyles = array();
        if (!empty($this->parent)) {
            $nodeStyles = $this->parent->getContainerStyleByPattern($pattern);
        }

        $keys = $this->pregGrepStyle($pattern);
        foreach ($keys as $key) {
            $nodeStyles = array_merge($nodeStyles, $this->containerStyles[$key]);
        }

        return $nodeStyles;
    }
public function getContainerStyleByPattern ( $ pattern ) { if ( $ pattern === null ) { return array ( ) ; } $ nodeStyles = array ( ) ; if ( ! empty ( $ this -> parent ) ) { $ nodeStyles = $ this -> parent -> getContainerStyleByPattern ( $ pattern ) ; } $ keys = $ this -> pregGrepStyle ( $ pattern ) ; foreach ( $ keys as $ key ) { $ nodeStyles = array_merge ( $ nodeStyles , $ this -> containerStyles [ $ key ] ) ; } return $ nodeStyles ; }
Returns style rules for the given node id + class pattern.

@param string $pattern The node's pattern.

@return string[] The style rules to be applied.
Returns style rules for the given node id + class pattern .