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
(function($){ | |
$.fn.comaCollection = function(){ | |
var args = Array.prototype.slice.call(arguments); | |
if(args.length > 0 && typeof(args[0]) == 'string') { | |
var api = $(this).data('comaCollection'); | |
var method = args.shift(); |
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 Comakai\AdminBundle\Component; | |
use Comakai\AdminBundle\Comun\CRUDController, | |
Pagerfanta\Pagerfanta, | |
Pagerfanta\Adapter\DoctrineORMAdapter, | |
Comakai\AdminBundle\Form\SearchType, | |
Symfony\Component\HttpFoundation\Cookie, | |
Doctrine\ORM\QueryBuilder; |
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 setPictures($pictures) { | |
$this->getPictures()->clear(); | |
foreach ($pictures as $picture) { | |
$this->addPicture($picture); | |
} | |
} |
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
/** | |
* @ORM\OneToMany(targetEntity="Picture", mappedBy="gallery", cascade={"persist", "remove"}) | |
*/ | |
private $pictures; |
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
/** | |
* @ORM\Entity(repositoryClass="Comakai\TicketsBundle\Repository\TicketRepository") | |
*/ | |
class Ticket... |
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 Comakai\TicketsBundle\Repository; | |
use Doctrine\ORM\EntityRepository; | |
use Comakai\TicketsBundle\Entity\User; | |
use JMS\DiExtraBundle\Annotation as DI; | |
use Symfony\Component\Security\Core\SecurityContext; | |
class ProjectRepository extends EntityRepository |
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
if (ret == MPG123_NEW_FORMAT) { | |
var format = binding.mpg123_getformat(mh); | |
debug('new format!', format); | |
self.emit('format', format); | |
var positionTimeIntervalID = setInterval(function() { | |
var current = binding.mpg123_tellframe(mh); | |
var total = binding.mpg123_length(mh); |
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
use Symfony\Component\HttpKernel\Kernel; | |
use Symfony\Component\Config\Loader\LoaderInterface; | |
use Doctrine\Common\Inflector\Inflector; | |
class AppKernel extends Kernel | |
{ | |
public function __construct($environment, $debug) | |
{ | |
Inflector::rules('singular', [ | |
'/(d|n|r|s)es$/i' => '\1\2', |
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
(function($, _, undefined) { | |
var resetTime = function(m) { | |
return m.hour(0).minute(0).second(0); | |
}; | |
$.fn.CalendarWidget = function(options) { | |
var pluginName = 'CalendarWidget'; |
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
$(function() { | |
$('#basic').MomentPicker(); | |
}); |
OlderNewer