-
-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #807 from phalcon/3.2.x
3.2.2
- Loading branch information
Showing
12 changed files
with
275 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Helper\Session\Dialect; | ||
|
||
/** | ||
* Helper\Session\Dialect\DatabaseTrait | ||
* | ||
* @copyright (c) 2011-2017 Phalcon Team | ||
* @link https://phalconphp.com | ||
* @author Sergii Svyrydenko <[email protected]> | ||
* @package Helper\Session\Dialect | ||
* | ||
* The contents of this file are subject to the New BSD License that is | ||
* bundled with this package in the file LICENSE.txt | ||
* | ||
* If you did not receive a copy of the license and are unable to obtain it | ||
* through the world-wide-web, please send an email to [email protected] | ||
* so that we can send you a copy immediately. | ||
*/ | ||
trait DatabaseTrait | ||
{ | ||
protected function getWrittenSessionData($sessionID) | ||
{ | ||
$sql = "DELETE FROM sessions WHERE session_id = '{$sessionID}'"; | ||
|
||
return $sql; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Helper\Session\Dialect; | ||
|
||
/** | ||
* Helper\Session\Dialect\ModelSession | ||
* | ||
* @copyright (c) 2011-2017 Phalcon Team | ||
* @link https://phalconphp.com | ||
* @author Sergii Svyrydenko <[email protected]> | ||
* @package Helper\Session\Dialect | ||
* | ||
* The contents of this file are subject to the New BSD License that is | ||
* bundled with this package in the file LICENSE.txt | ||
* | ||
* If you did not receive a copy of the license and are unable to obtain it | ||
* through the world-wide-web, please send an email to [email protected] | ||
* so that we can send you a copy immediately. | ||
*/ | ||
|
||
use Phalcon\Mvc\Model; | ||
use Phalcon\Mvc\ModelInterface; | ||
|
||
class ModelSession extends Model | ||
{ | ||
public static $table = 'sessions'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace Phalcon\Test\Module; | ||
|
||
use UnitTester; | ||
use Codeception\Specify; | ||
use Codeception\Test\Unit; | ||
use PHPUnit_Runner_Version; | ||
|
||
/** | ||
* \Phalcon\Test\Module\UnitTest | ||
* Base class for all Unit tests | ||
* | ||
* @copyright (c) 2011-2017 Phalcon Team | ||
* @link http://www.phalconphp.com | ||
* @author Andres Gutierrez <[email protected]> | ||
* @author Nikolaos Dimopoulos <[email protected]> | ||
* @package Phalcon\Test\Module | ||
* | ||
* The contents of this file are subject to the New BSD License that is | ||
* bundled with this package in the file LICENSE.txt | ||
* | ||
* If you did not receive a copy of the license and are unable to obtain it | ||
* through the world-wide-web, please send an email to [email protected] | ||
* so that we can send you a copy immediately. | ||
*/ | ||
class UnitTest extends Unit | ||
{ | ||
use Specify; | ||
|
||
/** | ||
* UnitTester Object | ||
* @var UnitTester | ||
*/ | ||
protected $tester; | ||
} |
Oops, something went wrong.