本文整理汇总了PHP中Attribute::errorHandler方法的典型用法代码示例。如果您正苦于以下问题:PHP Attribute::errorHandler方法的具体用法?PHP Attribute::errorHandler怎么用?PHP Attribute::errorHandler使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Attribute
的用法示例。
在下文中一共展示了Attribute::errorHandler方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: errorHandler
static function errorHandler()
{
return Attribute::errorHandler();
}
示例2: _shopUpdate
//.........这里部分代码省略.........
$table_name = DBPREFIX . 'module_shop_products_downloads';
if (Cx\Lib\UpdateUtil::table_exist($table_name)) {
Cx\Lib\UpdateUtil::drop_table($table_name);
}
// Note: The id field is removed for version 3 from the following
// three tables
$table_name = DBPREFIX . 'module_shop_rel_countries';
if (Cx\Lib\UpdateUtil::table_exist($table_name) && Cx\Lib\UpdateUtil::column_exist($table_name, 'id')) {
Cx\Lib\UpdateUtil::table($table_name, array('id' => array('type' => 'INT(10)', 'unsigned' => true, 'notnull' => true, 'auto_increment' => true, 'primary' => true), 'zones_id' => array('type' => 'INT(10)', 'unsigned' => true, 'notnull' => true, 'default' => '0'), 'countries_id' => array('type' => 'INT(10)', 'unsigned' => true, 'notnull' => true, 'default' => '0')));
}
$table_name = DBPREFIX . 'module_shop_rel_payment';
Cx\Lib\UpdateUtil::table($table_name, array('id' => array('type' => 'INT(10)', 'unsigned' => true, 'notnull' => true, 'auto_increment' => true, 'primary' => true), 'zones_id' => array('type' => 'INT(10)', 'unsigned' => true, 'notnull' => true, 'default' => '0'), 'payment_id' => array('type' => 'INT(10)', 'unsigned' => true, 'notnull' => true, 'default' => '0')));
Cx\Lib\UpdateUtil::sql('
INSERT IGNORE INTO `' . DBPREFIX . 'module_shop_rel_payment` (`zones_id`, `payment_id`)
VALUES (1,16),
(1,17),
(1,18)
');
// Note: This is renamed to module_shop_rel_shipper for version 3.0
$table_name = DBPREFIX . 'module_shop_rel_shipment';
if (Cx\Lib\UpdateUtil::table_exist($table_name) && Cx\Lib\UpdateUtil::column_exist($table_name, 'id')) {
Cx\Lib\UpdateUtil::table($table_name, array('id' => array('type' => 'INT(10)', 'unsigned' => true, 'notnull' => true, 'auto_increment' => true, 'primary' => true), 'zones_id' => array('type' => 'INT(10)', 'unsigned' => true, 'notnull' => true, 'default' => '0'), 'shipment_id' => array('type' => 'INT(10)', 'unsigned' => true, 'notnull' => true, 'default' => '0')));
}
$table_name = DBPREFIX . 'module_shop_vat';
if (Cx\Lib\UpdateUtil::table_exist($table_name) && Cx\Lib\UpdateUtil::column_exist($table_name, 'class')) {
Cx\Lib\UpdateUtil::table($table_name, array('id' => array('type' => 'INT(10)', 'unsigned' => true, 'notnull' => true, 'auto_increment' => true, 'primary' => true), 'class' => array('type' => 'TINYTEXT'), 'percent' => array('type' => 'DECIMAL(5,2)', 'unsigned' => true, 'notnull' => true, 'default' => '0.00')));
}
$table_name = DBPREFIX . 'module_shop_zones';
if (Cx\Lib\UpdateUtil::table_exist($table_name) && Cx\Lib\UpdateUtil::column_exist($table_name, 'zones_id')) {
Cx\Lib\UpdateUtil::table($table_name, array('zones_id' => array('type' => 'INT(10)', 'unsigned' => true, 'notnull' => true, 'auto_increment' => true, 'primary' => true), 'zones_name' => array('type' => 'VARCHAR(64)', 'notnull' => true, 'default' => ''), 'activation_status' => array('type' => 'TINYINT(1)', 'unsigned' => true, 'notnull' => true, 'default' => '1')));
}
// Contrexx 3.0.0 updates from here.
// NOTE: All of these methods return false.
Attribute::errorHandler();
Coupon::errorHandler();
// Prerequisites:
// ShopSettings::errorHandler();
//ShopSettings::errorHandler(); // Called by Coupon::errorHandler();Customer::errorHandler();Order::errorHandler();ShopCategory::errorHandler();
// Prerequisites:
// \Cx\Core\Setting\Controller\Setting::errorHandler();
Currency::errorHandler();
// Prerequisites:
// Text::errorHandler();
//Text::errorHandler(); // Called by Currency::errorHandler();Product::errorHandler();Payment::errorHandler();ShopCategory::errorHandler();
Product::errorHandler();
// Prerequisites:
// Text::errorHandler();
// Discount::errorHandler(); // Called by Customer::errorHandler();
// Manufacturer::errorHandler();
// Postrequisites:
// Customer::errorHandler();
//Discount::errorHandler(); // Called by Customer::errorHandler();
//Manufacturer::errorHandler(); // Called by Product::errorHandler();
// Prerequisites:
// Text::errorHandler();
//Customer::errorHandler(); // Called by Product::errorHandler();
// Prerequisites:
// ShopSettings::errorHandler();
// Country::errorHandler(); // Called by Order::errorHandler();
// Order::errorHandler(); // Calls required Country::errorHandler();
// Discount::errorHandler(); // Called by Product::errorHandler();
//Order::errorHandler(); // Called by Customer::errorHandler();
// Prerequisites:
// ShopSettings::errorHandler();
// Country::errorHandler();
ShopMail::errorHandler();