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


PHP DataManager::delete方法代碼示例

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


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

示例1: delete

 function delete()
 {
     $id = (int) $this->uri->segment(3, 0);
     $dm = new DataManager($this->dm_profile);
     if ($dm->delete($id) === false) {
         var_dump($dm->getErrors());
         exit;
     }
     redirect('/' . $this->controller . '/list_all/1/deleted');
 }
開發者ID:cristminix,項目名稱:7e03be2c8848cc5549cc93a3a90edb44,代碼行數:10,代碼來源:products.php

示例2: delete

 /**
  * Delete all rows that match given conditions
  *
  * @param string $conditions Query conditions
  * @param string $table_name
  * @return boolean
  * @throws DBQueryError
  */
 function delete($conditions = null)
 {
     return DataManager::delete($conditions, TABLE_PREFIX . 'source_users');
 }
開發者ID:NaszvadiG,項目名稱:activecollab_loc,代碼行數:12,代碼來源:BaseSourceUsers.class.php

示例3: delete

 /**
  * Delete rows that match specific conditions. If $conditions is NULL all rows from table will be deleted
  *
  * @access public
  * @param string $conditions Query conditions
  * @return boolean
  */
 function delete($condition = null)
 {
     if (isset($this) && instance_of($this, 'ProjectChartParams')) {
         return parent::delete($condition);
     } else {
         return ProjectChartParams::instance()->delete($condition);
         //$instance =& ProjectChartParams::instance();
         //return $instance->delete($condition);
     }
     // if
 }
開發者ID:abhinay100,項目名稱:feng_app,代碼行數:18,代碼來源:BaseProjectChartParams.class.php

示例4: delete

 /**
  * Delete rows that match specific conditions. If $conditions is NULL all rows from table will be deleted
  *
  * @access public
  * @param string $conditions Query conditions
  * @return boolean
  */
 function delete($condition = null)
 {
     if (isset($this) && instance_of($this, 'Plugins')) {
         return parent::delete($condition);
     } else {
         return Plugins::instance()->delete($condition);
         //$instance =& Plugins::instance();
         //return $instance->delete($condition);
     }
     // if
 }
開發者ID:federosky,項目名稱:ProjectPier-Core,代碼行數:18,代碼來源:BasePlugins.class.php

示例5: delete

 /**
  * Delete rows that match specific conditions. If $conditions is NULL all rows from table will be deleted
  *
  * @access public
  * @param string $conditions Query conditions
  * @return boolean
  */
 function delete($condition = null)
 {
     if (isset($this) && instance_of($this, 'DimensionMemberAssociations')) {
         return parent::delete($condition);
     } else {
         return DimensionMemberAssociations::instance()->delete($condition);
     }
     // if
 }
開發者ID:abhinay100,項目名稱:feng_app,代碼行數:16,代碼來源:BaseDimensionMemberAssociations.class.php

示例6: delete

 /**
  * Delete rows that match specific conditions. If $conditions is NULL all rows from table will be deleted
  *
  * @access public
  * @param string $conditions Query conditions
  * @return boolean
  */
 function delete($condition = null)
 {
     if (isset($this) && instance_of($this, 'ApplicationLogs')) {
         return parent::delete($condition);
     } else {
         return ApplicationLogs::instance()->delete($condition);
         //$instance =& ApplicationLogs::instance();
         //return $instance->delete($condition);
     }
     // if
 }
開發者ID:bklein01,項目名稱:Project-Pier,代碼行數:18,代碼來源:BaseApplicationLogs.class.php

示例7: delete

 /**
  * Delete rows that match specific conditions. If $conditions is NULL all rows from table will be deleted
  *
  * @access public
  * @param string $conditions Query conditions
  * @return boolean
  */
 function delete($condition = null)
 {
     if (isset($this) && instance_of($this, 'ExternalCalendarUsers')) {
         return parent::delete($condition);
     } else {
         return ExternalCalendarUsers::instance()->delete($condition);
         //$instance =& MailAccounts::instance();
         //return $instance->delete($condition);
     }
     // if
 }
開發者ID:abhinay100,項目名稱:fengoffice_app,代碼行數:18,代碼來源:BaseExternalCalendarUsers.class.php

示例8: delete

 /**
  * Delete rows that match specific conditions. If $conditions is NULL all rows from table will be deleted
  *
  * @access public
  * @param string $conditions Query conditions
  * @return boolean
  */
 function delete($condition = null)
 {
     if (isset($this) && instance_of($this, 'TemplateParameters')) {
         return parent::delete($condition);
     } else {
         return TemplateParameters::instance()->delete($condition);
     }
     // if
 }
