| Server IP : 87.229.120.60 / Your IP : 216.73.216.245 Web Server : Apache System : Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64 User : server ( 1002) PHP Version : 8.3.20 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/faktorteam/www/wp-content/plugins/duplicate-post/src/ |
Upload File : |
<?php
/**
* Duplicate Post main class.
*
* @package Duplicate_Post
* @since 4.0
*/
namespace Yoast\WP\Duplicate_Post;
use Yoast\WP\Duplicate_Post\Handlers\Handler;
use Yoast\WP\Duplicate_Post\UI\User_Interface;
use Yoast\WP\Duplicate_Post\Watchers\Watchers;
/**
* Represents the Duplicate Post main class.
*/
class Duplicate_Post {
/**
* Permissions_Helper object.
*
* @var Permissions_Helper
*/
protected $permissions_helper;
/**
* User_Interface object.
*
* @var User_Interface
*/
protected $user_interface;
/**
* Post_Duplicator object.
*
* @var Post_Duplicator
*/
protected $post_duplicator;
/**
* Handler object.
*
* @var Handler
*/
protected $handler;
/**
* Post_Republisher object.
*
* @var Post_Republisher
*/
protected $post_republisher;
/**
* Revisions_Migrator object.
*
* @var Revisions_Migrator
*/
protected $revisions_migrator;
/**
* Watchers object.
*
* @var Watchers
*/
protected $watchers;
/**
* Initializes the main class.
*/
public function __construct() {
$this->permissions_helper = new Permissions_Helper();
$this->user_interface = new User_Interface( $this->permissions_helper );
$this->post_duplicator = new Post_Duplicator();
$this->handler = new Handler( $this->post_duplicator, $this->permissions_helper );
$this->post_republisher = new Post_Republisher( $this->post_duplicator, $this->permissions_helper );
$this->revisions_migrator = new Revisions_Migrator();
$this->watchers = new Watchers( $this->permissions_helper );
$this->post_republisher->register_hooks();
$this->revisions_migrator->register_hooks();
}
}