Call $this->onInfo

@param bool $isLast
Is last output?
498673
protected function onInfo($isLast = false)
    {
        $now = time();
        if (! isset($this->_downloadSpeedStartTime)) {
            $this->_downloadSpeedStartTime = $now;
        }
        if (($isLast || $now - $this->_onInfoLastTime > 0) && isset($this->onInfo)) {
            $this->_info['all']['taskPoolNum'] = count($this->_taskPool);
            $this->_info['all']['taskPoolNum'] += count($this->_taskPoolAhead);
            $this->_info['all']['taskRunningNum'] = count($this->_taskRunning);
            $this->_info['all']['taskFailNum'] = count($this->_taskFailed);
            // running
            $this->_info['running'] = array();
            foreach ($this->_taskRunning as $k => $v) {
                $this->_info['running'][$k] = curl_getinfo($v['ch']);
            }
            if ($now - $this->_downloadSpeedStartTime > 0) {
                if (count($this->_downloadSpeedList) > 10) {
                    array_shift($this->_downloadSpeedList);
                }
                $this->_downloadSpeedList[] = round(
                    $this->_downloadSpeedTotalSize / ($now - $this->_downloadSpeedStartTime));
                $this->_info['all']['downloadSpeed'] = round(
                    array_sum($this->_downloadSpeedList) / count($this->_downloadSpeedList));
            }
            if ($now - $this->_downloadSpeedStartTime > 3) {
                $this->_downloadSpeedTotalSize = 0;
                $this->_downloadSpeedStartTime = $now;
            }
            call_user_func($this->onInfo, $this->_info, $this, $isLast);
            $this->_onInfoLastTime = $now;
        }
    }
47301
public function setReportedAt($reportedAt) : AuditEvent
    {
        if (\is_string($reportedAt)) {
            $reportedAt = new \DateTime($reportedAt);
        }

        $this->reportedAt = $reportedAt;

        return $this;
    }
985526
public function output($remove = true)
    {
        $remove = (bool)$remove;
        $messages = $this->session->get($this->flashKey, [], $remove);
        if (!empty($messages)) {
            foreach ($messages as $message) {
                echo $message;
            }
        }
        if ($remove) {
            $this->clear();
        }
    }
384461
public function onRequestComplete($baseEvent)
    {
        $event = new WSClientEvent();
        $event->setCommand($baseEvent['request']->getMethod());
        $event->setTiming($baseEvent['response']->getInfo('total_time') * 1000); // Millisecondes
        $event->setStatusCode($baseEvent['response']->getStatusCode());
        $event->setUrl($baseEvent['request']->getUrl());
        $event->setContent($baseEvent['response']->getBody(true));

        $event->setKey($baseEvent['response']->getHeader('X-Guzzle-Cache'));
        if ($baseEvent['response']->getInfo('total_time') == null) {
            $event->setUseCache(true);
        } else {
            $event->setUseCache(false);
        }
        $this->dispatcher->dispatch('wsclient.command', $event);
        $this->dispatcher->dispatch(self::CLIENT_REQUESTCOMPLETE, $event);
    }
256581
public static function announce()
    {
        $oNavGroup = Factory::factory('Nav', 'nails/module-admin');
        $oNavGroup->setLabel('Users');
        $oNavGroup->setIcon('fa-users');

        if (userHasPermission('admin:auth:accounts:browse')) {

            $oDb = Factory::service('Database');
            $oDb->where('is_suspended', false);
            $numTotal    = $oDb->count_all_results(NAILS_DB_PREFIX . 'user');
            $oAlertTotal = Factory::factory('NavAlert', 'nails/module-admin');
            $oAlertTotal->setValue($numTotal);
            $oAlertTotal->setLabel('Number of Users');

            $oDb->where('is_suspended', true);
            $numSuspended    = $oDb->count_all_results(NAILS_DB_PREFIX . 'user');
            $oAlertSuspended = Factory::factory('NavAlert', 'nails/module-admin');
            $oAlertSuspended->setValue($numSuspended);
            $oAlertSuspended->setSeverity('danger');
            $oAlertSuspended->setLabel('Number of Suspended Users');

            $oNavGroup->addAction('View All Users', 'index', [$oAlertTotal, $oAlertSuspended], 0);
        }

        return $oNavGroup;
    }
