/** * @param int $iPage * @param int $iTenantsPerPage * @param string $sOrderBy Default value is **'login'**. * @param bool $bOrderType Default value is **true**. * @param string $sSearchDesc Default value is empty string. * * @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; }