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 MCache | |
{ | |
private $memcache; | |
private $memcachehost; |
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
{ | |
"grouped":{ | |
"catalog_id":{ | |
"matches":4, | |
"ngroups":1, | |
"groups":[{ | |
"groupValue":3, | |
"doclist":{"numFound":4,"start":0,"maxScore":1.0,"docs":[ | |
{ |
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
$giftProducts = $cart->getItems()->filter(function($item) { | |
return $item->getTotal() == 0; | |
}); |
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 | |
/** | |
* User: Mustafa Ileri | |
* Date: 7/28/13 | |
* Time: 11:29 PM | |
* Please type something... | |
*/ | |
namespace Hezarfen\Bundle\CmsBundle\Tests\Service; |
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
[ | |
{ | |
"id": 1, | |
"name": "6 Temmuz YTU", | |
"startDate": { | |
"date": "2013-07-06 09:00:00", | |
"timezone_type": 3, | |
"timezone": "Europe/Zurich" | |
}, | |
"endDate": { |
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
public function setRouterMock() | |
{ | |
$routerMock = $this->getMockBuilder("Symfony\Bundle\FrameworkBundle\Routing\Router")->disableOriginalConstructor() | |
->disableOriginalConstructor()->setMethods(array("all", "getRouteCollection", "generate"))->getMock(); | |
$routerMock->expects($this->any())->method("all")->will($this->returnValue(array())); | |
$routerMock->expects($this->any())->method("getRouteCollection")->will($this->returnValue($this->routeCollection)); | |
$routerMock->expects($this->any())->method("generate")->withAnyParameters()->will($this->returnCallback(array($this, "generateUrlCallback"))); | |
$this->routerMock = $routerMock; |
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 Joker\Bundle\CoreBundle\EventListener; | |
use Doctrine\ORM\Event\LifecycleEventArgs; | |
class DoctrineEventListener |
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
<!-- The default high-performance update handler --> | |
<updateHandler class="solr.DirectUpdateHandler2"> | |
<updateLog> | |
<str name="dir">${solr.ulog.dir:}</str> | |
</updateLog> | |
<autoSoftCommit> | |
<maxDocs>250</maxDocs> | |
<maxTime>10000</maxTime> |
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
HAYSTACK_CONNECTIONS = { | |
'default': { | |
'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine', | |
'URL': 'http://elastic:9200/', | |
'INDEX_NAME': 'index?name', | |
}, | |
} |
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 Model(models.Model): | |
STATUS_CHOICES = ( | |
('active', 'Aktif'), | |
('passive', 'Pasif'), | |
('redirected', 'Yönlendirilmiş') | |
) | |
TRACTION_CHOICES = ( | |
('front-wheel-drive', 'Önden Çekişli'), | |
('rear-wheel-drive', 'Arkadan İtişli'), |
OlderNewer