Файл: _rootinc/cnic/Response/DomainList.php
Строк: 37
<?
// CNic_Toolkit_Response_DomainList - response object for domain lists
// 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: DomainList.php,v 1.7 2010/03/31 12:03:02 gavin Exp $
class CNic_Toolkit_Response_DomainList extends CNic_Toolkit_Response {
public function domains() {
return preg_grep('/..{3}$/i', $this->keys());
}
public function regdate($domain) {
list($status, $regdate, $expirydate) = $this->response($domain);
return $regdate;
}
public function expirydate($domain) {
list($status, $regdate, $expirydate) = $this->response($domain);
return $expirydate;
}
public function status($domain) {
list($status, $regdate, $expirydate) = $this->response($domain);
return $status;
}
}
?>