コード例 #1
0
ファイル: SessionQuery.php プロジェクト: Rokfor/rokfor-php-db
 /**
  * Exclude object from result
  *
  * @param   ChildSession $session Object to remove from the list of results
  *
  * @return $this|ChildSessionQuery The current query, for fluid interface
  */
 public function prune($session = null)
 {
     if ($session) {
         $this->addUsingAlias(SessionTableMap::COL_ID, $session->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
コード例 #2
0
ファイル: base.php プロジェクト: antz29/base
 /**
  * @return Session;
  */
 public function getSession()
 {
     return Session::getInstance();
 }