src/UI/Lessons.php
public function getModuleByAnchor($anchor)
    {
        foreach($this->lessons->modules as $mod) {
            if ( $mod->anchor == $anchor) return $mod;
        }
        return null;
    }
public function getModuleByAnchor($anchor)
    {
        foreach($this->lessons->modules as $mod) {
            if ( $mod->anchor == $anchor) return $mod;
        }
        return null;
    }
public function getModuleByAnchor ( $ anchor ) { foreach ( $ this -> lessons -> modules as $ mod ) { if ( $ mod -> anchor == $ anchor ) return $ mod ; } return null ; }
Get a module associated with an anchor
Get a module associated with an anchor