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 | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: Marco Pivetta | |
* Date: 16.08.12 | |
* Time: 11:05 | |
* To change this template use File | Settings | File Templates. | |
*/ | |
class CriteriaTest extends \PHPUnit_Framework_TestCase | |
{ |
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
$('.sort-entity').each(function () { | |
var e = $(this); | |
var url = e.data('url'); | |
var entity = e.data('entity'); | |
e.find('td').each(function(){ | |
$(this).css('width', $(this).width() +'px'); | |
}); | |
e.sortable({ | |
update: function (event, ui) { | |
var $postData = {}; |
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
/** | |
* Curl request | |
* @param type $url | |
* @return type | |
*/ | |
public function getCurlResponse($url) { | |
$ch_req = curl_init(); | |
curl_setopt($ch_req, CURLOPT_URL, $url); | |
curl_setopt($ch_req, CURLOPT_NOPROGRESS, 1); | |
curl_setopt($ch_req, CURLOPT_VERBOSE, 0); |
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
"INSERT INTO SC_brands_categories (".implode(",", array_keys($c_value)).") VALUES(".implode(",", $c_value).") ON DUPLICATE KEY UPDATE ".implode(",", $update_array) |
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
/** | |
* Implementation of hook_entity_info_alter(). | |
* | |
* Redirect any links to program taxonomy terms to their corresponding node page. | |
*/ | |
function content_recipe_entity_info_alter(&$entity_info) { | |
$entity_info['taxonomy_term']['uri callback'] = 'content_recipe_taxonomy_term_uri'; | |
} | |
/** |
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
function delete_property_image_hi_res(image_id, image_type) | |
{ | |
image_type = image_type || 'hires'; |