vanillaforums/Garden — Issue #1188: StdModel::Get() // SQL::Get() confuse. Cannot use $Offset from StdModel::Get()
Author: unlight
Created: 2011-10-29 19:44:57+00:00
State: open

model.php

public function Get($OrderFields = '', $OrderDirection = 'asc', $Limit = FALSE, $Offset = FALSE) {
$this->_BeforeGet();

return $this->SQL->Get($this->Name, $OrderFields, $OrderDirection, $Limit, $Offset);
}

class.sqldriver.php

public function Get($Table = '', $OrderFields = '', $OrderDirection = 'asc', $Limit = FALSE, $PageNumber = FALSE) {

## Model gives `$Offset`, SQL accepts `$PageNumber`.