__construct() 공개 메소드

Initializes property default values
public __construct ( array $config = [] ) : void
$config array
리턴 void
예제 #1
0
 /**
  * Constructor
  */
 public function __construct($config = array())
 {
     parent::__construct();
     $this->set_system_methods();
     if (isset($config['functions']) && is_array($config['functions'])) {
         $this->methods = array_merge($this->methods, $config['functions']);
     }
     log_message('debug', "XML-RPC Server Class Initialized");
 }
예제 #2
0
 /**
  * Constructor
  */
 function __construct($init = TRUE)
 {
     parent::__construct();
     if ($init != TRUE) {
         return;
     }
     // Make a local reference to the ExpressionEngine super object
     $this->EE =& get_instance();
     $this->EE_initialize();
 }
 public function __construct($val = -1, $type = '')
 {
     parent::__construct();
     if ($val != -1 or $type != '') {
         $type = $type == '' ? 'string' : $type;
         if ($this->xmlrpcTypes[$type] == 1) {
             $this->addScalar($val, $type);
         } elseif ($this->xmlrpcTypes[$type] == 2) {
             $this->addArray($val);
         } elseif ($this->xmlrpcTypes[$type] == 3) {
             $this->addStruct($val);
         }
     }
 }