コード例 #1
0
 /**
  * @param \SPHERE\Application\Platform\Gatekeeper\Authorization\Token\Service\Entity\TblToken $tblToken
  */
 public function destroyToken(TblToken $tblToken)
 {
     $Manager = $this->Connection->getEntityManager();
     $Entity = $Manager->getEntityById('TblToken', $tblToken->getId());
     if (null !== $Entity) {
         $Manager->killEntity($Entity);
         Protocol::useService()->createDeleteEntry($this->Connection->getDatabase(), $Entity);
     }
 }
コード例 #2
0
 /**
  * @param \SPHERE\Application\Platform\Gatekeeper\Authorization\Token\Service\Entity\TblToken $tblToken
  *
  * @return bool|TblAccount[]
  */
 public function getAccountAllByToken(TblToken $tblToken)
 {
     $EntityList = $this->Connection->getEntityManager()->getEntity('TblAccount')->findBy(array(TblAccount::SERVICE_TBL_TOKEN => $tblToken->getId()));
     return empty($EntityList) ? false : $EntityList;
 }
コード例 #3
0
 /**
  * @param null|\SPHERE\Application\Platform\Gatekeeper\Authorization\Token\Service\Entity\TblToken $tblToken
  */
 public function setServiceTblToken(TblToken $tblToken = null)
 {
     $this->serviceTblToken = null === $tblToken ? null : $tblToken->getId();
 }
コード例 #4
0
ファイル: Data.php プロジェクト: BozzaCoon/SPHERE-Framework
 /**
  * @param \SPHERE\Application\Platform\Gatekeeper\Authorization\Token\Service\Entity\TblToken $tblToken
  *
  * @return bool|TblAccount[]
  */
 public function getAccountAllByToken(TblToken $tblToken)
 {
     return $this->getCachedEntityListBy(__METHOD__, $this->Connection->getEntityManager(), 'TblAccount', array(TblAccount::SERVICE_TBL_TOKEN => $tblToken->getId()));
 }