forked from onPHP/onphp-framework
-
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 'onphp-master' into pinba
Conflicts: doc/ChangeLog
- Loading branch information
Showing
20 changed files
with
1,099 additions
and
180 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
/*************************************************************************** | ||
* Copyright (C) 2011 by Alexander A. Zaytsev * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU Lesser General Public License as * | ||
* published by the Free Software Foundation; either version 3 of the * | ||
* License, or (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
/** | ||
* @ingroup Flow | ||
**/ | ||
final class EmptyGifView implements View | ||
{ | ||
/** | ||
* @return EmptyGifView | ||
**/ | ||
public static function create() | ||
{ | ||
return new self; | ||
} | ||
|
||
/** | ||
* @return EmptyGifView | ||
**/ | ||
public function render(/* Model */ $model = null) | ||
{ | ||
header('Content-Type: image/gif'); | ||
header('Content-Length: 43'); | ||
header('Accept-Ranges: none'); | ||
|
||
// NOTE: this is hardcoded empty gif 1x1 image | ||
"GIF89\x61\x01\x00\x01\x00\x80\x00\x00\xff\xff\xff\x00" | ||
."\x00\x00\x21\xf9\x04\x01\x00\x00\x00\x00\x2c\x00\x00\x00" | ||
."\x00\x01\x00\x01\x00\x00\x02\x02\x44\x01\x00\x3b"; | ||
|
||
return $this; | ||
} | ||
} | ||
?> |
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
Oops, something went wrong.