dakata__92
Super Moderator
Тези съм ги поставил в клас MySQLi но не немога да ги уеднаквя с аналозите им вече дадени в PDO. Остават вече:
PHP:
public function fetchAllObj() {
$result = $this->getResult();
return $result->fetch_object();
}
public function fetchAllColumn($column) {
$result = $this->getResult();
$row = $result->fetch_all();
return $row;
}
public function fetchRowColumn($column) {
return $this->STMT->fetch(\PDO::FETCH_BOUND, $column);
}
public function fetchAllClass($class) {
return $this->STMT->fetchAll(\PDO::FETCH_CLASS, $class);
}
public function fetchRowClass($class) {
return $this->STMT->fetch(\PDO::FETCH_BOUND, $class);
}