┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/var/www/html/agron/wp-content/plugins/betterdocs/includes/Admin/Builder
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: Rule.php
<?php namespace WPDeveloper\BetterDocs\Admin\Builder; use JsonSerializable; class Rule implements JsonSerializable { public $condition; public $name; public $value; public function __construct( $condition, $name, $value ) { $this->condition = $condition; $this->name = $name; $this->value = $value; } public function add_value( $value ) { if ( ! is_array( $this->value ) ) { $this->value = [ $this->value ]; } if ( is_a( $value, 'NotificationX\Core\Rule' ) ) { $value = $value->value; } if ( is_array( $value ) ) { $this->value = array_merge( $this->value, $value ); } else { $this->value[] = $value; } $this->value = array_values( array_unique( $this->value ) ); } public function can_add( $rule ) { if ( $this->condition == 'includes' && $this->condition == $rule->condition && $this->name == $rule->name ) { return true; } return false; } #[\ReturnTypeWillChange] public function jsonSerialize() { return [ $this->condition, $this->name, $this->value ]; } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 GlobalFields.php
PHP
1 KB
2026-04-17 11:00
EDIT
📄 Rule.php
PHP
1 KB
2026-04-17 11:00
EDIT
📄 Rules.php
PHP
2.9 KB
2026-04-17 11:00
EDIT