Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CentralNic
php-epp
Commits
aa82d0c8
Commit
aa82d0c8
authored
May 23, 2013
by
maryoflaherty
Committed by
Nigel Kukard
May 23, 2013
Browse files
dding functionality for deleting, updating, polling
parent
8e2665c3
Changes
11
Hide whitespace changes
Inline
Side-by-side
Net/EPP/Frame/Command.php
View file @
aa82d0c8
...
...
@@ -14,15 +14,17 @@
$this
->
command
=
$this
->
createElement
(
$command
);
$this
->
body
->
appendChild
(
$this
->
command
);
$this
->
payload
=
$this
->
createElementNS
(
Net_EPP_ObjectSpec
::
xmlns
(
$this
->
type
),
$this
->
type
.
':'
.
$command
);
if
(
$this
->
type
!==
""
)
{
$this
->
payload
=
$this
->
createElementNS
(
Net_EPP_ObjectSpec
::
xmlns
(
$this
->
type
),
$this
->
type
.
':'
.
$command
);
$this
->
command
->
appendChild
(
$this
->
payload
);
$this
->
command
->
appendChild
(
$this
->
payload
);
}
$this
->
clTRID
=
$this
->
createElement
(
'clTRID'
);
$this
->
clTRID
->
appendChild
(
$this
->
createTextNode
());
$this
->
clTRID
->
appendChild
(
$this
->
createTextNode
(
'a'
));
$this
->
body
->
appendChild
(
$this
->
clTRID
);
}
...
...
@@ -48,5 +50,16 @@
);
}
function
createExtensionElement
(
$ext
,
$command
)
{
$this
->
extension
=
$this
->
createElement
(
'extension'
);
$this
->
body
->
appendChild
(
$this
->
extension
);
$this
->
extension
->
payload
=
$this
->
createElementNS
(
Net_EPP_ObjectSpec
::
xmlns
(
$ext
),
$ext
.
':'
.
$command
);
$this
->
extension
->
appendChild
(
$this
->
extension
->
payload
);
}
}
?>
Net/EPP/Frame/Command/Delete.php
0 → 100644
View file @
aa82d0c8
<?php
/**
* @package Net_EPP
*/
class
Net_EPP_Frame_Command_Delete
extends
Net_EPP_Frame_Command
{
function
__construct
(
$type
)
{
$this
->
type
=
$type
;
parent
::
__construct
(
'delete'
,
$type
);
}
}
?>
Net/EPP/Frame/Command/Delete/Contact.php
0 → 100644
View file @
aa82d0c8
<?php
/**
* @package Net_EPP
*/
class
Net_EPP_Frame_Command_Delete_Contact
extends
Net_EPP_Frame_Command_Delete
{
function
__construct
()
{
parent
::
__construct
(
'contact'
);
}
}
?>
Net/EPP/Frame/Command/Delete/Domain.php
0 → 100644
View file @
aa82d0c8
<?php
/**
* @package Net_EPP
*/
class
Net_EPP_Frame_Command_Delete_Domain
extends
Net_EPP_Frame_Command_Delete
{
function
__construct
()
{
parent
::
__construct
(
'domain'
);
}
}
?>
Net/EPP/Frame/Command/Delete/Host.php
0 → 100644
View file @
aa82d0c8
<?php
/**
* @package Net_EPP
*/
class
Net_EPP_Frame_Command_Delete_Host
extends
Net_EPP_Frame_Command_Delete
{
function
__construct
()
{
parent
::
__construct
(
'host'
);
}
}
?>
Net/EPP/Frame/Command/Poll.php
0 → 100644
View file @
aa82d0c8
<?php
/**
* @package Net_EPP
*/
abstract
class
Net_EPP_Frame_Command_Poll
extends
Net_EPP_Frame_Command
{
function
__construct
()
{
parent
::
__construct
(
'poll'
,
''
);
}
function
setOp
(
$op
)
{
$this
->
command
->
setAttribute
(
'op'
,
$op
);
}
}
?>
Net/EPP/Frame/Command/Poll/Ack.php
0 → 100644
View file @
aa82d0c8
<?php
/**
* @package Net_EPP
*/
class
Net_EPP_Frame_Command_Poll_Ack
extends
Net_EPP_Frame_Command_Poll
{
function
__construct
()
{
parent
::
__construct
();
$this
->
setOp
(
'ack'
);
}
function
setMsgID
(
$id
)
{
$this
->
command
->
setAttribute
(
'msgID'
,
$id
);
}
}
?>
Net/EPP/Frame/Command/Poll/Req.php
0 → 100644
View file @
aa82d0c8
<?php
/**
* @package Net_EPP
*/
class
Net_EPP_Frame_Command_Poll_Req
extends
Net_EPP_Frame_Command_Poll
{
function
__construct
()
{
parent
::
__construct
();
$this
->
setOp
(
'req'
);
}
}
?>
Net/EPP/Frame/Command/Update/Contact.php
0 → 100644
View file @
aa82d0c8
<?php
/**
* @package Net_EPP
*/
class
Net_EPP_Frame_Command_Update_Contact
extends
Net_EPP_Frame_Command_Update
{
function
__construct
()
{
parent
::
__construct
(
'contact'
);
}
}
?>
Net/EPP/Frame/Command/Update/Host.php
0 → 100644
View file @
aa82d0c8
<?php
/**
* @package Net_EPP
*/
class
Net_EPP_Frame_Command_Update_Host
extends
Net_EPP_Frame_Command_Update
{
function
__construct
()
{
parent
::
__construct
(
'host'
);
}
}
?>
Net/EPP/ObjectSpec.php
View file @
aa82d0c8
...
...
@@ -21,6 +21,11 @@
'id'
=>
'id'
,
'schema'
=>
'urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd'
,
),
'rgp'
=>
array
(
'xmlns'
=>
'urn:ietf:params:xml:ns:rgp-1.0'
,
'id'
=>
'id'
,
'schema'
=>
'urn:ietf:params:xml:ns:rgp-1.0 rgp-1.0.xsd'
,
),
);
static
function
id
(
$object
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment