Skip to content

Instantly share code, notes, and snippets.

<?php
class WebWork extends Threaded {
private $dates;
public function __construct($dates) {
$this->complete = false;
$this->dates = $dates;
}
SearchForm.AgentHotelForm = {
currentFormSelector: '.searchFormHotels:visible',
currentCountryDataRequest: null,
init: function() {
$(".search_form.main_form.dark .scroll-box").mCustomScrollbar({
callbacks:{
onScroll: function() {
ui = $(this);
if(ui.hasClass('pagination') && this.mcs.topPct > 60) {
SearchForm.AgentHotelForm[ui.data('paginatefunc')](ui);
'urlManager' => [
'enablePrettyUrl' => true,
'enableStrictParsing' => false,
'showScriptName' => false,
'rules' => [
[
'class' => 'yii\rest\UrlRule',
'controller' => [ 'v1/referal', 'v1/traffic-source', 'v1/affiliate', 'v1/campaign', 'v1/news',
'v1/transactions-statistic', 'v1/payout', 'tickets/partner', 'tickets/manager',
'rotator/banner', 'rotator/config', 'v1/widgets', 'v1/rtb-container', 'v1/domains-parking',
<?php
class App
{
public static $app;
}
class Site
{
private $components;
<?php
class LitresXmlCommand extends CConsoleCommand
{
public $file;
public $covers_path;
private $message = "";
public function init()
{
var mapBox = null,
markersData = {},
infoWindow = null;
var bounds = new google.maps.LatLngBounds();
function deleteMarkers() {
for (var key in markersData) {
markersData[key].setMap(null);
markersData[key].setVisible(false);
}
<?php
require_once realpath ( dirname ( __FILE__ ) . '/../cli.php' );
error_reporting(E_ERROR);
set_time_limit(0);
ini_set('memory_limit', '128M');
class TezLV extends Tez_Db_Mixed
{
private $url = 'http://www.teztour.lv/?controller=hotel_out&l=1';
var SearchForm = {
_phrases: {
returnTicketNotNeeded: 'Return ticket is not needed',
allResorts: 'Все курорты',
allHotels: 'Все отели',
chooseTime: 'Указать время',
},
setPhrase: function (id, text) {
this._phrases[id] = text;
return this;
SearchForm.AgentHotelForm = {
currentFormSelector: '.searchFormHotels:visible',
init: function() {
$(".search_form.main_form.dark .scroll-box").mCustomScrollbar();
SearchForm.AgentHotelForm.bindCallbackChooseRegions();
SearchForm.AgentHotelForm.bindCallbackChooseHotels();
$('.star-rating a').click(function(e) {
e.preventDefault();
$(this).addClass('active');
$('.star-rating a').not($(this)).removeClass('active');
jQuery.fn.existsWithValue = function(val) {
return this.length && this.val().length && this.val()===val;
};
var TourSearchLoader = (function() {
'use strict';
var currentData = false;
var filtersJson = false;
var filtersUrl = false;
var proceedUrl = false;