/** * @param int $iPage * @param int $iTenantsPerPage * @param string $sOrderBy = 'login' * @param bool $bOrderType = true * @param string $sSearchDesc = '' * * @return array | false [Id => [Login, Description]] */ public function GetTenantList($iPage, $iTenantsPerPage, $sOrderBy = 'Login', $bOrderType = true, $sSearchDesc = '') { $aTenants = false; if ($this->oConnection->Execute($this->oCommandCreator->GetTenantList($iPage, $iTenantsPerPage, $this->dbOrderBy($sOrderBy), $bOrderType, $sSearchDesc))) { $oRow = null; $aTenants = array(); while (false !== ($oRow = $this->oConnection->GetNextRecord())) { $aTenants[$oRow->id_tenant] = array($oRow->login, $oRow->description); } } $this->throwDbExceptionIfExist(); return $aTenants; }