Example #1
0
 /**
  * class constructor
  * call parent constructor for class initialization
  *
  * @error 14601
  * @param null|array|object $options expects optional options
  */
 public function __construct($options = null)
 {
     //standard constructor
     xapp_set_options($options, $this);
     //now parse options
     $this->parseOptions(xapp_get_options($this));
 }
Example #2
0
 public static function options($options = null)
 {
     if ($options !== null) {
         return xapp_set_options($options, get_class());
     } else {
         return xapp_get_options(get_class());
     }
 }
Example #3
0
 /**
  * class constructor sets class options if smd instance is not set in class options
  * will create smd instance with appropriate options.
  *
  * @error 14701
  * @param null|array|object $options expects optional options
  */
 public function __construct($options = null)
 {
     xapp_set_options($options, $this);
     if (!xapp_is_option(self::SMD, $this)) {
         $opt = array(Xapp_Rpc_Smd_Jsonp::TRANSPORT => 'JSONP', Xapp_Rpc_Smd_Jsonp::ENVELOPE => 'URL', Xapp_Rpc_Smd_Jsonp::RELATIVE_TARGETS => false, Xapp_Rpc_Smd_Jsonp::CALLBACK => xapp_get_option(self::CALLBACK, $this));
         xapp_set_option(self::SMD, Xapp_Rpc_Smd_Jsonp::instance($opt), $this);
     }
     parent::__construct();
 }
Example #4
0
 /**
  * class constructor will set missing instances of smd, request and response and
  * call parent constructor for class initialization
  *
  * @error 14601
  * @param null|array|object $options expects optional options
  */
 public function __construct($options = null)
 {
     xapp_set_options($options, $this);
     if (!xapp_is_option(self::SMD, $this)) {
         xapp_set_option(self::SMD, Xapp_Rpc_Smd_Json::instance(), $this);
     }
     if (!xapp_is_option(self::REQUEST, $this)) {
         xapp_set_option(self::REQUEST, new Xapp_Rpc_Request_Json(), $this);
     }
     if (!xapp_is_option(self::RESPONSE, $this)) {
         xapp_set_option(self::RESPONSE, new Xapp_Rpc_Response_Json(), $this);
     }
     parent::__construct();
 }
Example #5
0
 /**
  * class constructor
  * call parent constructor for class initialization
  *
  * @error 14601
  * @param null|array|object $options expects optional options
  */
 public function __construct($options = null)
 {
     xapp_set_options($options, $this);
 }
Example #6
0
 /**
  * class constructor
  * call parent constructor for class initialization
  *
  * @error 14601
  * @param null|array|object $options expects optional options
  */
 public function __construct($options = null)
 {
     parent::__construct($options);
     //standard constructor
     xapp_set_options($options, $this);
 }
Example #7
0
 /**
  * class constructor
  * call parent constructor for class initialization
  *
  * @error 14601
  * @param null|array|object $options expects optional options
  */
 function __construct($options = null)
 {
     xapp_set_options($options, $this);
     $this->initVariables();
 }
Example #8
0
 /**
  * class constructor
  * call parent constructor for class initialization
  *
  * @error 14601
  * @param null|array|object $options expects optional options
  */
 public function __construct($options = null)
 {
     parent::__construct($options);
     xapp_set_options($options, $this);
 }
Example #9
0
 /**
  * class constructor
  * call parent constructor for class initialization
  *
  * @error 14601
  * @param null|array|object $options expects optional options
  */
 function __construct($options = null)
 {
     parent::__construct($options);
     //standard constructor
     xapp_set_options($options, $this);
     $this->initVariables();
 }
Example #10
0
 function xo_merge($set, &$mixed = null)
 {
     // check if it's a json encoded string
     if (is_string($set)) {
         $set = json_decode($set);
     }
     if ($set !== NULL) {
         xapp_set_options($set, $mixed);
     }
 }
Example #11
0
 /**
  * static setter/getter for static options that once set are valid for all instances. will set
  * options if first parameter is set and get options if omited
  *
  * @error 16703
  * @param null|mixed $options expects optional options
  * @return array|mixed|null
  */
 public static function options($options = null)
 {
     $class = get_class();
     if ($options !== null) {
         return xapp_set_options($options, $class);
     } else {
         return xapp_get_options($class);
     }
 }
Example #12
0
 /**
  * class constructor
  * call parent constructor for class initialization
  *
  * @error 14601
  * @param null|array|object $options expects optional options
  */
 public function __construct($options = null)
 {
     //standard constructor
     xapp_set_options($options, $this);
     $this->parseOptions($options);
 }
Example #13
0
 public function __construct($options = null)
 {
     xapp_set_options($options, $this);
     $this->_users = new stdClass();
     $this->_roles = new stdClass();
     $this->_permissions = new stdClass();
     $this->_resources = new stdClass();
 }