本文整理匯總了PHP中Gadget::date_do方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gadget::date_do方法的具體用法?PHP Gadget::date_do怎麽用?PHP Gadget::date_do使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Gadget
的用法示例。
在下文中一共展示了Gadget::date_do方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: define
define('AUTHORIZENET_DUPLICATE_WINDOW', '30');
} else {
die('invalid anet account specified in global.inc.php');
}
define('BASE_PATH', $_root_path);
define('BASE_URL', '/dev');
define('SITE_URL', 'localhost/madison/dev/');
//$dbi = new dbi('localhost', 'root', '', 'C271322_madison', false, false, false);
$dbi = new dbi('madisondb.db.11768123.hostedresource.com', 'madisondb', 'Rw820123!', 'madisondb', false, false, false);
//hashing constants
define('ROUNDS_STRONG', 80000);
define('ROUNDS_FAST', 5000);
define('CONFIRMATION_SALT', 'KU98ft67o8fv*(');
//current dates
if (!isset($base_date)) {
$base_date = new DateTime('now');
}
$base_date_formatted = $base_date->format('c');
//order by
Gadget::$date_ob = new DateTime("{$base_date_formatted} -18 hours");
Gadget::$date_ob->modify('next Saturday');
//delivered on
Gadget::$date_do = new DateTime("{$base_date_formatted} -18 hours");
Gadget::$date_do->modify('next Saturday');
Gadget::$date_do->modify('next Tuesday');
Gadget::$date_do_weekend = new DateTime("{$base_date_formatted} -18 hours");
Gadget::$date_do_weekend->modify('next Wednesday');
Gadget::$date_do_weekend->modify('next Friday');
define('TAX_RATE', 0.0225);
define('COST_REGULAR_SERVING', 13.5);
define('COST_VEGETARIAN_SERVING', 12.5);
示例2: dbi
$dbi = new dbi('76.162.254.169', 'C271322_madison', 'Rw820123!', 'C271322_madison', false, false, false);
//$dbi = new dbi('madisondb.db.11768123.hostedresource.com', 'C271322_madison', 'Rw820123!', 'C271322_madison', false, false, false);
//hashing constants
define('ROUNDS_STRONG', 80000);
define('ROUNDS_FAST', 5000);
define('CONFIRMATION_SALT', 'KU98ft67o8fv*(');
//current dates
if (!isset($base_date)) {
$base_date = new DateTime('now');
}
$base_date_formatted = $base_date->format('c');
//order by
Gadget::$date_ob = new DateTime("$base_date_formatted -24 hours");
Gadget::$date_ob->modify('next Saturday');
//delivered on
Gadget::$date_do = new DateTime("$base_date_formatted -24 hours");
Gadget::$date_do->modify('next Saturday');
Gadget::$date_do->modify('next Tuesday');
Gadget::$date_do_weekend = new DateTime("$base_date_formatted -24 hours");
Gadget::$date_do_weekend->modify('next Wednesday');
Gadget::$date_do_weekend->modify('next Friday');
define('TAX_RATE', .0225);
define('COST_REGULAR_SERVING', 13.50);
define('COST_VEGETARIAN_SERVING', 12.50);
?>