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;
    }
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;
    }
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 ; }
Mount from DataBase - search by ID
@param  integer $id id in database
@return bool|object $this object or false
Mount from DataBase - search by ID