403Webshell
Server IP : 172.67.158.161  /  Your IP : 3.145.44.192
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/bnnagency.com/wp-content/themes/flatsome/inc/builder/core/server/src/Options/Custom/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/bnnagency.com/wp-content/themes/flatsome/inc/builder/core/server/src/Options/Custom/GroupOption.php
<?php

namespace UxBuilder\Options\Custom;

use UxBuilder\Options\Option;

class GroupOption extends Option {

  public function __construct( $name, $data, $container ) {
    parent::__construct( $name, $data, $container );
    $container_class = get_class( $container );
    $this->data['options'] = new $container_class( $data['options'], $this );
  }

  public function set_value( $value ) {
    $this->data['options']->set_values( $value );
  }

  public function get_value() {
    return $this->data['options']->get_values();
  }

  public function to_array() {
    $data = parent::to_array();
    $data['options'] = $this->data['options']->to_array();

    unset( $data['value'] );
    unset( $data['default'] );
    unset( $data['responsive'] );

    return $data;
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit