当前位置: 首页>>代码示例>>PHP>>正文


PHP getNextSequence函数代码示例

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


在下文中一共展示了getNextSequence函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 (dev@xpressengine.org)
  * @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


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