src/Expose/Queue/Mongo.php
public function add($requestData)
    {
        $data = array(
            'data' => $requestData,
            'remote_ip' => (isset($_SERVER['REMOTE_ADDR']))
                ? $_SERVER['REMOTE_ADDR'] : 0,
            'datetime' => time(),
            'processed' => false
        );

        return $this->getCollection()->insert($data);
    }
public function add($requestData)
    {
        $data = array(
            'data' => $requestData,
            'remote_ip' => (isset($_SERVER['REMOTE_ADDR']))
                ? $_SERVER['REMOTE_ADDR'] : 0,
            'datetime' => time(),
            'processed' => false
        );

        return $this->getCollection()->insert($data);
    }
public function add ( $ requestData ) { $ data = array ( 'data' => $ requestData , 'remote_ip' => ( isset ( $ _SERVER [ 'REMOTE_ADDR' ] ) ) ? $ _SERVER [ 'REMOTE_ADDR' ] : 0 , 'datetime' => time ( ) , 'processed' => false ) ; return $ this -> getCollection ( ) -> insert ( $ data ) ; }
Add a new record to the queue

@param array $requestData Request data
Add a new record to the queue