eZ Publish  [trunk]
eZXMLInputHandler Class Reference

The class eZXMLInputHandler does. More...

+ Inheritance diagram for eZXMLInputHandler:

List of all members.

Public Member Functions

 attribute ($name)
 attributes ()
 convertInput ($text)
 customObjectAttributeHTTPAction ($http, $action, $contentObjectAttribute)
 editTemplateName ()
 editTemplateSuffix (&$contentobjectAttribute)
 eZXMLInputHandler ($xmlData, $aliasedType, $contentObjectAttribute)
 hasAttribute ($name)
 informationTemplateName ()
 informationTemplateSuffix (&$contentobjectAttribute)
 inputXML ()
 isValid ()
 validateInput ($http, $base, $contentObjectAttribute)
 xmlData ()

Public Attributes

 $AliasedHandler
 $AliasedType
 $ContentObjectAttribute
 $XMLData
 Contains the XML data as text.

Detailed Description

The class eZXMLInputHandler does.

Definition at line 18 of file ezxmlinputhandler.php.


Member Function Documentation

Returns:
the value of the attribute $name if it exists, if not returns null.

Definition at line 59 of file ezxmlinputhandler.php.

Returns:
an array with attribute names.

Definition at line 39 of file ezxmlinputhandler.php.

Referenced by hasAttribute().

eZXMLInputHandler::convertInput ( text) [pure virtual]

Converts text input $text into an XML structure and returns it.

Returns:
an array where index 0 is the xml structure and index 1 is a message.

Definition at line 186 of file ezxmlinputhandler.php.

eZXMLInputHandler::customObjectAttributeHTTPAction ( http,
action,
contentObjectAttribute 
) [pure virtual]

Handles custom actions for input handler.

Note:
Default does nothing, reimplement to check actions.

Definition at line 132 of file ezxmlinputhandler.php.

Returns:
the template name for this input handler, includes the edit suffix if any.

Definition at line 102 of file ezxmlinputhandler.php.

Referenced by attribute().

eZXMLInputHandler::editTemplateSuffix ( &$  contentobjectAttribute) [pure virtual]
Returns:
the suffix for the attribute template, if false it is ignored.

Definition at line 150 of file ezxmlinputhandler.php.

Referenced by editTemplateName().

eZXMLInputHandler::eZXMLInputHandler ( xmlData,
aliasedType,
contentObjectAttribute 
)

Constructor

Definition at line 23 of file ezxmlinputhandler.php.

Referenced by eZSimplifiedXMLInput\eZSimplifiedXMLInput().

Returns:
true if the attribute $name exists.

Definition at line 51 of file ezxmlinputhandler.php.

Returns:
the template name for this input handler, includes the information suffix if any.

Definition at line 116 of file ezxmlinputhandler.php.

Referenced by attribute().

eZXMLInputHandler::informationTemplateSuffix ( &$  contentobjectAttribute) [pure virtual]
Returns:
the suffix for the attribute template, if false it is ignored.

Definition at line 159 of file ezxmlinputhandler.php.

Referenced by informationTemplateName().

eZXMLInputHandler::inputXML ( ) [pure virtual]

Returns the text representation of the XML structure, implement this to turn XML back into user input.

Implemented in eZSimplifiedXMLInput.

Definition at line 196 of file ezxmlinputhandler.php.

Referenced by attribute().

Returns:
true if the input handler is considered valid, if not the handler will not be used.
Note:
Default returns true

Definition at line 141 of file ezxmlinputhandler.php.

eZXMLInputHandler::validateInput ( http,
base,
contentObjectAttribute 
) [pure virtual]

Validates user input and returns whether it can be used or not.

Implemented in eZSimplifiedXMLInput.

Definition at line 176 of file ezxmlinputhandler.php.

Returns:
the xml data as text.

Definition at line 167 of file ezxmlinputhandler.php.


Member Data Documentation

eZXMLInputHandler::$AliasedHandler

Definition at line 205 of file ezxmlinputhandler.php.

eZXMLInputHandler::$AliasedType

Definition at line 204 of file ezxmlinputhandler.php.

eZXMLInputHandler::$ContentObjectAttribute

Definition at line 206 of file ezxmlinputhandler.php.

eZXMLInputHandler::$XMLData

Contains the XML data as text.

Definition at line 203 of file ezxmlinputhandler.php.


The documentation for this class was generated from the following file: