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 | |
$questions = sfConfig::get('form_questions'); | |
foreach($questions as $question) | |
{ | |
$choices = sfConfig::get('form_questions_' . $question . '_choices'); | |
$valid = sfConfig::get('form_questions_' . $question . '_valid'); | |
$this->widgetSchema[$question] = new sfWidgetFormInputChoice(array('choices' => sfconfig::get($choices))); |
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
Comunication: | |
relations: | |
Pages: | |
class: Comunication | |
local: comunication1 | |
foreign: comunication2 | |
refClass: ComunicationReference | |
equal: true | |
ComunicationReference: |
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 | |
$this->object->link('Pages', array_values($link)); |
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 $WORKSPACE/trunk/symfony configure:database "mysql:host=localhost;dbname=hudson" hudson huduser --env=test | |
php $WORKSPACE/trunk/symfony doctrine:build --all --and-load --env=test --no-confirmation | |
php $WORKSPACE/trunk/symfony project:permission | |
php $WORKSPACE/trunk/symfony test:all --xml=log/build_$BUILD_NUMBER.xml |
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
$query->andWhere(" | |
((title LIKE '%$search%') OR | |
(intro LIKE '%$search%') OR | |
(description LIKE '%$search%')) | |
"); |
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
class sfDateFormat | |
{ | |
/** | |
* A list of tokens and their function call. | |
* @var array | |
*/ | |
protected $tokens = array( | |
'G' => 'Era', | |
'y' => 'year', | |
'M' => 'mon', |
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
<ul> | |
<?php for($x = 0; $x < $missions->count(); $x++): ?> | |
<li id="<?php echo $x; ?>"> | |
<a href="<?php echo url_for('mission_show', array('id' => $missions[$x]['id'])); ?>"> | |
<?php echo $missions[$x]['title']; ?> | |
</a> | |
</li> | |
<?php endfor; ?> | |
</ul> |
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
$actions = Doctrine::getTable('Actions')->createQuery('u') | |
->andWhereIN('id', array()) | |
->execute(); |
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 | |
$databaseManager = new sfDatabaseManager($this->configuration); | |
$connection = $databaseManager->getDatabase($options['connection'])->getConnection(); | |
$users = Doctrine::getTable('sfGuardUser')->createQuery()->limit(100)->execute(); | |
$start = microtime(true); | |
$u = $users->toKeyValueArray('id', 'username'); | |
$end = microtime(true); |
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 | |
$html = '...'; | |
$start = microtime(TRUE); | |
ob_start(); | |
echo $html; | |
$output = ob_get_clean(); | |
echo $output; | |
$end = microtime(TRUE); |