public function getByStatus($status)
    {
        $modules = [];

        foreach ($this->all() as $name => $module) {
            if ($module->isStatus($status)) {
                $modules[$name] = $module;
            }
        }

        return $modules;
    }
public function getByStatus($status)
    {
        $modules = [];

        foreach ($this->all() as $name => $module) {
            if ($module->isStatus($status)) {
                $modules[$name] = $module;
            }
        }

        return $modules;
    }
public function getByStatus ( $ status ) { $ modules = [ ] ; foreach ( $ this -> all ( ) as $ name => $ module ) { if ( $ module -> isStatus ( $ status ) ) { $ modules [ $ name ] = $ module ; } } return $ modules ; }
Get modules by status.

@param $status

@return array
Get modules by status .