Пример #1
0
 /**
  * Constructor. Hooks all interactions to initialize the class.
  *
  * @since	0.1.0
  * @access	public
  *
  * @return	void
  */
 public function __construct()
 {
     self::$instance = $this;
     $this->options = get_option('pydio_settings');
     add_action('admin_init', array($this, 'admin_init'));
     add_action('admin_menu', array($this, 'admin_menu'));
     add_filter('plugin_action_links_' . plugin_basename(WP_Pydio_SSO::get_file()), array($this, 'add_action_links'));
 }
Пример #2
0
 /**
  * Constructor. Hooks all interactions to initialize the class.
  *
  * @since	1.0.0
  * @access	public
  *
  * @see	get_option()
  * @see	add_action()
  * @see	register_activation_hook()
  *
  * @return	void
  */
 public function __construct()
 {
     self::$instance = $this;
     $this->options = get_option('pydio_settings');
     new WP_Pydio_SSO_Auth();
     add_action('plugins_loaded', array($this, 'load_plugin_textdomain'));
     add_action('admin_head', array($this, 'admin_head'));
     if (is_admin()) {
         new WP_Pydio_SSO_Admin();
     }
     // Plugin Activation
     register_activation_hook(__FILE__, array('WP_Pydio_SSO', 'activate_plugin'));
 }