dist/OdaLibInterface.php
public function addDataStr($p_params){
        try {
            if(is_object($p_params)){
                if(is_object($p_params->value)){
                    $this->object_retour->strErreur = "The value is not a string.";
                    $this->object_retour->statut = self::STATE_ERROR;
                    die();
                }

                if(isset($p_params->label)){
                    $this->object_retour->data[$p_params->label] = $p_params->value;
                }else{
                    $this->object_retour->data = $p_params->value;
                }
            }else{
                $this->object_retour->data = $p_params;
            }
        } catch (Exception $ex) {
            $this->dieInError($ex.'');
        }
    }
public function addDataStr($p_params){
        try {
            if(is_object($p_params)){
                if(is_object($p_params->value)){
                    $this->object_retour->strErreur = "The value is not a string.";
                    $this->object_retour->statut = self::STATE_ERROR;
                    die();
                }

                if(isset($p_params->label)){
                    $this->object_retour->data[$p_params->label] = $p_params->value;
                }else{
                    $this->object_retour->data = $p_params->value;
                }
            }else{
                $this->object_retour->data = $p_params;
            }
        } catch (Exception $ex) {
            $this->dieInError($ex.'');
        }
    }
public function addDataStr ( $ p_params ) { try { if ( is_object ( $ p_params ) ) { if ( is_object ( $ p_params -> value ) ) { $ this -> object_retour -> strErreur = "The value is not a string." ; $ this -> object_retour -> statut = self :: STATE_ERROR ; die ( ) ; } if ( isset ( $ p_params -> label ) ) { $ this -> object_retour -> data [ $ p_params -> label ] = $ p_params -> value ; } else { $ this -> object_retour -> data = $ p_params -> value ; } } else { $ this -> object_retour -> data = $ p_params ; } } catch ( Exception $ ex ) { $ this -> dieInError ( $ ex . '' ) ; } }
Attetion, not handle error from the OdaRetourSQL.

$p_params :
- string value
- string label

or

$p_params  = string

@param stdClass|string  p_params
Attetion not handle error from the OdaRetourSQL .