X7ROOT File Manager
Current Path:
/home/softbdltd/images-bd.com/wp-content87b/plugins/defender-security/src
home
/
softbdltd
/
images-bd.com
/
wp-content87b
/
plugins
/
defender-security
/
src
/
??
..
??
behavior
??
class-actionscheduler-setup.php
(2.87 KB)
??
class-admin.php
(18.15 KB)
??
class-bootstrap.php
(2.8 KB)
??
class-central.php
(7.93 KB)
??
class-component.php
(575 B)
??
class-controller.php
(4.49 KB)
??
class-db.php
(1015 B)
??
class-event.php
(3.02 KB)
??
class-upgrader.php
(59.89 KB)
??
component
??
controller
??
extra
??
functions.php
(21.37 KB)
??
helper
??
integrations
??
model
??
routes.php
(4.98 KB)
??
traits
??
view
Editing: class-db.php
<?php /** * Handles database operations. * * @package WP_Defender */ namespace WP_Defender; use Calotes\DB\Mapper; use Calotes\Base\Model; use ReflectionException; /** * Contains methods for saving the current instance, getting the ORM, and retrieving the table name. */ class DB extends Model { /** * Constructor for the class. * Initializes the object by parsing annotations. * * @return void */ public function __construct() { $this->parse_annotations(); } /** * Save the current instance. * * @return false|int * @throws ReflectionException If class is not defined. */ public function save() { return self::get_orm()->save( $this ); } /** * Retrieves the ORM instance from the dependency injection container. * * @return Mapper The ORM instance. */ protected static function get_orm(): Mapper { return wd_di()->get( Mapper::class ); } /** * Get table name. * * @return string */ public function get_table(): string { return $this->table; } }
Upload File
Create Folder