function __construct() { parent::__construct(__FILE__, self::PLUGIN_SLUG); //$this->add_menu($this->__('WPFront User Role Editor'), $this->__('User Role Editor')); $this->options = new WPFront_User_Role_Editor_Options($this); $this->objGoPro = new WPFront_User_Role_Editor_Go_Pro($this); if ($this->objGoPro->has_license()) { $this->objList = new WPFront_User_Role_Editor_List($this); $this->objAddEdit = new WPFront_User_Role_Editor_Add_Edit($this); $this->objRestore = new WPFront_User_Role_Editor_Restore($this); $this->objAddRemoveCap = new WPFront_User_Role_Editor_Add_Remove_Capability($this); $this->objAssignUsers = new WPFront_User_Role_Editor_Assign_Roles($this); if ($this->objNavMenu === NULL) { $this->objNavMenu = new WPFront_User_Role_Editor_Nav_Menu($this); } if ($this->objLoginRedirect === NULL) { $this->objLoginRedirect = new WPFront_User_Role_Editor_Login_Redirect($this); } if ($this->objAttachmentPermissions === NULL) { $this->objAttachmentPermissions = new WPFront_User_Role_Editor_Attachment_Permissions($this); } if ($this->objUserPermissions === NULL) { $this->objUserPermissions = new WPFront_User_Role_Editor_User_Permissions($this); } if ($this->objWidgetPermissions === NULL) { $this->objWidgetPermissions = new WPFront_User_Role_Editor_Widget_Permissions($this); } } }
function __construct() { parent::__construct(__FILE__, self::PLUGIN_SLUG); //$this->add_menu($this->__('WPFront User Role Editor'), $this->__('User Role Editor')); $this->options = new WPFront_User_Role_Editor_Options($this); $this->objGoPro = new WPFront_User_Role_Editor_Go_Pro($this); if ($this->objGoPro->has_license()) { $this->objList = new WPFront_User_Role_Editor_List($this); $this->objAddEdit = new WPFront_User_Role_Editor_Add_Edit($this); $this->objRestore = new WPFront_User_Role_Editor_Restore($this); $this->objAssignUsers = new WPFront_User_Role_Editor_Assign_Roles($this); } }