• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getNextSequence函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getNextSequence函数的典型用法代码示例。如果您正苦于以下问题:PHP getNextSequence函数的具体用法?PHP getNextSequence怎么用?PHP getNextSequence使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getNextSequence函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: moduleInstall

 /**
  * @brief 설치시 추가 작업이 필요할시 구현
  **/
 function moduleInstall()
 {
     /**
      * planet 이라는 mid를 미리 입력해 놓음
      * 이 mid는 차후 수정 가능하고 planet 메인 페이지를 사용하기 위한 더미 형식의 mid로 사용됨.
      * 만약 이미 존재하는 경우를 대비해서 뒤에 숫자를 붙이도록 함.
      **/
     $oModuleModel =& getModel('module');
     $oModuleController =& getController('module');
     $oPlanetController =& getController('planet');
     $module_info = $oModuleModel->getModuleConfig('planet');
     if ($module_info->mid) {
         $_o = executeQuery('module.getMidInfo', $module_info);
         if (!$_o->data) {
             unset($module_info);
         }
     }
     if (!$module_info->mid) {
         $args->module = 'planet';
         $args->browser_title = 'planetXE';
         $args->skin = 'xe_planet';
         $args->is_default = 'N';
         $args->mid = 'planet';
         $args->module_srl = getNextSequence();
         $output = $oModuleController->insertModule($args);
         $planet_args->mid = $args->mid;
         $oPlanetController->insertPlanetConfig($planet_args);
     }
     // 2009. 01. 29 아이디 클릭시 나타나는 팝업메뉴에 플래닛 보기 기능 추가
     $oModuleController->insertTrigger('member.getMemberMenu', 'planet', 'controller', 'triggerMemberMenu', 'after');
     // 2009. 05. 07 개별 플래닛에서 메인 플래닛의 레이아웃을 승계하기 위한 트리거 추가
     $oModuleController->insertTrigger('moduleHandler.init', 'planet', 'controller', 'triggerSetLayout', 'after');
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:36,代码来源:planet.class.php


示例2: insertCart

 public function insertCart(Cart &$cart)
 {
     if ($cart->cart_srl) {
         throw new ShopException('A srl must NOT be specified for the insert operation!');
     }
     $cart->cart_srl = getNextSequence();
     return $this->query('insertCart', get_object_vars($cart));
 }
开发者ID:haegyung,项目名称:xe-module-shop,代码行数:8,代码来源:CartRepository.php


示例3: insertPluginInfo

 /**
  * Inserts a plugin in the database
  *
  * @param AbstractPlugin $payment_method
  * @return mixed|void
  * @throws ShopException
  */
 protected function insertPluginInfo(AbstractPlugin $payment_method)
 {
     $payment_method->id = getNextSequence();
     $output = executeQuery('shop.insertPaymentMethod', $payment_method);
     if (!$output->toBool()) {
         throw new ShopException($output->getMessage(), $output->getError());
     }
 }
开发者ID:haegyung,项目名称:xe-module-shop,代码行数:15,代码来源:PaymentMethodRepository.php


示例4: insert

 /**
  * insert function
  * @param Shipment $shipment
  * @return object
  * @throws ShopException
  */
 public function insert(Shipment &$shipment)
 {
     if ($shipment->shipment_srl) {
         throw new ShopException('A srl must NOT be specified for the insert operation!');
     }
     $shipment->shipment_srl = getNextSequence();
     return $this->query('insertShipment', get_object_vars($shipment));
 }
开发者ID:haegyung,项目名称:xe-module-shop,代码行数:14,代码来源:ShipmentRepository.php


示例5: insert

 /**
  * insert Address
  * @param Address $address
  * @return object
  * @throws ShopException
  */
 public function insert(Address &$address)
 {
     if ($address->address_srl) {
         throw new ShopException('A srl must NOT be specified for the insert operation!');
     }
     $address->address_srl = getNextSequence();
     return $this->query('insertAddress', get_object_vars($address));
 }
开发者ID:haegyung,项目名称:xe-module-shop,代码行数:14,代码来源:AddressRepository.php


示例6: insert

 /**
  * insert function
  * @param Invoice $invoice
  * @return object
  * @throws ShopException
  */
 public function insert(Invoice &$invoice)
 {
     if ($invoice->invoice_srl) {
         throw new ShopException('A srl must NOT be specified for the insert operation!');
     }
     $invoice->invoice_srl = getNextSequence();
     return $this->query('insertInvoice', get_object_vars($invoice));
 }
开发者ID:haegyung,项目名称:xe-module-shop,代码行数:14,代码来源:InvoiceRepository.php


示例7: insert

 public function insert(Order &$order)
 {
     if ($order->order_srl) {
         throw new ShopException('A srl must NOT be specified for the insert operation!');
     }
     $order->order_srl = getNextSequence();
     return $this->query('insertOrder', get_object_vars($order));
 }
开发者ID:haegyung,项目名称:xe-module-shop,代码行数:8,代码来源:OrderRepository.php


示例8: insertCategory

 /**
  * Insert a new Product category; returns the ID of the newly created record.
  *
  * @param Category $category Category to inserted
  *
  * @throws ShopException
  * @return category_srl int
  */
 public function insertCategory(Category $category)
 {
     $category->category_srl = getNextSequence();
     $category->list_order = $category->parent_srl;
     $output = executeQuery('shop.insertCategory', $category);
     if (!$output->toBool()) {
         throw new ShopException($output->getMessage(), $output->getError());
     }
     return $category->category_srl;
 }
开发者ID:haegyung,项目名称:xe-module-shop,代码行数:18,代码来源:CategoryRepository.php


示例9: insertMessage

 /**
  * @brief 메시지 기록
  */
 function insertMessage($obj)
 {
     $this->_filter($obj->type, array('S', 'R'), 'R');
     $this->_filter($obj->is_readed, array('Y', 'N'), 'N');
     $args->message_srl = $obj->message_srl ? $obj->message_srl : getNextSequence();
     $args->domain = $this->cleanDomain($obj->domain);
     $args->type = $obj->type;
     $args->is_readed = $obj->is_readed;
     $args->title = $obj->title;
     $args->content = $obj->content;
     return executeQuery('alliance.insertMessage', $args);
 }
开发者ID:haegyung,项目名称:alliancexe,代码行数:15,代码来源:alliance.controller.php


示例10: procNotificationAdminInsert

 /**
  * @brief notification append
  **/
 function procNotificationAdminInsert()
 {
     $params = Context::gets('content', 'mail_content', 'module_srls', 'msgtype', 'sending_method', 'cellphone_fieldname', 'use_authdata');
     $extra_vars = new StdClass();
     $extra_vars->sender_phone = Context::get('sender_phone');
     $extra_vars->admin_phones = Context::get('admin_phones');
     $extra_vars->admin_emails = Context::get('admin_emails');
     $extra_vars->cellphone_fieldname = Context::get('cellphone_fieldname');
     $extra_vars->use_authdata = Context::get('use_authdata');
     $extra_vars->reverse_notify = Context::get('reverse_notify');
     $extra_vars->use_extravar = Context::get('use_extravar');
     $extra_vars->use_extravar_email = Context::get('use_extravar_email');
     $extra_vars->force_notify = Context::get('force_notify');
     $extra_vars->email_sender_name = Context::get('email_sender_name');
     $extra_vars->email_sender_address = Context::get('email_sender_address');
     $params->notification_srl = Context::get('noti_srl');
     if ($params->notification_srl) {
         // delete existences
         $args->notification_srl = $params->notification_srl;
         $output = executeQuery('notification.deleteNotiCom', $args);
         if (!$output->toBool()) {
             return $output;
         }
         $output = executeQuery('notification.deleteNotificationModuleSrl', $args);
         if (!$output->toBool()) {
             return $output;
         }
     } else {
         // new sequence
         $params->notification_srl = getNextSequence();
     }
     // insert module srls
     $module_srls = explode(',', $params->module_srls);
     foreach ($module_srls as $srl) {
         unset($args);
         $args->notification_srl = $params->notification_srl;
         $args->module_srl = $srl;
         $output = executeQuery('notification.insertNotificationModuleSrl', $args);
         if (!$output->toBool()) {
             return $output;
         }
     }
     $params->extra_vars = serialize($extra_vars);
     // insert notification
     $output = executeQuery('notification.insertNotiCom', $params);
     if (!$output->toBool()) {
         return $output;
     }
     $redirectUrl = getNotEncodedUrl('', 'module', 'admin', 'act', 'dispNotificationAdminModify', 'notification_srl', $params->notification_srl);
     $this->setRedirectUrl($redirectUrl);
 }
开发者ID:kang85,项目名称:xe-module-notification,代码行数:54,代码来源:notification.admin.controller.php


示例11: insertTrash

 /**
  * object insert to trash
  * @param TrashVO $obj
  * @return Object
  */
 function insertTrash($obj)
 {
     $logged_info = Context::get('logged_info');
     $oTrashVO = new TrashVO();
     $oTrashVO =& $obj;
     if (!$oTrashVO->getTrashSrl()) {
         $oTrashVO->setTrashSrl(getNextSequence());
     }
     if (!is_string($oTrashVO->getSerializedObject())) {
         $oTrashVO->setSerializedObject(serialize($oTrashVO->getSerializedObject()));
     }
     $oTrashVO->setIpaddress($_SERVER['REMOTE_ADDR']);
     $oTrashVO->setRemoverSrl($logged_info->member_srl);
     $oTrashVO->setRegdate(date('YmdHis'));
     return executeQuery('trash.insertTrash', $oTrashVO);
 }
开发者ID:rhymix,项目名称:rhymix,代码行数:21,代码来源:trash.admin.controller.php


示例12: insertAttribute

 /**
  * Insert a new attribute; returns the ID of the newly created record
  *
  * @author Florin Ercus ([email protected])
  * @param $attribute Attribute
  * @return int
  */
 public function insertAttribute(Attribute &$attribute)
 {
     if ($attribute->attribute_srl) {
         throw new ShopException('A srl must NOT be specified');
     }
     $attribute->attribute_srl = getNextSequence();
     if (count($attribute->values) == 0) {
         unset($attribute->values);
     } else {
         $attribute->values = implode('|', array_map('trim', explode('|', $attribute->values)));
     }
     $output = executeQuery('shop.insertAttribute', $attribute);
     self::check($output);
     $this->insertAttributeScope($attribute);
     return $output;
 }
开发者ID:haegyung,项目名称:xe-module-shop,代码行数:23,代码来源:AttributeRepository.php


示例13: procPaynotyAdminInsert

	/**
	 * @brief saving config values.
	 **/
	function procPaynotyAdminInsert() 
	{
		$params = Context::gets('admin_phones','admin_emails','sender_name','sender_email','content','mail_content','module_srls','msgtype','sending_method');
		$params->config_srl = Context::get('config_srl');

		if ($params->config_srl) 
		{
			// delete existences
			$args->config_srl = $params->config_srl;
			$output = executeQuery('paynoty.deleteConfig', $args);
			if (!$output->toBool()) return $output;
			$output = executeQuery('paynoty.deleteModule', $args);
			if (!$output->toBool()) return $output;
		}
		else
		{
			// new sequence
			$params->config_srl = getNextSequence();
		}

		// insert module srls
		$module_srls = explode(',', $params->module_srls);
		foreach ($module_srls as $srl) 
		{
			unset($args);
			$args->config_srl = $params->config_srl;
			$args->module_srl = $srl;
			$output = executeQuery('paynoty.insertModuleSrl', $args);
			if (!$output->toBool()) return $output;
		}

		//$params->extra_vars = serialize($extra_vars);

		debugPrint('params : ' . serialize($params));
		// insert paynoty
		$output = executeQuery('paynoty.insertConfig', $params);
		debugPrint('insertConfig : ' . serialize($output));
		if (!$output->toBool()) 
		{
			return $output;
		}

		$redirectUrl = getNotEncodedUrl('', 'module', 'admin', 'act', 'dispPaynotyAdminModify','config_srl',$params->config_srl);
		$this->setRedirectUrl($redirectUrl);
	}
开发者ID:WEN2ER,项目名称:nurigo,代码行数:48,代码来源:paynoty.admin.controller.php


示例14: procLayoutAdminInsert

 /**
  * @brief 레이아웃 신규 생성
  * 레이아웃의 신규 생성은 제목만 받아서 layouts테이블에 입력함
  **/
 function procLayoutAdminInsert()
 {
     // 레이아웃 생성과 관련된 기본 정보를 받음
     $site_module_info = Context::get('site_module_info');
     $args->site_srl = (int) $site_module_info->site_srl;
     $args->layout_srl = getNextSequence();
     $args->layout = Context::get('layout');
     $args->title = Context::get('title');
     // DB 입력
     $output = $this->insertLayout($args);
     if (!$output->toBool()) {
         return $output;
     }
     // faceOff 레이아웃일 경우 init 필요
     $this->initLayout($args->layout_srl, $args->layout);
     // 결과 리턴
     $this->add('layout_srl', $args->layout_srl);
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:22,代码来源:layout.admin.controller.php


示例15: addNewTrans

 function addNewTrans($content)
 {
     $args->translation_content_srl = getNextSequence();
     $args->content_node = $key;
     $args->content = strval($content);
     $oTranslationModel =& getModel('translation');
     $default_contents = $oTranslationModel->getDefaultTargetContents($args);
     if ($default_contents) {
         $args->is_new_lang = 0;
     } else {
         $args->is_new_lang = 1;
     }
     $output = executeQuery('translation.insertXMLContents', $args);
     if (!$output->toBool()) {
         return $output;
     }
     $this->add('translation_content_srl', $args->translation_content_srl);
 }
开发者ID:laiello,项目名称:xe-translation,代码行数:18,代码来源:translation.model.php


示例16: procEpayAdminInsertPlugin

 /**
  * @brief insert plugin info. (it will be deleted in the future)
  */
 function procEpayAdminInsertPlugin()
 {
     $plugin_srl = getNextSequence();
     $args->plugin_srl = $plugin_srl;
     $args->plugin = Context::get('plugin');
     $args->title = Context::get('title');
     $output = executeQuery("epay.insertPlugin", $args);
     if (!$output->toBool()) {
         return $output;
     }
     require_once _XE_PATH_ . 'modules/epay/epay.plugin.php';
     require_once _XE_PATH_ . 'modules/epay/plugins/' . $args->plugin . '/' . $args->plugin . '.plugin.php';
     $tmp_fn = create_function('', "return new {$args->plugin}();");
     $oPlugin = $tmp_fn();
     if (@method_exists($oPlugin, 'pluginInstall')) {
         $oPlugin->pluginInstall($args);
     }
     // 결과 리턴
     $this->add('plugin_srl', $plugin_srl);
 }
开发者ID:umjinsun12,项目名称:dngshin,代码行数:23,代码来源:epay.admin.controller.php


示例17: insertProduct

 /**
  * Insert a new Product  returns the ID of the newly created record
  * @param Product $product
  * @return mixed
  * @throws ShopException
  */
 public function insertProduct(Product $product)
 {
     $product->product_srl = getNextSequence();
     if ($product->discount_price >= $product->price) {
         throw new ShopException("Discount price is bigger than normal price");
     }
     $output = executeQuery('shop.insertProduct', $product);
     if (!$output->toBool()) {
         throw new ShopException($output->getMessage(), $output->getError());
     } else {
         $this->insertProductCategories($product);
         $this->insertProductAttributes($product);
         if ($product->product_type == 'configurable') {
             $this->insertProductConfigurableAttributes($product);
         }
         $this->insertProductImages($product);
     }
     $slug = ShopUtils::slugify($product->title);
     return $product->product_srl;
 }
开发者ID:haegyung,项目名称:xe-module-shop,代码行数:26,代码来源:ProductRepository.php


示例18: procMagiccontentSetup

 function procMagiccontentSetup()
 {
     $req = Context::getRequestVars();
     $widget_sequence = $req->widget_sequence;
     $is_complete = $req->is_complete;
     unset($req->is_complete);
     unset($req->widget_sequence);
     unset($req->act);
     foreach ($req as $key => $value) {
         if ($value == '') {
             unset($req->{$key});
         }
     }
     $serialize_data = serialize($req);
     $args = new stdClass();
     $args->data = $serialize_data;
     $args->widget_sequence = $widget_sequence;
     $args->is_complete = $is_complete;
     if ($is_complete == 1) {
         $dargs = new stdClass();
         $dargs->widget_sequence = $widget_sequence;
         $dargs->is_complete = 0;
         $output = executeQuery('magiccontent.deleteMagicContentData', $dargs);
     }
     $oMagiccontentModel =& getModel('magiccontent');
     if ($oMagiccontentModel->getSetupData($widget_sequence, $is_complete) === false) {
         $args->data_srl = getNextSequence();
         $output = executeQuery('magiccontent.insertMagicContentData', $args);
     } else {
         $output = executeQuery('magiccontent.updateMagicContentData', $args);
     }
     $oCacheHandler = CacheHandler::getInstance('template');
     if ($oCacheHandler->isSupport()) {
         $key = 'widget_cache:' . $widget_sequence;
         $oCacheHandler->delete($key);
     }
     $lang_type = Context::getLangType();
     $cache_file = sprintf('%s%d.%s.cache', $this->cache_path, $widget_sequence, $lang_type);
     FileHandler::removeFile($cache_file);
     return new Object(0, 'success');
 }
开发者ID:ilbecms,项目名称:xe_module_magiccontent,代码行数:41,代码来源:magiccontent.controller.php


示例19: triggerAfterMailSend

 /**
  * After mail send trigger.
  */
 public function triggerAfterMailSend($mail)
 {
     $config = $this->getConfig();
     if (toBool($config->log_sent_mail) || toBool($config->log_errors) && count($mail->errors)) {
         $obj = new \stdClass();
         $obj->mail_srl = getNextSequence();
         $obj->mail_from = '';
         $obj->mail_to = '';
         if ($real_sender = $mail->message->getFrom()) {
             foreach ($real_sender as $email => $name) {
                 $obj->mail_from .= (strval($name) !== '' ? "{$name} <{$email}>" : $email) . "\n";
             }
         }
         if ($real_to = $mail->message->getTo()) {
             foreach ($real_to as $email => $name) {
                 $obj->mail_to .= (strval($name) !== '' ? "{$name} <{$email}>" : $email) . "\n";
             }
         }
         if ($real_cc = $mail->message->getCc()) {
             foreach ($real_cc as $email => $name) {
                 $obj->mail_to .= (strval($name) !== '' ? "{$name} <{$email}>" : $email) . "\n";
             }
         }
         if ($real_bcc = $mail->message->getBcc()) {
             foreach ($real_bcc as $email => $name) {
                 $obj->mail_to .= (strval($name) !== '' ? "{$name} <{$email}>" : $email) . "\n";
             }
         }
         $obj->mail_from = trim($obj->mail_from);
         $obj->mail_to = trim($obj->mail_to);
         $obj->subject = $mail->message->getSubject();
         $obj->calling_script = $mail->getCaller();
         $obj->sending_method = strtolower(class_basename($mail->driver));
         $obj->status = !count($mail->errors) ? 'success' : 'error';
         $obj->errors = count($mail->errors) ? implode("\n", $mail->errors) : null;
         $output = executeQuery('advanced_mailer.insertLog', $obj);
         if (!$output->toBool()) {
             return $output;
         }
     }
 }
开发者ID:rhymix,项目名称:rhymix,代码行数:44,代码来源:advanced_mailer.controller.php


示例20: procOpageAdminInsert

 /**
  * @brief 외부페이지 추가
  **/
 function procOpageAdminInsert()
 {
     // module 모듈의 model/controller 객체 생성
     $oModuleController =& getController('module');
     $oModuleModel =& getModel('module');
     // 게시판 모듈의 정보 설정
     $args = Context::getRequestVars();
     $args->module = 'opage';
     $args->mid = $args->opage_name;
     unset($args->opage_name);
     // module_srl이 넘어오면 원 모듈이 있는지 확인
     if ($args->module_srl) {
         $module_info = $oModuleModel->getModuleInfoByModuleSrl($args->module_srl);
         if ($module_info->module_srl != $args->module_srl) {
             unset($args->module_srl);
         }
     }
     // module_srl의 값에 따라 insert/update
     if (!$args->module_srl) {
         $args->module_srl = getNextSequence();
         $output = $oModuleController->insertModule($args);
         $msg_code = 'success_registed';
     } else {
         $output = $oModuleController->updateModule($args);
         $msg_code = 'success_updated';
         // 캐시 파일 삭제
         $cache_file = sprintf("./files/cache/opage/%d.cache.php", $module_info->module_srl);
         if (file_exists($cache_file)) {
             FileHandler::removeFile($cache_file);
         }
     }
     if (!$output->toBool()) {
         return $output;
     }
     // 등록 성공후 return될 메세지 정리
     $this->add("module_srl", $output->get('module_srl'));
     $this->add("opage", Context::get('opage'));
     $this->setMessage($msg_code);
 }
开发者ID:hottaro,项目名称:xpressengine,代码行数:42,代码来源:opage.admin.controller.php



注:本文中的getNextSequence函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getNickName函数代码示例发布时间:2022-05-15
下一篇:
PHP getNextPrev函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap