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
// mysql queries | |
INSERT INTO `tests` (`stamp`) VALUES ('2015-07-01T00:00:00+0000'); | |
INSERT INTO `tests` (`stamp`) VALUES ('2015-07-01 00:00:00'); | |
INSERT INTO `tests` (`stamp`) VALUES ('2015-07-01T00:00:00+0400'); | |
INSERT INTO `tests` (`stamp`) VALUES ('2015-07-01 00:00:00'); |
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
<?php | |
$entity = $table->newEntity( | |
[ | |
'evaluationDate' => (new Time('2015-07-01T00:00:00+0200'))->timezone('UTC') | |
] | |
); | |
$table->save($entity); |
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
class Plugin extends \Phile\Plugin\AbstractPlugin | |
{ | |
protected $events = ['request_uri' => 'startup']; | |
public function startup($data) | |
{ | |
if ($data['uri'] === 'foo') { | |
// matches URL | |
$this->doStuffOnFoo(); | |
exit(); |
OlderNewer