final protected function haltOnDemand()
    {
        switch (true) {

            // If at least one of below conditions is true, then $this->halt() is called
            case $this->hasOption('secure') && $this->getOptions('secure') == true && !$this->request->isSecure():
            case $this->hasOption('ajax') && $this->getOptions('ajax') == true && !$this->request->isAjax():
            case $this->hasOption('method') && (strtoupper($this->getOptions('method')) != $this->request->getMethod()):

            $this->halt();
        }
    }
final protected function haltOnDemand()
    {
        switch (true) {

            // If at least one of below conditions is true, then $this->halt() is called
            case $this->hasOption('secure') && $this->getOptions('secure') == true && !$this->request->isSecure():
            case $this->hasOption('ajax') && $this->getOptions('ajax') == true && !$this->request->isAjax():
            case $this->hasOption('method') && (strtoupper($this->getOptions('method')) != $this->request->getMethod()):

            $this->halt();
        }
    }
final protected function haltOnDemand ( ) { switch ( true ) { // If at least one of below conditions is true, then $this->halt() is called case $ this -> hasOption ( 'secure' ) && $ this -> getOptions ( 'secure' ) == true && ! $ this -> request -> isSecure ( ) : case $ this -> hasOption ( 'ajax' ) && $ this -> getOptions ( 'ajax' ) == true && ! $ this -> request -> isAjax ( ) : case $ this -> hasOption ( 'method' ) && ( strtoupper ( $ this -> getOptions ( 'method' ) ) != $ this -> request -> getMethod ( ) ) : $ this -> halt ( ) ; } }
Halts controller's execution on demand

@return void
Halts controller s execution on demand