Skip to content

Commit f94efbb

Browse files
authored
Merge pull request #14 from sircovsw/sircovsw-patch-1
Create Buzz
2 parents 81668b7 + 4ade219 commit f94efbb

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

Templates/Buzz

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?php
2+
/**
3+
* Novutec Domain Tools
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* @category Novutec
17+
* @package DomainParser
18+
* @copyright Copyright (c) 2007 - 2013 Novutec Inc. (http://www.novutec.com)
19+
* @license http://www.apache.org/licenses/LICENSE-2.0
20+
*/
21+
22+
/**
23+
* @namespace Novutec\WhoisParser\Templates
24+
*/
25+
namespace Novutec\WhoisParser\Templates;
26+
27+
use Novutec\WhoisParser\Templates\Type\Regex;
28+
29+
/**
30+
* Template for IANA #625
31+
*
32+
* @category Novutec
33+
* @package WhoisParser
34+
* @copyright Copyright (c) 2007 - 2013 Novutec Inc. (http://www.novutec.com)
35+
* @license http://www.apache.org/licenses/LICENSE-2.0
36+
*/
37+
class Buzz extends Regex
38+
{
39+
40+
/**
41+
* Blocks within the raw output of the whois
42+
*
43+
* @var array
44+
* @access protected
45+
*/
46+
protected $blocks = array(1 => '/domain name:(?>[\x20\t]*)(.*?)(?=>>>)/is');
47+
48+
/**
49+
* Items for each block
50+
*
51+
* @var array
52+
* @access protected
53+
*/
54+
protected $blockItems = array(
55+
1 => array('/whois server:(?>[\x20\t]*)(.+)$/im' => 'whoisserver',
56+
'/registrar:(?>[\x20\t]*)(.+)$/im' => 'registrar:name',
57+
'/registrar iana id:(?>[\x20\t]*)(.+)$/im' => 'registrar:id',
58+
'/referral url:(?>[\x20\t]*)(.+)$/im' => 'registrar:url',
59+
'/creation date:(?>[\x20\t]*)(.+)$/im' => 'created',
60+
'/expiry date:(?>[\x20\t]*)(.+)$/im' => 'expires',
61+
'/updated date:(?>[\x20\t]*)(.+)$/im' => 'changed',
62+
'/name server:(?>[\x20\t]*)(.+)$/im' => 'nameserver',
63+
'/dnssec:(?>[\x20\t]*)(.+)$/im' => 'dnssec',
64+
'/status:(?>[\x20\t]*)(.+)$/im' => 'status')
65+
);
66+
}

0 commit comments

Comments
 (0)