lib/PHPPdf/Core/Node/Node.php
public function getRecurseAttribute($name)
    {
        $value = $this->getAttribute($name);
        $parent = $this->parent;
        if($value === null && $parent)
        {
            $value = $parent->getRecurseAttribute($name);
            $this->setAttribute($name, $value);
            return $value;
        }

        return $value;
    }
public function getRecurseAttribute($name)
    {
        $value = $this->getAttribute($name);
        $parent = $this->parent;
        if($value === null && $parent)
        {
            $value = $parent->getRecurseAttribute($name);
            $this->setAttribute($name, $value);
            return $value;
        }

        return $value;
    }
public function getRecurseAttribute ( $ name ) { $ value = $ this -> getAttribute ( $ name ) ; $ parent = $ this -> parent ; if ( $ value === null && $ parent ) { $ value = $ parent -> getRecurseAttribute ( $ name ) ; $ this -> setAttribute ( $ name , $ value ) ; return $ value ; } return $ value ; }
Getting attribute from this node or parents. If value of attribute is null,
this method is recurse invoking on parent.
Getting attribute from this node or parents . If value of attribute is null this method is recurse invoking on parent .