src/Shell/MaintenanceModeShell.php
public function activate() {
		$duration = (int)$this->params['duration'];
		$this->Maintenance->setMaintenanceMode($duration);
		$this->out('Maintenance mode activated ...');
	}
public function activate() {
		$duration = (int)$this->params['duration'];
		$this->Maintenance->setMaintenanceMode($duration);
		$this->out('Maintenance mode activated ...');
	}
public function activate ( ) { $ duration = ( int ) $ this -> params [ 'duration' ] ; $ this -> Maintenance -> setMaintenanceMode ( $ duration ) ; $ this -> out ( 'Maintenance mode activated ...' ) ; }
Activate maintenance mode with an optional timeout setting.

@return void
Activate maintenance mode with an optional timeout setting .