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
| all: | |
| user: | |
| class: myUser | |
| param: | |
| timeout: 3600 | |
| mailer: | |
| class: sfMailer | |
| param: | |
| logging: %SF_LOGGING_ENABLED% | |
| charset: %SF_CHARSET% |
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 <className> extends EntityRepository | |
| { | |
| }'; | |
| public function generateEntityRepositoryClass($fullClassName) | |
| { | |
| $namespace = substr($fullClassName, 0, strrpos($fullClassName, '\\')); | |
| $className = substr($fullClassName, strrpos($fullClassName, '\\') + 1, strlen($fullClassName)); |
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 <className> extends EntityRepository | |
| { | |
| }'; | |
| public function generateEntityRepositoryClass($fullClassName) | |
| { | |
| $namespace = $fullClassName->substr($fullClassName->pos('\\')); | |
| $className = $fullClassName->substr($fullClassName->pos('\\') + 1, $fullClassName->length()); |
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
| $("#user-score-div").slider({ | |
| max: 100, min: 0, value: val, | |
| change: function(e, ui){ | |
| $("#custom_segment_minimum_user_score").val( ui.value ); | |
| }, | |
| slide: function(e, ui){ | |
| var pos = $.extend({}, $(ui.handle).offset(), | |
| { width: $(ui.handle).get(0).offsetWidth, | |
| height: $(ui.handle).get(0).offsetHeight}); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <title> - jsFiddle demo</title> | |
| <script type='text/javascript' src='http://code.jquery.com/jquery-1.8.3.js'></script> | |
| <link rel="stylesheet" type="text/css" href="/css/normalize.css"> | |
| <script type="text/javascript" src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script> |
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
| public static function findOneById( $id ){ | |
| return self::getInstance()->createQuery("u")->where("u.id =?", $id)->execute()->getFirst(); | |
| } |
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
| foreach( $toEmail in $listOfEmails ){ | |
| $message = Swift_Message::newInstance() | |
| ->setFrom(sfConfig::get('app_sf_guard_plugin_default_from_email')) | |
| ->setTo( array(toEmail) ) | |
| ->setSubject("...") | |
| ->setBody( "..." ); | |
| sfContext::getInstance()->getMailer()->send($message); | |
| sleep(5); | |
| } |
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="form-radios" id="edit-field-uga-news-category-tid"><div class="bef-select-as-radios form-radios" id="edit-field-uga-news-category-tid"><div class="form-item form-type-radio form-item-field-uga-news-category-tid"> | |
| <input type="radio" class="form-radio" checked="checked" value="All" name="field_uga_news_category_tid" id="edit-field-uga-news-category-tid-all"> <label for="edit-field-uga-news-category-tid-all" class="option">- Any - </label> | |
| </div> | |
| <div class="form-item form-type-radio form-item-field-uga-news-category-tid"> | |
| <input type="radio" class="form-radio" value="2610" name="field_uga_news_category_tid" id="edit-field-uga-news-category-tid-2610"> <label for="edit-field-uga-news-category-tid-2610" class="option">Arts </label> | |
| </div> | |
| <div class="form-item form-type-radio form-item-field-uga-news-category-tid"> | |
| <input type="radio" class="form-radio" value="2611" name="field_uga_news_category_tid" id="edit-field-uga-news-category-tid-2611"> <label for="edit-field-uga-news-category-tid-2611" |
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
| Drupal.behaviors.jQueryFancyExposedFilters = { | |
| attach: function(context, settings) { | |
| $('.fancy-exposed-filters').each(function(){ | |
| // Stop this from firing twice | |
| if( $(this).find("form").data("fancyFilterBehaviorLoaded") ){ | |
| return true; | |
| } |
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
| <input type="file" id="fileUploads" name="file" multiple /> | |
| <div id="uploadContainer"> | |
| <div class="uploadedImage"> | |
| <img src="myimg.png"> | |
| </div> | |
| <span id="newImages"></span> | |
| </div> | |
| <div id="template"> | |
| <div class="uploadedImage"> |