original_string: function mountById($id)
      {
          $db = new Db();
  
          if ($this->where != false || $this->where != '') {
              $where = ' AND '.$this->where;
          }
  
          $res = $db->query('SELECT * FROM '.$this->table.' WHERE id = :id '.$where, [':id'=>0 + $id]);
  
          if (isset($res[0])) {
              $this->load($res[0]->getAll());
  
              //Access counter
              $db->query('UPDATE article
                             SET access = access + 1                               
                           WHERE id = '.$this->id);
              return $this;
          }
          return false;
      }
code: function mountById($id)
      {
          $db = new Db();
  
          if ($this->where != false || $this->where != '') {
              $where = ' AND '.$this->where;
          }
  
          $res = $db->query('SELECT * FROM '.$this->table.' WHERE id = :id '.$where, [':id'=>0 + $id]);
  
          if (isset($res[0])) {
              $this->load($res[0]->getAll());
  
              //Access counter
              $db->query('UPDATE article
                             SET access = access + 1                               
                           WHERE id = '.$this->id);
              return $this;
          }
          return false;
      }
code_tokens: function mountById ( $ id ) { $ db = new Db ( ) ; if ( $ this -> where != false || $ this -> where != '' ) { $ where = ' AND ' . $ this -> where ; } $ res = $ db -> query ( 'SELECT * FROM ' . $ this -> table . ' WHERE id = :id ' . $ where , [ ':id' => 0 + $ id ] ) ; if ( isset ( $ res [ 0 ] ) ) { $ this -> load ( $ res [ 0 ] -> getAll ( ) ) ; //Access counter $ db -> query ( 'UPDATE article
                             SET access = access + 1                               
                           WHERE id = ' . $ this -> id ) ; return $ this ; } return false ; }
docstring: Mount from DataBase - search by ID
  @param  integer $id id in database
  @return bool|object $this object or false
docstring_tokens: Mount from DataBase - search by ID