當前位置: 首頁>>代碼示例>>PHP>>正文


PHP vB_DataManager::save方法代碼示例

本文整理匯總了PHP中vB_DataManager::save方法的典型用法代碼示例。如果您正苦於以下問題:PHP vB_DataManager::save方法的具體用法?PHP vB_DataManager::save怎麽用?PHP vB_DataManager::save使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在vB_DataManager的用法示例。


在下文中一共展示了vB_DataManager::save方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: save

 /**
  * Saves the data from the object into the specified database tables
  *
  * @param	boolean	Do the query?
  * @param	mixed		Whether to run the query now; see db_update() for more info
  * @param bool 		Whether to return the number of affected rows.
  *
  * @return	mixed	If this was an INSERT query, the INSERT ID is returned
  */
 function save($doquery = true, $delayed = false, $affected_rows = false)
 {
     // Specify a REPLACE INTO insert with the 'true' parameter at the end
     return parent::save($doquery, $delayed, $affected_rows, true);
 }
開發者ID:holandacz,項目名稱:nb4,代碼行數:14,代碼來源:class_dm_deletionlog.php

示例2: save

 /**
  * Saves the data from the object into the specified database tables
  *
  * We change the default for $replace to true, and then call the parent.
  */
 function save($doquery = true, $delayed = false, $affected_rows = false, $replace = true, $ignore = false)
 {
     // We default $replace to true, and then call the parent.
     return parent::save($doquery, $delayed, $affected_rows, $replace, $ignore);
 }
開發者ID:0hyeah,項目名稱:yurivn,代碼行數:10,代碼來源:class_dm_ip_data.php

示例3: save

	/**
	 * Overridding parent function to add search index updates
	 *
	* @param	boolean	Do the query?
	* @param	mixed	Whether to run the query now; see db_update() for more info
	* @param 	bool 	Whether to return the number of affected rows.
	* @param 	bool	Perform REPLACE INTO instead of INSERT
	8 @param 	bool	Perfrom INSERT IGNORE instead of INSERT
	*
	* @return	mixed	If this was an INSERT query, the INSERT ID is returned
	*/
	function save($doquery = true, $delayed = false, $affected_rows = false, $replace = false, $ignore = false)
	{
		// Call and get the new id
		$result = parent::save($doquery, $delayed, $affected_rows, $replace, $ignore);
		require_once DIR . '/vb/search/indexcontroller/queue.php' ;
		// Search index maintenance
		vb_Search_Indexcontroller_Queue::indexQueue('vBForum', 'Forum', 'index',
			  $this->fetch_field('forumid'));

		return $result;
	}
開發者ID:hungnv0789,項目名稱:vhtm,代碼行數:22,代碼來源:class_dm_forum.php

示例4: save

 /**
  * Overridding parent function to add search index updates
  *
  * @param	boolean	Do the query?
  * @param	mixed	Whether to run the query now; see db_update() for more info
  * @param 	bool 	Whether to return the number of affected rows.
  * @param 	bool	Perform REPLACE INTO instead of INSERT
  * @param 	bool	Perfrom INSERT IGNORE instead of INSERT
  *
  * @return	mixed	If this was an INSERT query, the INSERT ID is returned
  */
 function save($doquery = true, $delayed = false, $affected_rows = false, $replace = false, $ignore = false)
 {
     // Call and get the new id
     $result = parent::save($doquery, $delayed, $affected_rows, $replace, $ignore);
     // Search index maintenance
     if ($result and ($this->groupmessage['discussionid'] or $this->existing['discussionid'])) {
         // If result is the number (opposed to just TRUE) then use that, or which ever of the others is a number
         $do = is_bool($result) == true ? is_numeric($this->existing['gmid']) == true ? $this->existing['gmid'] : $this->existing['discussionid'] : $result;
         vb_Search_Indexcontroller_Queue::indexQueue('vBForum', 'SocialGroupMessage', 'index', $do);
     }
     return $result;
 }
開發者ID:0hyeah,項目名稱:yurivn,代碼行數:23,代碼來源:class_dm_groupmessage.php


注:本文中的vB_DataManager::save方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。