This file contains hidden or 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
public function getChangedReadStreams() | |
{ | |
$read = array($this->socket); | |
$write = array(); | |
$except = array(); | |
return stream_select($read, $write, $except, 5); | |
} | |
/** |
This file contains hidden or 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 | |
namespace Anse\Xmpp; | |
use Anse\Xmpp\Message\MessageInterface; | |
class Stream | |
{ | |
/** | |
* @var string |
This file contains hidden or 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 | |
interface Mikado | |
{ | |
public function searchFreeStick(); | |
public function removeStick($i); | |
} | |
class MikadoCollectionQueue implements Mikado | |
{ |
This file contains hidden or 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 | |
/** | |
$stream = new Modbus('127.0.0.1'); | |
$stream->connect(); | |
//var_dump($stream->writeSingleRegister(10, 10, 1)); | |
var_dump($stream->writeSingleCoil(1, 0)); | |
var_dump($stream->readCoil(1, 1));die; | |
**/ |
This file contains hidden or 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 | |
$user = new User(); | |
$user->addComment(new Comment('foo')); | |
$user->addComment(new Comment('baz')); | |
$user->addComment(new Comment('bar')); | |
$em->persist($user); // i only want the "user" object to be persisted, not the whole object graph | |
$em->flush(); |
This file contains hidden or 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
System | |
- Provider | |
[ Name] Application Error | |
- EventID 1000 | |
[ Qualifiers] 0 | |
This file contains hidden or 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
0000000000 | |
0000000000 | |
0000000000 | |
0000000000 | |
0000000000 | |
0000000000 | |
0000000000 | |
0000000000 | |
0000000000 | |
0000000000 |
This file contains hidden or 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 | |
namespace Stca\Form\Element; | |
class RenderViewScript extends \Zend_Form_Element | |
{ | |
/** | |
* File name of view script | |
* @var string | |
*/ |
This file contains hidden or 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 | |
/* | |
I would like to obtain the following elements: | |
<input type="text" name="foo[1]" /> | |
<input type="text" name="bar[1]" /> | |
*/ |
This file contains hidden or 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 | |
class UserTest extends PHPUnit_Extensions_SeleniumTestCase | |
{ | |
/** | |
* Navigate to the registration page, and enter the following data in the registration form: | |
* | |
* - email: [email protected] | |
* - name: John Doe | |
* |