794023
public function info($msg, $fileHandle = null)
    {
        $this->log(self::$logLevelInfo, $msg, $fileHandle = null);
    }
1079000
protected function emitOnChange($method = false)
    {
        if (!$this->onChangeAlreadyEmittedBy) {
            $this->emit('change', [$this]);
            $this->onChangeAlreadyEmittedBy = $method;
        }
    }
1260956
public function onBeforePublish()
    {
        /**
         * @var DBDatetime $publishDate
         */
        $publishDate = $this->dbObject('PublishDate');
        if (!$publishDate->getValue()) {
            $this->PublishDate = DBDatetime::now()->getValue();
            $this->write();
        }

        $this->Summary = trim($this->Summary);

        $this->extend('onBeforePublish');
    }
1343280
public function onFatalError($callback, $clearOutput = false)
    {
        if (!$clearOutput) {
            $this->onFatalError = $callback;
        } else {
            $this->onFatalError = function ($error) use ($callback) {
                $this->clearOutputBuffer();
                $callback($error);
            };
        }
    }
1060991
public function processWaitStatus($status)
    {
        if ($this->isExited()) {
            throw new \LogicException('Cannot set status on an exited fork');
        }

        $this->status = $status;

        if ($this->isExited()) {
            $this->receive();

            $this->isSuccessful() ? $this->resolve() : $this->reject();

            if ($this->debug && (!$this->isSuccessful() || $this->getError())) {
                throw new ForkException($this->name, $this->pid, $this->getError());
            }
        }
    }
803638
public function onConnected($cb)
    {
        if ($this->connected) {
            $cb($this);
        } else {
            if (!$this->onConnected) {
                $this->onConnected = new StackCallbacks;
            }
            $this->onConnected->push($cb);
        }
    }
1349492
function(newStatement) {
    var oldStatement = !this.outputConnection;
    if (newStatement != oldStatement) {
      this.unplug(true, true);
      if (newStatement) {
        this.setOutput(false);
        this.setPreviousStatement(true);
        this.setNextStatement(true);
      } else {
        this.setPreviousStatement(false);
        this.setNextStatement(false);
        this.setOutput(true);
      }
    }
  }
527627
public function eventBeforeInsert()
    {
        $item = self::find()->where([
            'nav_container_id' => $this->nav_container_id,
            'parent_nav_id' => $this->parent_nav_id
        ])->orderBy('sort_index DESC')->limit(1)->asArray()->one();
        if (!$item) {
            $this->sort_index = 1;
        } else {
            $this->sort_index = $item['sort_index'] + 1;
        }
    }
264585
public static function setIsDebug(bool $bool): void
    {
        if (self::isCliApp()) {
            self::$IS_DEBUG = $bool;
        } else {
            MSession::set(MCoreApplication::DEBUG, $bool);
        }
    }
1080965
public function notify()
    {
        if (0 < count($this->observers)) {
            foreach ($this->observers as $observer) {
                /** @var \Liip\Drupal\Modules\EventManager\EventObserverInterface $observer */
                $observer->update($this);
            }
        }
    }
257109
public function sendStatusUpdate($txt)
    {
        $child = new ProtocolNode('status', null, null, $txt);
        $nodeID = $this->createIqId();
        $node = new ProtocolNode('iq',
            [
                'to'    => Constants::WHATSAPP_SERVER,
                'type'  => 'set',
                'id'    => $nodeID,
                'xmlns' => 'status',
            ], [$child], null);

        $this->sendNode($node);
        $this->eventManager()->fire('onSendStatusUpdate',
            [
                $this->phoneNumber,
                $txt,
            ]);
    }
567948
public function alert($messageOrException, $contextOrException = null, array $context = array()) {
        $this->log(LogLevel::ALERT, $messageOrException, $contextOrException, $context);
    }