Файл: _rootinc/cnic/Response/PollTransfers.php
Строк: 35
<?
// CNic_Toolkit_Response_PollTransfers - response object for polling domain transfers
// 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: PollTransfers.php,v 1.3 2010/03/31 12:03:03 gavin Exp $
class CNic_Toolkit_Response_PollTransfers extends CNic_Toolkit_Response {
public function transfers() {
$transfers = array();
foreach (preg_grep('/^domain=/', $this->keys()) as $key) {
$info = $this->response($key);
$info['domain'] = preg_replace('/^domain=/', '', $key);
$info['type'] = $info[':type'];
unset($info[':type']);
$transfers[] = $info;
}
return $transfers;
}
}
?>