📚 Looking for current Exponential documentation? This site contains legacy SDK & API reference docs (eZ Publish era). For up-to-date 2026 product documentation, visit doc.exponential.earth.

  class / eZAuthor  

eZAuthor Class Reference
[Kernel system]

eZAuthor handles author lists More...

List of all members.


Public Methods

 setName ($name)
 name ()
 addAuthor ($name,$email)
 decodeXML ($xmlString)
& xmlString ()

Public Attributes

 Authors
 Contains the Authors.

 AuthorCount
 Contains the author counter value.


Detailed Description

eZAuthor handles author lists

  include_once( "kernel/classes/datatypes/ezauthor/ezauthor.php" );

  $author = new eZAuthor( "Colour" );
  $author->addValue( "Red" );
  $author->addValue( "Green" );

  // Serialize the class to an XML document
  $xmlString =& $author->xmlString();

Definition at line 58 of file ezauthor.php.


Member Function Documentation

eZAuthor::addAuthor (  $    name,
$    email
) 
 

Adds an author

Definition at line 87 of file ezauthor.php.

References AuthorCount, Authors, and name().

Referenced by decodeXML().

eZAuthor::decodeXML (  $    xmlString ) 
 

Will decode an xml string and initialize the eZ author object

Definition at line 137 of file ezauthor.php.

References addAuthor(), and xmlString().

eZAuthor::name (    ) 
 

Returns the name of the author set.

Definition at line 79 of file ezauthor.php.

Referenced by addAuthor(), and setName().

eZAuthor::setName (  $    name ) 
 

Sets the name of the author

Definition at line 71 of file ezauthor.php.

References name().

& eZAuthor::xmlString (    ) 
 

Will return the XML string for this author set.

Definition at line 158 of file ezauthor.php.

Referenced by decodeXML().


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

Exponential Copyright © 1998 - 2026 7x