structure_files/SectionFile/SectionFile.php
public function getSectionByName($name)
    {
        foreach ($this->sections as $i => $sec) {
            if ($sec instanceof Section) {
                if ($sec->getName() == $name) {
                    return $sec;
                }
            }
        }
        return null;
    }
public function getSectionByName($name)
    {
        foreach ($this->sections as $i => $sec) {
            if ($sec instanceof Section) {
                if ($sec->getName() == $name) {
                    return $sec;
                }
            }
        }
        return null;
    }
public function getSectionByName ( $ name ) { foreach ( $ this -> sections as $ i => $ sec ) { if ( $ sec instanceof Section ) { if ( $ sec -> getName ( ) == $ name ) { return $ sec ; } } } return null ; }
Get section by section name, null for not exists.

@param string $name
@return Section|null
Get section by section name null for not exists .