Файл: _rootinc/cnic/Response/Whois.php
Строк: 25
<?
// CNic_Toolkit_Response_Whois - response object for whois requests
// Copyright (c) 2010 CentralNic Ltd. All rights reserved. This program is
// free software; you can redistribute it and/or modify it under the terms
// of the GNU GPL
// $Id: Whois.php,v 1.9 2010/03/31 12:03:03 gavin Exp $
class CNic_Toolkit_Response_Whois extends CNic_Toolkit_Response {
public function response($key) {
// hack, cos we want an array of arrays, so don't flatten:
if (strtolower($key) == 'dns') {
return $this->_response['dns'];
} else {
return $this->_expand($this->_response[$key]);
}
}
}
?>