public function getFormatBySlug($sSlug)
    {
        foreach ($this->aFormats as $oFormat) {
            if ($sSlug === $oFormat->slug) {
                return $oFormat;
            }
        }

        return null;
    }
public function getFormatBySlug($sSlug)
    {
        foreach ($this->aFormats as $oFormat) {
            if ($sSlug === $oFormat->slug) {
                return $oFormat;
            }
        }

        return null;
    }
public function getFormatBySlug ( $ sSlug ) { foreach ( $ this -> aFormats as $ oFormat ) { if ( $ sSlug === $ oFormat -> slug ) { return $ oFormat ; } } return null ; }
Returns a specific format by its slug

@param $sSlug

@return \stdClass|null
Returns a specific format by its slug