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 | |
/** | |
* @author Marco Bunge | |
* @copyright 2012 Marco Bunge <[email protected]> | |
*/ | |
abstract class AbstractSqlCommand { | |
public function build(){ | |
return implode(' ', $this->getCommandElements()); |
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 | |
/** | |
* @author Marco Bunge | |
* @copyright 2012 Marco Bunge <[email protected]> | |
*/ | |
interface CollectionInterface | |
{ | |
/** | |
* @abstract |
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 | |
/** | |
* SplClassLoader implementation that implements the technical interoperability | |
* standards for PHP 5.3 namespaces and class names. | |
* | |
* http://groups.google.com/group/php-standards/web/final-proposal | |
* | |
* // Example which loads classes for the Doctrine Common package in the | |
* // Doctrine\Common namespace. |
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 | |
/** | |
* @author Marco Bunge | |
* @copyright 2012 Marco Bunge <[email protected]> | |
*/ | |
$string = 'HTTP/1.1 200 OK | |
Server: Apache/1.3.29 (Unix) PHP/4.3.4 | |
Content-Length: (Größe von infotext.html in Byte) | |
Content-Language: de (nach RFC 3282 sowie RFC 1766) |
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 | |
$stdClass = new stdClass(); | |
$stdClass->value = 'HELLO WOLRD'; | |
//return message defined by $stdClass::value with a context | |
//use $stdClass as scope | |
$lambda = function($context) use ($stdClass) | |
{ | |
$msg = $context . ': ' . $stdClass->value; | |
return $msg; |
NewerOlder