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 HairColor implements ReflectionAnnotation { | |
public $hairColor = ""; | |
} | |
[HairColor(hairColor="purple")] | |
class PurplePeopleEater { } |
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 | |
// current implementation | |
class HairColor implements ReflectionAnnotation { | |
public $hairColor = ""; | |
} | |
[HairColor(hairColor="purple")] | |
class PurplePeopleEater { } |
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 | |
$maxWidth = 200; | |
$maxHeight = 200; | |
try { | |
$imagick = new Imagick(); | |
$fh = fopen(__DIR__ . '/batman.gif', 'r'); | |
$imagick->readImageFile($fh); |
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
class EntityRepository | |
{ | |
public function applyFilter(Filter $filter) | |
{ | |
$qb = $this->createQueryBuilder('e'); | |
$filter->apply($qb); | |
return $qb->getQuery()->getResult(); | |
} |
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
Object.declare('base.widget.Command'); | |
base.widget.Command = function () | |
{ | |
org.puremvc.js.patterns.command.SimpleCommand.call(this); | |
}; | |
Object.extend(base.widget.Command, org.puremvc.js.patterns.command.SimpleCommand); |
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
Object.declare('base.page.index.IndexStartupCommand'); | |
base.page.index.IndexStartupCommand = function () | |
{ | |
base.page.PageMacroCommand.call(this); | |
}; | |
Object.extend(base.page.index.IndexStartupCommand, base.page.PageMacroCommand); | |
var _p = base.page.index.IndexStartupCommand.prototype; |
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
Object.declare('base.widget.sampleWidget.Command'); | |
base.widget.sampleWidget.Command = function () | |
{ | |
base.widget.Command.call(this); | |
}; | |
Object.extend(base.widget.sampleWidget.Command, base.widget.Command); | |
var _p = base.widget.sampleWidget.Command.prototype; |
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 | |
function validateProducts($storeData) { | |
// Check to make sure that our valid fields are in there | |
$requiredFields = array( | |
'price', | |
'name', | |
'description', | |
'type', |
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
<!doctype html> | |
<html> | |
<head> | |
<title></title> | |
<style> | |
body { | |
background: white; | |
text-align: center; | |
padding: 20px; | |
font-family: Georgia, serif; |
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
/** | |
* @Assert\RemapField(targetEntity="User", property="name") | |
*/ | |
protected $name; |
OlderNewer