本文整理匯總了PHP中OC\DB\Connection::delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP Connection::delete方法的具體用法?PHP Connection::delete怎麽用?PHP Connection::delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OC\DB\Connection
的用法示例。
在下文中一共展示了Connection::delete方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: deleteApp
/**
* Remove app from appconfig
*
* @param string $app app
* @return boolean|null
*
* Removes all keys in appconfig belonging to the app.
*/
public function deleteApp($app)
{
$where = array('appid' => $app);
$this->conn->delete('*PREFIX*appconfig', $where);
unset($this->cache[$app]);
unset($this->apps[$app]);
}
示例2: deleteAppFromAllUsers
/**
* Remove app from all users
* @param string $app app
*
* Removes all keys in preferences belonging to the app.
*/
public function deleteAppFromAllUsers($app)
{
$where = array('appid' => $app);
$this->conn->delete('*PREFIX*preferences', $where);
foreach ($this->cache as &$userCache) {
unset($userCache[$app]);
}
}