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 | |
/* | |
* $Id: UnitOfWork.php 7684 2010-08-24 16:34:16Z jwage $ | |
* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
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 | |
/** | |
* FileRelation | |
* | |
* | |
* @package shop | |
* @subpackage model | |
* @author Christian Schaefer <caefer@ical.ly> | |
* @author Ludovic Fleury <ludovic.fleury@w3brothers.com> |
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
app/routing.yml | |
In this example, my Model is identified by A string + an id. | |
That's why I specified requirements. | |
attached_file: | |
class: sfDoctrineRouteCollection | |
options: | |
model: AttachedFile | |
module: attachment | |
prefix_path: /attachment |
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
// Ouvre le premier lien enfant de l'élément cible | |
// Reproduit le comportement des navigateurs (ctrl ou cmd ou middleclick = nouvel onglet) | |
$('.line-click').live('click', function(e){ | |
e.stopPropagation(); | |
href = $(this).children('a:first').attr('href'); | |
if (e.ctrlKey || e.metaKey || e.which == 2) { | |
window.open(href); | |
} else { | |
window.location = href; | |
} |
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
// Ouvre le premier lien enfant de l'élément cible | |
// Reproduit le comportement des navigateurs (ctrl ou cmd ou middleclick = nouvel onglet) | |
$('.line-click').live('click', function(e){ | |
e.stopPropagation(); | |
href = $(this).children('a:first').attr('href'); | |
if (e.ctrlKey || e.metaKey || e.which == 2) { | |
window.open(href); | |
} else { | |
window.location = href; | |
} |
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 | |
class sdzDoctrineGenerateMigrationsDiffTask extends sfDoctrineBaseTask | |
{ | |
/** | |
* @see sfTask | |
*/ | |
protected function configure() | |
{ | |
$this->addOptions(array( |
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
## Default rules =============================================================== | |
homepage: | |
url: / | |
param: | |
module: home | |
action: index | |
sf_format: html | |
<?php foreach(glob(dirname(__FILE__).DIRECTORY_SEPARATOR.'routing'.DIRECTORY_SEPARATOR.'*.yml') as $yml){ require($yml); echo "\n"; } ?> |
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 getHandInfo() { | |
$straight_courant = 0; | |
foreach($this->hcard as $hcard) { | |
if($hcard > 0) { | |
if($hcard == '2') { | |
$this->pair++; | |
} | |
elseif($hcard == '3') { | |
$this->threeKind++; |
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
set :shared_files, [app_path + "/config/parameters.yml"] | |
namespace :symfony do | |
namespace :configure do | |
def shared_parameters_path | |
"#{shared_path}/#{app_path}/config/parameters.yml" | |
end | |
def app_parameters_path | |
"#{latest_release}/#{app_path}/config/parameters.yml" |
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
#!/usr/bin/env php | |
<?php | |
/* | |
* Coding Standards (a.k.a. CS) | |
* | |
* This script is designed to clean up the source files and thus follow coding | |
* conventions. | |
* | |
* @see http://symfony.com/doc/2.0/contributing/code/standards.html | |
* |
OlderNewer