Delete redireccion.class.php

pull/2487/head
Enrique Alcaraz 7 years ago committed by GitHub
parent f5a815c9ce
commit 5c34604e0a
  1. 33
      plugin/redirection/lib/redireccion.class.php

@ -1,33 +0,0 @@
<?php
class Redireccion
{
# Insertamos la redirección
public static function insert($user_id, $url)
{
return Database::insert(
'plugin_redirection',
[
'user_id' => $user_id,
'url' => $url
]
);
}
# Borramos al redirección
public static function delete($id)
{
Database::delete(
$this->table,
array('id = ?' => array($id))
);
}
# Devolemos las redirecciones
public static function get()
{
$table = Database::get_main_table('plugin_redirection');
return Database::select('*', $table);
}
}
Loading…
Cancel
Save