lib/MwbExporter/Model/Base.php
public function getDocument()
    {
        if (null === $this->document) {
            $parent = $this->parent;
            while (true) {
                if (!$parent) {
                    break;
                }
                if ($parent->parent) {
                    $parent = $parent->parent;
                } else {
                    break;
                }
            }
            $this->document = $parent;
        }

        return $this->document;
    }
public function getDocument()
    {
        if (null === $this->document) {
            $parent = $this->parent;
            while (true) {
                if (!$parent) {
                    break;
                }
                if ($parent->parent) {
                    $parent = $parent->parent;
                } else {
                    break;
                }
            }
            $this->document = $parent;
        }

        return $this->document;
    }
public function getDocument ( ) { if ( null === $ this -> document ) { $ parent = $ this -> parent ; while ( true ) { if ( ! $ parent ) { break ; } if ( $ parent -> parent ) { $ parent = $ parent -> parent ; } else { break ; } } $ this -> document = $ parent ; } return $ this -> document ; }
Get the document owner.

@return \MwbExporter\Model\Document
Get the document owner .