本文整理汇总了PHP中Base_module_model::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Base_module_model::delete方法的具体用法?PHP Base_module_model::delete怎么用?PHP Base_module_model::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Base_module_model
的用法示例。
在下文中一共展示了Base_module_model::delete方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: delete
function delete($where)
{
//prevent the deletion of the super admins
$where['super_admin'] = 'no';
parent::delete($where);
$CI =& get_instance();
$CI->load->module_model('fuel','user_to_permissions_model');
$CI->user_to_permissions_model->delete(array('user_id' => $where['id']));
}
示例2: delete
function delete($where)
{
parent::delete($where);
$CI =& get_instance();
$CI->load->module_model(FUEL_FOLDER, 'pagevariables_model');
$CI->pagevariables_model->delete(array('page_id' => $where['id']));
}
示例3: delete
/**
* Overwrites parent model so as you won't accidentally delete the super admin user
*
* @access public
* @param mixed The where condition to be applied to the delete (e.g. array('user_name' => 'darth'))
* @return void
*/
public function delete($where)
{
//prevent the deletion of the super admins
$where['super_admin'] = 'no';
return parent::delete($where);
}