protected function _startBufferToMessages()
    {
        if (!Mage::getStoreConfigFlag('system/cron/enableJobOutputBuffer')) {
            return $this;
        }

        if ($this->_redirect) {
            return $this;
        }

        $this->addMessages('---START---' . PHP_EOL);

        ob_start(
            array($this, '_addBufferToMessages'),
            $this->_redirectOutputHandlerChunkSize
        );

        $this->_redirect = true;

        return $this;
    }
protected function _startBufferToMessages()
    {
        if (!Mage::getStoreConfigFlag('system/cron/enableJobOutputBuffer')) {
            return $this;
        }

        if ($this->_redirect) {
            return $this;
        }

        $this->addMessages('---START---' . PHP_EOL);

        ob_start(
            array($this, '_addBufferToMessages'),
            $this->_redirectOutputHandlerChunkSize
        );

        $this->_redirect = true;

        return $this;
    }
protected function _startBufferToMessages ( ) { if ( ! Mage :: getStoreConfigFlag ( 'system/cron/enableJobOutputBuffer' ) ) { return $ this ; } if ( $ this -> _redirect ) { return $ this ; } $ this -> addMessages ( '---START---' . PHP_EOL ) ; ob_start ( array ( $ this , '_addBufferToMessages' ) , $ this -> _redirectOutputHandlerChunkSize ) ; $ this -> _redirect = true ; return $ this ; }
Redirect all output to the messages field of this Schedule.
We use ob_start with `_addBufferToMessages` to redirect the output.

@return $this
Redirect all output to the messages field of this Schedule . We use ob_start with _addBufferToMessages to redirect the output .