開發者ID:abhinay100,項目名稱:feng_app,代碼行數:16,代碼來源:BaseTemplateParameters.class.php

示例9: delete

 /**
  * Delete rows that match specific conditions. If $conditions is NULL all rows from table will be deleted
  *
  * @access public
  * @param string $conditions Query conditions
  * @return boolean
  */
 function delete($condition = null)
 {
     if (isset($this) && instance_of($this, 'AdministrationTools')) {
         return parent::delete($condition);
     } else {
         return AdministrationTools::instance()->delete($condition);
         //$instance =& AdministrationTools::instance();
         //return $instance->delete($condition);
     }
     // if
 }
開發者ID:469306621,項目名稱:Languages,代碼行數:18,代碼來源:BaseAdministrationTools.class.php

示例10: delete

 /**
 * Delete rows that match specific conditions. If $conditions is NULL all rows from table will be deleted
 *
 * @access public
 * @param string $conditions Query conditions
 * @return boolean
 */
 function delete($condition = null) {
   if(isset($this) && instance_of($this, 'PermissionGroups')) {
     return parent::delete($condition);
   } else {
     return PermissionGroups::instance()->delete($condition);
   } // if
 } // delete
開發者ID:Jtgadbois,項目名稱:Pedadida,代碼行數:14,代碼來源:BasePermissionGroups.class.php

示例11: delete

 /**
  * Delete rows that match specific conditions. If $conditions is NULL all rows from table will be deleted
  *
  * @access public
  * @param string $conditions Query conditions
  * @return boolean
  */
 function delete($condition = null)
 {
     if (isset($this) && instance_of($this, 'DimensionObjectTypeOptions')) {
         return parent::delete($condition);
     } else {
         return DimensionObjectTypeOptions::instance()->delete($condition);
     }
     // if
 }
開發者ID:abhinay100,項目名稱:feng_app,代碼行數:16,代碼來源:BaseDimensionObjectTypeOptions.class.php

示例12: delete

 /**
  * Delete rows that match specific conditions. If $conditions is NULL all rows from table will be deleted
  *
  * @access public
  * @param string $conditions Query conditions
  * @return boolean
  */
 function delete($condition = null)
 {
     if (isset($this) && instance_of($this, 'ProjectTicketSubscriptions')) {
         return parent::delete($condition);
     } else {
         return ProjectTicketSubscriptions::instance()->delete($condition);
     }
     // if
 }
開發者ID:bklein01,項目名稱:Project-Pier,代碼行數:16,代碼來源:BaseProjectTicketSubscriptions.class.php

示例13: delete

 /**
 * Delete rows that match specific conditions. If $conditions is NULL all rows from table will be deleted
 *
 * @access public
 * @param string $conditions Query conditions
 * @return boolean
 */
 function delete($condition = null) {
   if(isset($this) && instance_of($this, 'ReportConditions')) {
     return parent::delete($condition);
   } else {
     return  ReportConditions::instance()->delete($condition);
   } // if
 } // delete
開發者ID:Jtgadbois,項目名稱:Pedadida,代碼行數:14,代碼來源:BaseReportConditions.class.php

示例14: delete

	/**
	 * Delete rows that match specific conditions. If $conditions is NULL all rows from table will be deleted
	 *
	 * @access public
	 * @param string $conditions Query conditions
	 * @return boolean
	 */
	function delete($condition = null) {
		if(isset($this) && instance_of($this, 'QueuedEmails')) {
			return parent::delete($condition);
		} else {
			return QueuedEmails::instance()->delete($condition);
			//$instance =& QueuedEmails::instance();
			//return $instance->delete($condition);
		} // if
	} // delete
開發者ID:Jtgadbois,項目名稱:Pedadida,代碼行數:16,代碼來源:BaseQueuedEmails.class.php

示例15: delete

 /**
  * Delete rows that match specific conditions. If $conditions is NULL all rows from table will be deleted
  *
  * @access public
  * @param string $conditions Query conditions
  * @return boolean
  */
 function delete($condition = null)
 {
     if (isset($this) && instance_of($this, 'MemberPropertyMembers')) {
         return parent::delete($condition);
     } else {
         return MemberPropertyMembers::instance()->delete($condition);
     }
     // if
 }
開發者ID:abhinay100,項目名稱:feng_app,代碼行數:16,代碼來源:BaseMemberPropertyMembers.class.php


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