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
orm: | |
auto_generate_proxy_classes: "%kernel.debug%" | |
entity_managers: | |
default: | |
connection: default | |
auto_mapping: true | |
dql: | |
string_functions: | |
HS_CONCAT_ADDRESS: AppBundle\DQL\HSConcatAddress | |
mappings: |
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 | |
/** | |
* @Author: Nathan Daly | |
* @Date: 17/04/15 | |
*/ | |
namespace AppBundle\Security; | |
use Doctrine\ORM\EntityManager; | |
use Symfony\Component\DependencyInjection\Container; |
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
/** | |
* Initialize form (extended from HouseSimple_Form) | |
* | |
* @return void | |
*/ | |
public function init() | |
{ | |
$this->setMethod('post'); | |
$this->setAttrib('class', 'Form Form--user'); | |
$this->setAction($this->getView()->url()); |
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
/** | |
* hs.property-questionnaire.js | |
* | |
* Property questionnaire scripts. | |
*/ | |
(function($) { | |
// Set-up questionnaire namespace. | |
Hs.questionnaire = {}; |
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 Application\Migrations; | |
use Doctrine\DBAL\Migrations\AbstractMigration; | |
use Doctrine\DBAL\Schema\Schema; | |
use Doctrine\DBAL\Types\Type; | |
/** | |
* Create tables for the referral system. |
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 Application\Migrations; | |
use Doctrine\DBAL\Migrations\AbstractMigration; | |
use Doctrine\DBAL\Schema\Schema; | |
/** | |
* Class Version20150625094625 | |
* @package Application\Migrations |
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 | |
printf("\r" . str_repeat("=", round(($key / $count) * 100)) . "> %d%% (%s/%s)", round(($key / $count) * 100), $key, $count); |
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
// Configure any shout boxes | |
$shoutBoxes = []; | |
$shouts = $this->entityManager->getRepository('AppBundle:ShoutBox') | |
->findBy(['active' => 'active', 'deleted' => 0]); | |
if (!empty($shouts)) { | |
foreach ($shouts as $shout) { | |
$shoutBoxes[] = [ | |
'name' => $shout->getName(), | |
'icon' => '', |
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
// Configure any shout boxes | |
$shoutBoxes = []; | |
$shouts = $this->entityManager->getRepository('AppBundle:ShoutBox') | |
->findBy(['active' => 'active', 'deleted' => 0]); | |
if (!empty($shouts)) { | |
foreach ($shouts as $index => $shout) { | |
$shoutBoxes[$index] = [ | |
'name' => $shout->getName(), | |
'icon' => '', |
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 AppBundle\Util; | |
use Buzz\Browser; | |
use Buzz\Exception\RequestException; | |
/** | |
* Class Buzz | |
* @package AppBundle\Util |