fix syntax error and remove comments
This commit is contained in:
Родитель
6061d416d8
Коммит
b1eaf3f6f9
|
@ -56,18 +56,4 @@ class PreferencesMapper extends QBMapper {
|
|||
|
||||
return $this->findEntity($qb);
|
||||
}
|
||||
|
||||
// /**
|
||||
// * @param int $userId
|
||||
// */
|
||||
// public function delete($userId) {
|
||||
// $qb = $this->db->getQueryBuilder();
|
||||
//
|
||||
// $qb->delete($this->getTableName())
|
||||
// ->where(
|
||||
// $qb->expr()->eq('user_id', $qb->createNamedParameter($userId, IQueryBuilder::PARAM_INT))
|
||||
// );
|
||||
//
|
||||
// $qb->execute();
|
||||
// }
|
||||
}
|
||||
|
|
|
@ -126,7 +126,7 @@ class ShareService {
|
|||
* @param bool $skipInvitation
|
||||
* @return Share
|
||||
*/
|
||||
private function create($pollId, $userGroup, $skipInvitation = fale) {
|
||||
private function create($pollId, $userGroup, $skipInvitation = false) {
|
||||
$this->share = new Share();
|
||||
$this->share->setToken(\OC::$server->getSecureRandom()->generate(
|
||||
16,
|
||||
|
@ -171,25 +171,6 @@ class ShareService {
|
|||
|
||||
$userGroup = UserGroupClass::getUserGroupChild($type, $userId);
|
||||
return $this->create($pollId, $userGroup) ;
|
||||
|
||||
// $this->share = new Share();
|
||||
// $this->share->setPollId($pollId);
|
||||
// $this->share->setInvitationSent(0);
|
||||
// $this->share->setToken(\OC::$server->getSecureRandom()->generate(
|
||||
// 16,
|
||||
// ISecureRandom::CHAR_DIGITS .
|
||||
// ISecureRandom::CHAR_LOWER .
|
||||
// ISecureRandom::CHAR_UPPER
|
||||
// ));
|
||||
//
|
||||
//
|
||||
// $userGroup = UserGroupClass::getUserGroupChild($type, $userId);
|
||||
// $this->share->setType($userGroup->getType());
|
||||
// $this->share->setUserId($userGroup->getId());
|
||||
// $this->share->setDisplayName($userGroup->getDisplayName());
|
||||
// $this->share->setUserEmail($userGroup->getEmailAddress());
|
||||
//
|
||||
// return $this->shareMapper->insert($this->share);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче