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 | |
class Apis { | |
static function JsonGET( string $api_url, array $args = array() ) { | |
try { | |
$wp_error = null; | |
$args = wp_parse_args( $args, array( | |
'response_type' => ARRAY_A, | |
) ); |
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 | |
class Lazy_PDO | |
{ | |
private $pdo; | |
private $dsn, $username, $password, $options; | |
public function __construct($dsn, $username, $password, $options) { | |
$this->dsn = $dsn; | |
$this->username = $username; |
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 | |
class Closable_PDO | |
{ | |
private $pdo; | |
public function __construct($dsn, $username, $password, $options) { | |
$this->pdo = new PDO($dsn, $username, $password, $options); | |
} | |
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 | |
public function insert_booking_date_match(Array $dates, $rule_id) | |
{ | |
$sql = "-- insert_booking_date_match | |
BEGIN; | |
DELETE FROM | |
rule_booking_date_match | |
WHERE | |
rule_id = ".$rule_id." |
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
/*! | |
* jQuery TextChange Plugin | |
* http://www.zurb.com/playground/jquery-text-change-custom-event | |
* | |
* Copyright 2010, ZURB | |
* Released under the MIT License | |
*/ | |
(function ($) { | |
$.event.special.textchange = { |