code/GreenExtension.php
public function getModule()
    {
        if ($this->owner->DesignModule) {
            return Green::inst()->getDesignModule($this->owner->DesignModule);
        }

        return null;
    }
public function getModule()
    {
        if ($this->owner->DesignModule) {
            return Green::inst()->getDesignModule($this->owner->DesignModule);
        }

        return null;
    }
public function getModule ( ) { if ( $ this -> owner -> DesignModule ) { return Green :: inst ( ) -> getDesignModule ( $ this -> owner -> DesignModule ) ; } return null ; }
Gets the design module that the DataObject is mapped to

@return DesignModule|null
Gets the design module that the DataObject is mapped to