Imbo\Database\Mongo::getShortUrlParams PHP Method

getShortUrlParams() public method

public getShortUrlParams ( $shortUrlId )
    public function getShortUrlParams($shortUrlId)
    {
        try {
            $result = $this->getShortUrlCollection()->findOne(['shortUrlId' => $shortUrlId], ['_id' => false]);
            if (!$result) {
                return null;
            }
            $result['query'] = unserialize($result['query']);
            return $result;
        } catch (MongoException $e) {
            return null;
        }
    }