/** * Constructor * * receives options array and sets into body array and parent's construct function * accordingly and sets parent's type property to KDupdate * * @param array $options */ protected function __construct(&$options) { parent::__construct($options); //SET BODY foreach ($options as $key => $value) { switch (ucwords(strtolower($key))) { case "Network_type": case "Number_type": case "Number": case "From_number": case "To_number": case "KD_Update_type": //REQUIER //REQUIER case "Identification_value": case "Identification_value_2nd": case "Identification_value_3rd": case "Port_time": case "Remark": $this->setBodyField($key, $value); break; case "Phone_number": $this->setBodyField('Number', $value); break; } } }
/** * Constructor * * calls parent constructor , sets type "CancelPublish" * and places params in body fields * @param array $options */ protected function __construct(&$options) { parent::__construct($options); //SET BODY foreach ($options as $key => $value) { switch (ucwords(strtolower($key))) { case "Donor": $this->setBodyField($key, $value); break; } } }
/** * Constructor * * receives options array and sets into body array and parent's construct * accordingly sets parent's $type to "request" * * @param array $options */ protected function __construct(&$options) { parent::__construct($options); // Application_Model_General::checkIfRetry($requestId,$lastTransaction); //SET BODY foreach ($options as $key => $value) { switch (ucwords(strtolower($key))) { case "Port_time": $this->setBodyField($key, $value); break; } } }
/** * Constructor * * receives options array and sets into body array accordingly * sets parent's $type to "ExecuteResponse" * * @param array $options */ protected function __construct(&$options) { parent::__construct($options); //SET BODY foreach ($options as $key => $value) { switch (ucwords(strtolower($key))) { case "Request_trx_no": case "Approval_ind": case "Reject_reason_code": $this->setBodyField($key, $value); break; } } }
/** * Constructor * * receives options array and sets into body array and parent's construct * accordingly sets parent's $type to "Return" * * @param array $options */ protected function __construct(&$options) { parent::__construct($options); //SET BODY foreach ($options as $key => $value) { switch (ucwords(strtolower($key))) { case "Network_type": case "Number_type": case "Number": $this->setBodyField($key, $value); break; case "Phone_number": $this->setBodyField('Number', $value); break; } } }
/** * Constructor * * receives options array and sets into body array accordingly * * @param array $options */ protected function __construct(&$options) { parent::__construct($options); //SET BODY foreach ($options as $key => $value) { switch (ucwords(strtolower($key))) { case "Network_type": case "Number_type": case "Number": case "From_number": case "To_number": case "Identification_value": case "Identification_value_2nd": case "Identification_value_3rd": case "Port_time": //when internal provider sending request directly $this->setBodyField($key, $value); break; case "Phone_number": $this->setBodyField('Number', $value); break; } } }
/** * Constructor * * receives options array and sets into body array and parent's construct * accordingly sets parent's $type to "Return" * * @param array $options */ protected function __construct(&$options) { parent::__construct($options); //SET BODY }
/** * Constructor * * receives options array and sets into body array accordingly * sets parent's $type to "execute" * * @param array $options */ protected function __construct(&$options) { parent::__construct($options); //SET BODY - there is no Body in addition to Method }