本文整理匯總了PHP中VirtueMartModelOrders::generateOrderNumber方法的典型用法代碼示例。如果您正苦於以下問題:PHP VirtueMartModelOrders::generateOrderNumber方法的具體用法?PHP VirtueMartModelOrders::generateOrderNumber怎麽用?PHP VirtueMartModelOrders::generateOrderNumber使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類VirtueMartModelOrders
的用法示例。
在下文中一共展示了VirtueMartModelOrders::generateOrderNumber方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: check
function check()
{
if (empty($this->order_number)) {
if (!class_exists('VirtueMartModelOrders')) {
require JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'orders.php';
}
$this->order_number = VirtueMartModelOrders::generateOrderNumber((string) time());
}
if (empty($this->order_pass)) {
$this->order_pass = 'p_' . substr(md5((string) time() . $this->order_number), 0, 5);
}
$adminID = JFactory::getSession()->get('vmAdminID');
if (isset($adminID)) {
$this->created_by = $adminID;
}
return parent::check();
}
示例2: check
function check()
{
if (empty($this->order_number)) {
if (!class_exists('VirtueMartModelOrders')) {
require JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'orders.php';
}
$this->order_number = VirtueMartModelOrders::generateOrderNumber((string) time());
}
if (empty($this->order_pass)) {
$this->order_pass = 'p_' . substr(md5((string) time() . $this->order_number), 0, 5);
}
return parent::check();
}
示例3: check
function check()
{
if (empty($this->order_number)) {
if (!class_exists('VirtueMartModelOrders')) {
require VMPATH_ADMIN . DS . 'models' . DS . 'orders.php';
}
$this->order_number = VirtueMartModelOrders::generateOrderNumber((string) time());
}
if (empty($this->order_pass)) {
$this->order_pass = 'p_' . substr(md5((string) time() . $this->order_number), 0, 5);
}
$adminID = JFactory::getSession()->get('vmAdminID', false);
if ($adminID) {
if (!class_exists('vmCrypt')) {
require VMPATH_ADMIN . DS . 'helpers' . DS . 'vmcrypt.php';
}
$adminID = vmCrypt::decrypt($adminID);
$this->created_by = $adminID;
}
return parent::check();
}