first commit
This commit is contained in:
20
autoload/admin/factory/class.Languages.php
Normal file
20
autoload/admin/factory/class.Languages.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?
|
||||
// po poprawkach
|
||||
namespace admin\factory;
|
||||
|
||||
class Languages
|
||||
{
|
||||
public function deleteTranslation( $id )
|
||||
{
|
||||
global $db;
|
||||
|
||||
$query = $db -> prepare( 'DELETE FROM pp_langs_text WHERE id = :id' );
|
||||
$query -> bindValue( ':id' , $id , \PDO::PARAM_INT );
|
||||
$query -> execute();
|
||||
if ( $query -> rowCount() )
|
||||
return true;
|
||||
$query -> closeCursor();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user