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 Samson\TRSBundle\Form\DataTransformer; | |
use Symfony\Component\Form\DataTransformerInterface; | |
use Symfony\Component\Form\Exception\TransformationFailedException; | |
class LabourWeekTransformer implements DataTransformerInterface | |
{ | |
private $week; |
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
array(45) { | |
[0]=> | |
string(18) "HTTP/1.1 302 Found" | |
[1]=> | |
string(35) "Date: Thu, 26 Apr 2012 19:08:58 GMT" | |
[2]=> | |
string(30) "Server: Apache/2.2.20 (Ubuntu)" | |
[3]=> | |
string(35) "X-Powered-By: PHP/5.3.6-13ubuntu3.6" | |
[4]=> |
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 A implements Serializable { | |
public function serialize($a) {} | |
public function unserialize($a) {} | |
} | |
$r = new ReflectionClass("A"); | |
foreach($r->getMethods() as $method) { | |
echo $method->getDeclaringClass()->getName().'::'.$method->getName()."\n"; | |
} |
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 stuff... | |
class FriendSelectorType extends AbstractType | |
{ | |
public function setDefaultOptions(OptionsResolverInterface $resolver) | |
{ | |
$resolver->setRequired(array('user')); |
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
<datagrid> | |
<data>{{ printers|serialize|raw }}</data> | |
<columns> | |
<column name="id"></column> | |
<column name="name"></column> | |
<column name="port"></column> | |
<column name="ip">IP Address</column> | |
</columns> | |
<crud> |
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
<datagrid> | |
<data>{{ printers|serialize|raw }}</data> | |
<columns> | |
<column name="id"></column> | |
<column name="name"></column> | |
<column name="port"></column> | |
<column name="ip">IP Address</column> | |
</columns> | |
<crud> |
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
<!doctype html> | |
<html ng-app="app"> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.js"></script> | |
<script> | |
angular.module('app', []); | |
angular.module('app').controller('test', function($scope) { | |
}); | |
</script> |
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 myApp\APIBundle\Http; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface; | |
use Symfony\Component\HttpFoundation\Cookie; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpKernel\Event\FilterResponseEvent; | |
use Symfony\Component\HttpKernel\Event\GetResponseEvent; |
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 $newScope = $($event.target).scope().$new(); | |
var $expand = $('<order-history-month></order-history-month>'); | |
$compile($expand)($newScope); | |
ExpandPositioner.insertIntoPage($expand); |
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 $newScope = $($event.target).scope().$new(); | |
var $expand = $('<order-history-month></order-history-month>'); | |
$compile($expand)($newScope); | |
ExpandPositioner.insertIntoPage($expand); |
OlderNewer