Example #1
0
 public function log($text)
 {
     if ($this->worker) {
         $this->worker->log($text);
     }
 }
    {
        $this->info(Ezer_BusinessProcessHandlerMessages::READY);
    }
    protected function onQuit()
    {
        $this->info(Ezer_BusinessProcessHandlerMessages::QUIT);
    }
    protected function keepRunning()
    {
        return $this->shouldKeepRunning;
    }
    public function progress($percent)
    {
        $this->info(Ezer_BusinessProcessHandlerMessages::progress($percent));
    }
    /**
     * Sets a variable value in the scope instance, on the server.
     * @param $variable_path string separated by / to the variable and part that should be set
     * @param $value the new value
     */
    public function setVariable($variable_path, $value)
    {
        $this->info(Ezer_BusinessProcessHandlerMessages::setVar($variable_path, $value));
    }
    public function log($text)
    {
        $this->info(Ezer_BusinessProcessHandlerMessages::log($text));
    }
}
$countHandler = new Ezer_BusinessProcessHandler();
$countHandler->run();