Skip to content

Instantly share code, notes, and snippets.

View johannilsson's full-sized avatar

Johan Berg johannilsson

View GitHub Profile
<?php
class Domain_Model_User {
private $id;
private $name;
}
interface Domain_Model_UserRepository {
public function save(Domain_Model_User $user);
public function find($id); // Returns Domain_Model_User
}
class UserService {
<?php
require_once "Zend/Loader.php";
Zend_Loader::registerAutoload();
class MyClass {
/**
* This method takes ...
*
* @param integer $inputParam
* @return string
Index: Zend/Soap/Wsdl.php
===================================================================
--- Zend/Soap/Wsdl.php (revision 14349)
+++ Zend/Soap/Wsdl.php (working copy)
@@ -182,12 +182,14 @@
$message = $this->_dom->createElement('message');
$message->setAttribute('name', $name);
+ $messageName = $name;
# From http://ubuntuforums.org/showpost.php?p=4124372&postcount=5
mencoder -idx out.ogv -ovc lavc -oac mp3lame -o out.avi
cat ~/.bash_history |awk '{ print $1 }'|sort|uniq -c|sort -rn|head
<p><?= $somevar ?></p>
<?php if (count($data) > 0): ?>
<ul>
<?php foreach($data as $row):?>
<li><?= $row ?></li>
<?php endforeach;?>
</ul>
<?php endif; ?>
<?php
echo "hello world"
?>