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
var Actions = { | |
ADD_ITEM: 1, | |
DEL_ITEM: 2, | |
MOVE_ITEM: 3, | |
}; | |
var Flux = new McFly(); | |
var ItemStore = (function (Flux, Actions) { | |
var _items = [ |
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 | |
/** | |
* @expectedException \Postit\Db\Exception | |
*/ | |
function testInsertPost_throwsException() | |
{ | |
$pdoMock = $this->getMockBuilder('PDO') | |
->disableOriginalConstructor() | |
->getMock(); |
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 | |
// ./src/DbUtil/Seed.php | |
namespace DbUtil; | |
class Seed | |
{ | |
private $data; | |
private $pdo; |
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 PostitTest\Interactor; | |
use Postit\Request\LoginUser as Request; | |
use Postit\Response\LoginUser as Response; | |
use Postit\Interactor\LoginUser; | |
use Postit\Entity\User as UserEntity; | |
use Postit\Error; | |
use Postit\Exception\UserNotFound; |
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 Appointment\InputFilter; | |
use Appointment\Entity\Appointment as AppointmentEntity; | |
use Zend\InputFilter\Factory as InputFilterFactory; | |
use Zend\ServiceManager\FactoryInterface; | |
class AppointmentFactory implements FactoryInterface | |
{ |
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 | |
/** | |
* @package Staff | |
* @subpackage Form | |
* @author Ali Hammad | |
* @version 0.0.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 | |
namespace Staff\Entity; | |
class Member | |
{ | |
const IMAGE_BASE_PATH = '/img/staff'; | |
protected $id; | |
protected $name; |
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 Forum\Entity; | |
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
/** | |
* Description of Comment |
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 | |
if (!$this->getCollection()) { | |
$reflectionClass = new ReflectionClass('Mage'); | |
$reflectionProperty = $reflectionClass->getProperty('_registry'); | |
$reflectionProperty->setAccessible(true); | |
var_dump($reflectionProperty->getValue(new Mage())); | |
die; | |
} |