remove direct call check
This commit is contained in:
parent
3b8279b0fe
commit
3e0117fb21
|
@ -1,11 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
namespace MobilizonConnector;
|
namespace MobilizonConnector;
|
||||||
|
|
||||||
// Exit if this file is called directly.
|
|
||||||
if (!defined('ABSPATH')) {
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
class EventsListBlock {
|
class EventsListBlock {
|
||||||
|
|
||||||
public static function initAndReturnScriptName(): string {
|
public static function initAndReturnScriptName(): string {
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
namespace MobilizonConnector;
|
namespace MobilizonConnector;
|
||||||
|
|
||||||
// Exit if this file is called directly.
|
|
||||||
if (!defined('ABSPATH')) {
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
class EventsListShortcut {
|
class EventsListShortcut {
|
||||||
|
|
||||||
public static function init() {
|
public static function init() {
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
namespace MobilizonConnector;
|
namespace MobilizonConnector;
|
||||||
|
|
||||||
// Exit if this file is called directly.
|
|
||||||
if (!defined('ABSPATH')) {
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
class EventsListWidget extends \WP_Widget {
|
class EventsListWidget extends \WP_Widget {
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
namespace MobilizonConnector;
|
namespace MobilizonConnector;
|
||||||
|
|
||||||
// Exit if this file is called directly.
|
|
||||||
if (!defined('ABSPATH')) {
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
final class GraphQlClient {
|
final class GraphQlClient {
|
||||||
|
|
||||||
public static function query(string $endpoint, string $query, array $variables = [], ?string $token = null): array
|
public static function query(string $endpoint, string $query, array $variables = [], ?string $token = null): array
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
namespace MobilizonConnector;
|
namespace MobilizonConnector;
|
||||||
|
|
||||||
// Exit if this file is called directly.
|
|
||||||
if (!defined('ABSPATH')) {
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
class Settings {
|
class Settings {
|
||||||
|
|
||||||
private static $DEFAULT_OPTION_URL = 'https://mobilizon.fr';
|
private static $DEFAULT_OPTION_URL = 'https://mobilizon.fr';
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
namespace MobilizonConnector;
|
namespace MobilizonConnector;
|
||||||
|
|
||||||
// Exit if this file is called directly.
|
|
||||||
if (!defined('ABSPATH')) {
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
const DEFAULT_EVENTS_COUNT = 5;
|
const DEFAULT_EVENTS_COUNT = 5;
|
||||||
const NAME = '<wordpress-name>';
|
const NAME = '<wordpress-name>';
|
||||||
const NICE_NAME = '<wordpress-nice-name>';
|
const NICE_NAME = '<wordpress-nice-name>';
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
namespace MobilizonConnector;
|
namespace MobilizonConnector;
|
||||||
|
|
||||||
// Exit if this file is called directly.
|
|
||||||
if (!defined('ABSPATH')) {
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
class GeneralException extends \Exception {
|
class GeneralException extends \Exception {
|
||||||
public function __construct($message, $code = 0, Throwable $previous = null) {
|
public function __construct($message, $code = 0, Throwable $previous = null) {
|
||||||
parent::__construct($message, $code, $previous);
|
parent::__construct($message, $code, $previous);
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
namespace MobilizonConnector;
|
namespace MobilizonConnector;
|
||||||
|
|
||||||
// Exit if this file is called directly.
|
|
||||||
if (!defined('ABSPATH')) {
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
class GroupNotFoundException extends \Exception {
|
class GroupNotFoundException extends \Exception {
|
||||||
public function __construct($message, $code = 0, Throwable $previous = null) {
|
public function __construct($message, $code = 0, Throwable $previous = null) {
|
||||||
parent::__construct($message, $code, $previous);
|
parent::__construct($message, $code, $previous);
|
||||||
|
|
Loading…
Reference in New Issue