Inpsyde\MultilingualPress\SiteDuplication\WPDBAttachmentCopier::__construct PHP Метод

__construct() публичный Метод

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( Inpsyde\MultilingualPress\Common\BasePathAdapter $base_path_adapter, Inpsyde\MultilingualPress\Database\TableStringReplacer $table_string_replacer )
$base_path_adapter Inpsyde\MultilingualPress\Common\BasePathAdapter Base path adapter object.
$table_string_replacer Inpsyde\MultilingualPress\Database\TableStringReplacer Table string replacer object.
    public function __construct(BasePathAdapter $base_path_adapter, TableStringReplacer $table_string_replacer)
    {
        $this->base_path_adapter = $base_path_adapter;
        $this->table_string_replacer = $table_string_replacer;
        $this->db = $GLOBALS['wpdb'];
    }