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 | |
/** @ORM\Entity */ | |
class AttributeType | |
{ | |
/**... */ | |
private $id; | |
/** @ORM\Column(type="string") */ | |
private $name; |
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 Crana\OrdersBundle\EventListener; | |
use Symfony\Component\Form\Event\DataEvent; | |
use Symfony\Component\Form\FormConfigBuilder; | |
use Symfony\Component\Form\FormConfigInterface; | |
use Symfony\Component\Form\FormEvent; | |
use Symfony\Component\Form\FormFactoryInterface; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
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
<div class="nav-collapse collapse"> | |
{{ knp_menu_render('TaliceAdminBundle:Menu:main', { 'allow_safe_labels': true , 'nav_type': 'navbar' }) }} | |
<div class="navbar-text navbar-user pull-right"> | |
<div> | |
<a id="logoutLink" | |
data-shift="{{ shift_active() ? 'yes' : 'no' }}" | |
href="{{ path("user_logout_end_shift") }}"> | |
<i class="icon-off icon-white"></i> | |
</a> |
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
/home/user/app/logs/prod.log { | |
create 600 user group | |
notifempty | |
daily | |
rotate 14 | |
missingok | |
compress | |
mail email@address | |
} |
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
[2015-02-11 08:31:02] request.CRITICAL: Uncaught PHP Exception PDOException: "SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111)" at .../vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 {"exception":"[object] (PDOException(code: 2003): SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111) at .../vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40)"} {"token":"-daed1082","user":"Anonymous"} | |
[2015-02-11 08:31:02] request.CRITICAL: Uncaught PHP Exception PDOException: "SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111)" at .../vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 {"exception":"[object] (PDOException(code: 2003): SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111) at .../vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40)"} {"token":"-daed0da1","user":"Anonymous"} | |
[2015-02-11 08:31:05] request.CRITICAL: Uncaught PHP Exception PDOException: |
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 | |
/** | |
* Requires "google/apiclient" | |
*/ | |
class GoogleDriveRestore | |
{ | |
/** @var Google_Client */ | |
private $client; |
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 | |
$doctrine = ...; | |
foreach ($entities as $entity) { | |
$metadata = $doctrine->getEntityManager()->getClassMetadata($entity); | |
$query = $doctrine->getEntityManager()->getRepository($entity)->createQueryBuilder('o'); | |
foreach ($metadata->getAssociationMappings() as $association) { | |
$query->setFetchMode($entity, $association, 'EAGER'); | |
} | |
try { |
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 Contact | |
{ | |
/* @var Order[] */ | |
private $orders; | |
/** @var bool */ | |
private $deleted; | |
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
<p>Should you have any log in issues, content issues or need clinical support, please contact <strong>[email protected]</strong>.</p> | |
<p>For navigational help please copy and paste this link into your search engine | |
<em>http://eremote.crana.org.au/moodle/site_wide_files/UserGuide_eRemote_Vxx.pdf</em></p> | |
<p>This will take you to a user guide to be printed or saved to your computer to help you navigate around the | |
program.</p> | |
{% endif %} | |
<p>Regards,</p> | |
<p>eRemote Coordinator<br> |
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
$('[data-duplicate-check]').on('keyup change', '[data-duplicate-check-url]', _.debounce(function () { | |
var $field = $(this); | |
if($field.val().length < 3) { | |
return; | |
} | |
$.ajax({ | |
url: $field.attr('data-duplicate-check-url'), | |
data: {value: $field.val()} | |
}).done(function (data) { | |
$field.parent().find('.alert-box').remove(); |
OlderNewer