Skip to content

Instantly share code, notes, and snippets.

View bramstroker's full-sized avatar

Bram Gerritsen bramstroker

View GitHub Profile
<?php
/**
* CampsiteController
*
* @category AcsiCampsite
* @package AcsiCampsite\Api
* @copyright 2013 ACSI Holding bv (http://www.acsi.eu)
* @version SVN: $Id$
*/
<!DOCTYPE html><!--[if IE 8 ]><html lang="nl_NL" class="no-js ie8"><![endif]-->
<!--[if IE 9 ]><html lang="nl_NL" class="no-js ie9"><![endif]-->
<!--[if IE 10 ]><html lang="nl_NL" class="no-js ie10"><![endif]-->
<!--[if (gt IE 10)|!(IE)]><!--><html lang="nl_NL" class="no-js"><!--<![endif]-->
/**
* This action return content for the balloon popups on the map
*
* @return ViewModel
*/
public function balloonAction()
{
$reference = $this->params()->fromQuery('reference');
$type = $this->params()->fromQuery('type');
<?php
/**
* PoiProviderInterface
*
* @category AcsiMap
* @package AcsiMap\Poi
* @copyright 2013 ACSI Holding bv (http://www.acsi.eu)
* @version SVN: $Id$
*/
<?php
class MyService
{
private $repo;
public function __construct(ObjectRepository $repo)
{
$this->repo = $repo;
}
@bramstroker
bramstroker / TaggableMemcached.php
Created February 12, 2013 13:33
TaggableMemcached storage adapter
<?php
/**
* Memcached storage adapter with tag support
*
* @category AcsiBase
* @package AcsiBase\Cache
* @copyright 2012 ACSI Holding bv (http://www.acsi.eu)
* @version SVN: $Id$
*/
use Doctrine\ORM\Mapping as ORM;
trait CampsiteTrait
{
/**
* @ORM\Column(name="campsiteID", type="integer", precision=0, nullable=false)
* @var int $campsiteID
*/
protected $campsiteID = null;