this-> GetDBRamDomains

(Caronte Pcode version 2.0)

Description

CDB_Ram this->GetDBRamDomains (void);

Load the local domains database in a CDB_Ram class variable.

Example.

Source:

#import( class , HashArray )
#import( class , CDB_Ram )
#import( class , CDomainConf )

CS_ADMIN_SCRIPT this = new CS_ADMIN_SCRIPT($_this);

int Main(CAdminRequest pRequest, CAdminResponse pResponse)
{

///CR_QUERY_ALL_DOMAIN
CDB_Ram db = this->GetDBRamDomains();

HashArray indexkey = new HashArray();
CDomainConf pconfdomain;

db->Query(".+?\\.com",indexkey,1);

for (int i = 0; i < indexkey->GetRecordCount(); i++)
{

pconfdomain = this->GetDomain(indexkey->GetKeyByIndex(i));
this->Print(pconfdomain->GetDomainName() );

}

delete indexkey;

return 0;

}




Out:
inrete.com