original_string: private function _sess_info($id_session = null){
      if ( !str::is_uid($id_session) ){
        $id_session = $this->get_id_session();
      }
      else{
        $cfg = $this->_get_session('cfg');
      }
      if (
        empty($cfg) &&
        str::is_uid($id_session) &&
        ($id = $this->get_session('id')) &&
        ($d = $this->db->rselect(
          $this->class_cfg['tables']['sessions'],
          $this->class_cfg['arch']['sessions'],
          [
            $this->class_cfg['arch']['sessions']['id'] => $id_session,
            $this->class_cfg['arch']['sessions']['id_user'] => $id,
            $this->class_cfg['arch']['sessions']['opened'] => 1,
          ]))
      ){
        $cfg = json_decode($d['cfg'], true);
      }
      if ( \is_array($cfg) ){
        $this->sess_cfg = $cfg;
      }
      else{
        $this->set_error(14);
      }
      return $this;
    }
code: private function _sess_info($id_session = null){
      if ( !str::is_uid($id_session) ){
        $id_session = $this->get_id_session();
      }
      else{
        $cfg = $this->_get_session('cfg');
      }
      if (
        empty($cfg) &&
        str::is_uid($id_session) &&
        ($id = $this->get_session('id')) &&
        ($d = $this->db->rselect(
          $this->class_cfg['tables']['sessions'],
          $this->class_cfg['arch']['sessions'],
          [
            $this->class_cfg['arch']['sessions']['id'] => $id_session,
            $this->class_cfg['arch']['sessions']['id_user'] => $id,
            $this->class_cfg['arch']['sessions']['opened'] => 1,
          ]))
      ){
        $cfg = json_decode($d['cfg'], true);
      }
      if ( \is_array($cfg) ){
        $this->sess_cfg = $cfg;
      }
      else{
        $this->set_error(14);
      }
      return $this;
    }
code_tokens: private function _sess_info ( $ id_session = null ) { if ( ! str :: is_uid ( $ id_session ) ) { $ id_session = $ this -> get_id_session ( ) ; } else { $ cfg = $ this -> _get_session ( 'cfg' ) ; } if ( empty ( $ cfg ) && str :: is_uid ( $ id_session ) && ( $ id = $ this -> get_session ( 'id' ) ) && ( $ d = $ this -> db -> rselect ( $ this -> class_cfg [ 'tables' ] [ 'sessions' ] , $ this -> class_cfg [ 'arch' ] [ 'sessions' ] , [ $ this -> class_cfg [ 'arch' ] [ 'sessions' ] [ 'id' ] => $ id_session , $ this -> class_cfg [ 'arch' ] [ 'sessions' ] [ 'id_user' ] => $ id , $ this -> class_cfg [ 'arch' ] [ 'sessions' ] [ 'opened' ] => 1 , ] ) ) ) { $ cfg = json_decode ( $ d [ 'cfg' ] , true ) ; } if ( \ is_array ( $ cfg ) ) { $ this -> sess_cfg = $ cfg ; } else { $ this -> set_error ( 14 ) ; } return $ this ; }
docstring: Gathers all the information about the user's session
  The session's table data can be sent as argument if it has already been fetched
  
  @param mixed $d The session's table data or its ID
  @return $this
docstring_tokens: Gathers all the information about the user s session The session s table data can be sent as argument if it has already been fetched