| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/cdc/wp-content/plugins/members/addons/members-admin-access/app/ |
Upload File : |
<?php
/**
* Primary class for setting up the plugin.
*
* @package MembersAdminAccess
* @author The MemberPress Team
* @copyright Copyright (c) 2018, The MemberPress Team
* @link https://members-plugin.com/-admin-access
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
namespace Members\AddOns\AdminAccess;
defined('ABSPATH') || exit;
/**
* Application class.
*
* @since 1.0.0
* @access public
*/
class App {
/**
* Houses the plugin directory path.
*
* @since 1.0.0
* @access public
* @var string
*/
public $dir = '';
/**
* Namespace used for filter hooks and such.
*
* @since 1.0.0
* @access public
* @var string
*/
public $namespace = '';
/**
* Takes in a configuration array and assigns the keys to the class properties.
*
* @since 1.0.0
* @access public
* @return void
*/
public function __construct( array $args = [] ) {
foreach ( array_keys( get_object_vars( $this ) ) as $key ) {
if ( isset( $args[ $key ] ) )
$this->$key = $args[ $key ];
}
}
}