protected function doStopServices($runlevel)
    {
        // iterate over all services and stop them
        foreach (array_flip($this->runlevels[$runlevel]) as $name) {
            $this->unbindService($runlevel, $name);
        }
    }
protected function doStopServices($runlevel)
    {
        // iterate over all services and stop them
        foreach (array_flip($this->runlevels[$runlevel]) as $name) {
            $this->unbindService($runlevel, $name);
        }
    }
protected function doStopServices ( $ runlevel ) { // iterate over all services and stop them foreach ( array_flip ( $ this -> runlevels [ $ runlevel ] ) as $ name ) { $ this -> unbindService ( $ runlevel , $ name ) ; } }
Stops all services of the passed runlevel.

@param integer $runlevel The runlevel to stop all services for

@return void
Stops all services of the passed runlevel .