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
{% javascripts '../app/Resources/assets/js/jquery-1.7.js' | |
'../app/Resources/assets/js/jquery.form.js' | |
'../app/Resources/assets/js/jquery.qtip-1.0.0-rc3.js' | |
'../app/Resources/assets/js/jquery-ui-1.8.16.custom.min.js' | |
output='js/jquery.js' | |
%} | |
<script src="{{ asset_url }}" type="text/javascript"></script> | |
{% endjavascripts %} | |
{% javascripts '@SonataAdminBundle/Resources/public/bootstrap/js/*' |
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 | |
/** | |
* Gets the 'infinite.user.admin.user' service. | |
* | |
* @return Infinite\UserBundle\Admin\Entity\UserAdmin A Infinite\UserBundle\Admin\Entity\UserAdmin instance. | |
*/ | |
protected function getInfinite_User_Admin_UserService() | |
{ | |
$a = $this->get('sonata.admin.manager.orm'); |
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 Infinite\UserBundle\Entity; | |
use FOS\UserBundle\Entity\User as BaseUser; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity |
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 | |
/** | |
* Infinite Networks Pty Ltd | |
*/ | |
namespace Infinite\BookingBundle\Entity; | |
use Doctrine\ORM\Mapping AS ORM; |
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 | |
public function indexAction() | |
{ | |
$em = $this->container->get('doctrine.orm.entity_manager'); | |
$userQuery = $em->createQuery('SELECT u from IbmsUserBundle:User u'); | |
$paginator = $this->container->get('knp_paginator'); | |
$users = $paginator->paginate( | |
$userQuery, |
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 | |
/** | |
* Option 1 | |
* | |
* Sending in an Event class, custom for each event. | |
* NotificationBundle ships with default events, or | |
* user can implement their own. | |
*/ |
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
<fieldset> | |
{% block user_addresses %} | |
<a href="#" data-for="address_collection" class="add_item right small white radius button">Add Address</a> | |
<h5>Addresses</h5> | |
<p>Add addressses to be associated with this user.</p> | |
{% set userAddress = form.addresses.get('prototype') %} | |
<div class="collection" id="address_collection" data-prototype="{{ block('address_form')|escape }}"> |
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
/** | |
* @param MoneyInterface $defaultIncrementalFee | |
*/ | |
public function setDefaultIncrementalFee(MoneyInterface $defaultIncrementalFee) | |
{ | |
$this->_defaultIncrementalFee = $defaultIncrementalFee; | |
$this->defaultIncrementalFee = $defaultIncrementalFee->reduce()->getAmount(); | |
} | |
/** |
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 | |
protected function getEntityValues(ClassMetadata $metadata, $entity) | |
{ | |
$fields = $metadata->getFieldNames(); | |
$return = array(); | |
foreach ($fields AS $fieldName) { | |
$return[$fieldName] = $metadata->getFieldValue($entity, $fieldName); | |
} |
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 Infinite\BookingBundle\Form\Model; | |
use Infinite\BookingBundle\Entity\Resource; | |
class ResourceWrapper | |
{ | |
protected $resource; | |
public $baseAvailability = array(); |