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 | |
class ConversionController extends Controller { | |
public function create() | |
{ | |
$dc = new Doctrine_Collection('Conversion'); | |
if ($dc instanceof Doctrine_Collection) { | |
for($i =0; $i < 10; $i++) { |
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 | |
namespace Ocramius\Auth\Storage; | |
use Entity\Ocramius\Admin as AdminEntity, | |
Doctrine\ORM\EntityManager; | |
/** | |
* An @see \Zend_Auth_Storage_Session that handles @see AdminEntity items | |
* @author Marco Pivetta <[email protected]> | |
*/ |
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 | |
class PostEntity | |
{ | |
private $id; | |
private $user; | |
private $title; | |
private $content; | |
private $date; | |
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 | |
namespace Application; | |
class Module | |
{ | |
public function onBootstrap(MvcEvent $e) | |
{ | |
$application = $e->getTarget(); | |
$serviceManager = $application->getServiceManager(); | |
$sharedManager = $application->getEventManager()->getSharedManager(); |
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 | |
use Doctrine\ORM\Mapping as ORM; | |
use Doctrine\Common\Collections\ArrayCollection; | |
/** | |
* @ORM\Entity() | |
* @ORM\Table(name="user") | |
*/ | |
class User |
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
import java.util.*; | |
class Test { | |
public static void main(String[] args) | |
{ | |
// the withdraw amount | |
Scanner scb = new Scanner(System.in); | |
System.out.println("Please enter the amount you want to withdraw"); | |
int withdraw = scb.nextInt(); |
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 | |
namespace App\Entity; | |
abstract class Entity | |
{ | |
public function getId() { | |
return $this->id; | |
} | |
} |
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 | |
interface Report { | |
} |
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 | |
/** | |
* IsUserProvisionalStatusExpired | |
* | |
* @author Vasil Dakov <[email protected]> | |
* @copyright Copyright (c) 2014-2015 U.S. Soccer Federation (http://www.ussoccer.com) | |
*/ | |
namespace Application\Entity\Specification\UserProvisionalStatus; |
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 | |
// Production Config | |
return array( | |
'doctrine' => array( | |
'connection' => array( | |
'orm_default' => array( | |
'driverClass' =>'Doctrine\DBAL\Driver\PDOMySql\Driver', | |
'params' => array( | |
'host' => 'localhost', | |
'port' => '3306', |
OlderNewer