本文整理汇总了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');
}
示例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');
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
示例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
}
示例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
}
示例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
示例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
示例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
}