Origin database can work since it is just an adapter.
$db = JFactory::getDbo();
$db->setQuery($query)->execute();
<?php | |
// Origin | |
// ----------------------------------------------------------------------------------------- | |
$rootCategory = $this->getRootCategory(); | |
$db = $this->getDbo(); | |
$start_time = microtime(TRUE); | |
foreach (range(1,500) as $r): |
// Example JS | |
var RxresidentList = { | |
/** | |
* | |
*/ | |
init : function(option, $) | |
{ | |
this.root = option.root || 'http://localhost'; |
The Google Cloud Storage package is designed to be a straightforward interface for working with Google Cloud Storage. It is based on version 2.0 of the Google Cloud Storage XML API. You can find documentation on the API at https://developers.google.com/storage/docs/xml-api-overview.
Google Cloud Storage is built upon the Http package which provides an easy way to consume URLs and web services in a transport independent way.
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
Function.prototype.overloadSetter = function(usePlural) | |
{ | |
var self = this; | |
return function(a, b) | |
{ | |
if (a == null) | |
{ | |
return this; | |
} |
/** | |
* Parse variable {{name}}. | |
* | |
* Example: If we use `parseVariable('Hi {{name}}~~~', {name: 'Simon'})`, this function will return `Hi Simon~~~`. | |
* | |
* @param {string} string | |
* @param {Object} data | |
* | |
* @returns {string} | |
*/ |
/*! | |
* The simple JS URI object. | |
* | |
* @license GNU General Public License version 2 or later; see LICENSE | |
* @link https://gist.github.com/asika32764/6556efdf5c593ce140bb | |
*/ | |
/** | |
* The simple JS URI object. | |
* |
<?php | |
function ordutf8($string, &$offset) { | |
$code = ord(substr($string, $offset,1)); | |
if ($code >= 128) { //otherwise 0xxxxxxx | |
if ($code < 224) $bytesnumber = 2; //110xxxxx | |
else if ($code < 240) $bytesnumber = 3; //1110xxxx | |
else if ($code < 248) $bytesnumber = 4; //11110xxx | |
$codetemp = $code - 192 - ($bytesnumber > 2 ? 32 : 0) - ($bytesnumber > 3 ? 16 : 0); | |
for ($i = 2; $i <= $bytesnumber; $i++) { |