[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorAuthTemporaryTokenGarbageCollector 4 extends PhabricatorGarbageCollector { 5 6 public function collectGarbage() { 7 $session_table = new PhabricatorAuthTemporaryToken(); 8 $conn_w = $session_table->establishConnection('w'); 9 10 queryfx( 11 $conn_w, 12 'DELETE FROM %T WHERE tokenExpires <= UNIX_TIMESTAMP() LIMIT 100', 13 $session_table->getTableName()); 14 15 return ($conn_w->getAffectedRows() == 100); 16 } 17 18 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |