-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:nette/dibi
- Loading branch information
Showing
36 changed files
with
1,694 additions
and
1,422 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?php | ||
|
||
/** | ||
* Nette Framework | ||
* | ||
* @copyright Copyright (c) 2004, 2010 David Grudl | ||
* @license http://nettephp.com/license Nette license | ||
* @link http://nettephp.com | ||
* @category Nette | ||
* @package Nette | ||
*/ | ||
|
||
// no namespace | ||
|
||
|
||
|
||
/** | ||
* DateTime with serialization and timestamp support for PHP 5.2. | ||
* | ||
* @copyright Copyright (c) 2004, 2010 David Grudl | ||
* @package Nette | ||
*/ | ||
class DateTime53 extends DateTime | ||
{ | ||
|
||
public function __sleep() | ||
{ | ||
$this->fix = array($this->format('Y-m-d H:i:s'), $this->getTimezone()->getName()); | ||
return array('fix'); | ||
} | ||
|
||
|
||
|
||
public function __wakeup() | ||
{ | ||
$this->__construct($this->fix[0], new DateTimeZone($this->fix[1])); | ||
unset($this->fix); | ||
} | ||
|
||
|
||
|
||
public function getTimestamp() | ||
{ | ||
return (int) $this->format('U'); | ||
} | ||
|
||
|
||
|
||
public function setTimestamp($timestamp) | ||
{ | ||
return $this->__construct(date('Y-m-d H:i:s', $timestamp), new DateTimeZone($this->getTimezone()->getName())); // getTimeZone() crashes in PHP 5.2.6 | ||
} | ||
|
||
} |
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,44 @@ | ||
<?php | ||
|
||
/** | ||
* Nette Framework | ||
* | ||
* @copyright Copyright (c) 2004, 2010 David Grudl | ||
* @license http://nettephp.com/license Nette license | ||
* @link http://nettephp.com | ||
* @category Nette | ||
* @package Nette | ||
*/ | ||
|
||
/*namespace Nette;*/ | ||
|
||
|
||
|
||
/** | ||
* Custom output for Nette\Debug. | ||
* | ||
* @copyright Copyright (c) 2004, 2010 David Grudl | ||
* @package Nette | ||
*/ | ||
interface IDebugPanel | ||
{ | ||
|
||
/** | ||
* Renders HTML code for custom tab. | ||
* @return void | ||
*/ | ||
function getTab(); | ||
|
||
/** | ||
* Renders HTML code for custom panel. | ||
* @return void | ||
*/ | ||
function getPanel(); | ||
|
||
/** | ||
* Returns panel ID. | ||
* @return string | ||
*/ | ||
function getId(); | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.