/** * @param string $user_id * @param int $limit * @param int $offset * @param array $fields * @param callable $cb */ public function findWaiting($user_id, $limit, $offset, $fields, $cb = null) { $this->externalAuthTokens->find($cb, ['limit' => -$limit, 'offset' => $offset, 'fields' => $fields, 'where' => ['uid' => $user_id, 'status' => ['$in' => ['new', 'delayed']]]]); }
/** * @param callable $cb * @param array $cond */ public function findAccounts($cb, $cond = array()) { $this->accounts->find($cb, $cond); }
/** * @param $names * @param callable $cb */ public function getBlocksByNames($names, $cb) { $this->blocks->find($cb, ['limit' => -100, 'where' => array('name' => array('$in' => $names))]); }