protected function loadPClasses()
    {
        try {
            $sth = $this->pdo->prepare(
                "SELECT * FROM `{$this->dbName}`.`{$this->dbTable}`",
                array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY)
            );
            $sth->execute();

            while ($row = $sth->fetch(PDO::FETCH_ASSOC, PDO::FETCH_ORI_NEXT)) {
                $this->addPClass(new KlarnaPClass($row));
            }

            $sth->closeCursor();
            $sth = null;
        } catch (PDOException $e) {
            throw new Klarna_DatabaseException(
                'Could not fetch PClasses from database!'
            );
        }
    }
protected function loadPClasses()
    {
        try {
            $sth = $this->pdo->prepare(
                "SELECT * FROM `{$this->dbName}`.`{$this->dbTable}`",
                array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY)
            );
            $sth->execute();

            while ($row = $sth->fetch(PDO::FETCH_ASSOC, PDO::FETCH_ORI_NEXT)) {
                $this->addPClass(new KlarnaPClass($row));
            }

            $sth->closeCursor();
            $sth = null;
        } catch (PDOException $e) {
            throw new Klarna_DatabaseException(
                'Could not fetch PClasses from database!'
            );
        }
    }
protected function loadPClasses ( ) { try { $ sth = $ this -> pdo -> prepare ( "SELECT * FROM `{$this->dbName}`.`{$this->dbTable}`" , array ( PDO :: ATTR_CURSOR => PDO :: CURSOR_FWDONLY ) ) ; $ sth -> execute ( ) ; while ( $ row = $ sth -> fetch ( PDO :: FETCH_ASSOC , PDO :: FETCH_ORI_NEXT ) ) { $ this -> addPClass ( new KlarnaPClass ( $ row ) ) ; } $ sth -> closeCursor ( ) ; $ sth = null ; } catch ( PDOException $ e ) { throw new Klarna_DatabaseException ( 'Could not fetch PClasses from database!' ) ; } }
Loads the PClasses.

@return void
@throws KlarnaException
Loads the PClasses .