ManaPHP\Message\Queue\Adapter\Db::push PHP Метод

push() публичный Метод

public push ( string $topic, string $body, integer $priority = self::PRIORITY_NORMAL ) : void
$topic string
$body string
$priority integer
Результат void
    public function push($topic, $body, $priority = self::PRIORITY_NORMAL)
    {
        /**
         * @var \ManaPHP\Message\Queue\Adapter\Db\Model $model
         */
        $model = new $this->_model();
        $model->deleted = 0;
        $model->topic = $topic;
        $model->body = $body;
        $model->priority = $priority;
        $model->created_time = time();
        $model->create();
    }