Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Service_Technorati_Weblog Class Reference

Public Member Functions

 __construct (DomElement $dom)
 Constructs a new object from DOM Element.
 
 getName ()
 Returns weblog name.
 
 getUrl ()
 Returns weblog URL.
 
 getInboundBlogs ()
 Returns number of unique blogs linking this blog.
 
 getInboundLinks ()
 Returns number of incoming links to this blog.
 
 getRssUrl ()
 Returns weblog Rss URL.
 
 getAtomUrl ()
 Returns weblog Atom URL.
 
 getLastUpdate ()
 Returns UNIX timestamp of the last weblog update.
 
 getRank ()
 Returns weblog rank value.
 
 getLat ()
 Returns weblog latitude coordinate.
 
 getLon ()
 Returns weblog longitude coordinate.
 
 hasPhoto ()
 Returns whether the author who claimed this weblog has a photo.
 
 getAuthors ()
 Returns the array of weblog authors.
 
 setName ($name)
 Sets weblog name.
 
 setUrl ($url)
 Sets weblog URL.
 
 setInboundBlogs ($number)
 Sets number of inbound blogs.
 
 setInboundLinks ($number)
 Sets number of Iinbound links.
 
 setRssUrl ($url)
 Sets weblog Rss URL.
 
 setAtomUrl ($url)
 Sets weblog Atom URL.
 
 setLastUpdate ($datetime)
 Sets weblog Last Update timestamp.
 
 setRank ($rank)
 Sets weblog Rank.
 
 setLat ($coordinate)
 Sets weblog latitude coordinate.
 
 setLon ($coordinate)
 Sets weblog longitude coordinate.
 
 setHasPhoto ($hasPhoto)
 Sets hasPhoto property.
 

Protected Attributes

 $_name
 
 $_url
 
 $_rssUrl
 
 $_atomUrl
 
 $_inboundBlogs
 
 $_inboundLinks
 
 $_lastUpdate
 
 $_rank
 
 $_lat
 
 $_lon
 
 $_hasPhoto = false
 
 $_authors = array()
 

Constructor & Destructor Documentation

__construct ( DomElement  $dom)

Constructs a new object from DOM Element.

Parameters
DomElement$domthe ReST fragment for this object

The following are optional elements

I can't find any official documentation about the following properties however they are included in response DTD and/or test responses.

Member Function Documentation

getAtomUrl ( )

Returns weblog Atom URL.

Returns
null|Zend_Uri_Http object representing the URL of the Atom feed for given blog
getAuthors ( )

Returns the array of weblog authors.

Returns
array of Zend_Service_Technorati_Author authors
getInboundBlogs ( )

Returns number of unique blogs linking this blog.

Returns
integer the number of inbound blogs
getInboundLinks ( )

Returns number of incoming links to this blog.

Returns
integer the number of inbound links
getLastUpdate ( )

Returns UNIX timestamp of the last weblog update.

Returns
integer UNIX timestamp of the last weblog update
getLat ( )

Returns weblog latitude coordinate.

Note. This property is not documented.

Returns
float weblog latitude coordinate
getLon ( )

Returns weblog longitude coordinate.

Note. This property is not documented.

Returns
float weblog longitude coordinate
getName ( )

Returns weblog name.

Returns
string Weblog name
getRank ( )

Returns weblog rank value.

Note. This property is not documented.

Returns
integer weblog rank value
getRssUrl ( )

Returns weblog Rss URL.

Returns
null|Zend_Uri_Http object representing the URL of the RSS feed for given blog
getUrl ( )

Returns weblog URL.

Returns
null|Zend_Uri_Http object representing weblog base URL
hasPhoto ( )

Returns whether the author who claimed this weblog has a photo.

Note. This property is not documented.

Returns
bool TRUE if the author who claimed this weblog has a photo, FALSE otherwise.
setAtomUrl (   $url)

Sets weblog Atom URL.

Parameters
string | Zend_Uri_Http$url
Returns
Zend_Service_Technorati_Weblog $this instance
Exceptions
Zend_Service_Technorati_Exceptionif $input is an invalid URI (via Zend_Service_Technorati_Utils::normalizeUriHttp)
setHasPhoto (   $hasPhoto)

Sets hasPhoto property.

Parameters
bool$hasPhoto
Returns
Zend_Service_Technorati_Weblog $this instance
setInboundBlogs (   $number)

Sets number of inbound blogs.

Parameters
integer$number
Returns
Zend_Service_Technorati_Weblog $this instance
setInboundLinks (   $number)

Sets number of Iinbound links.

Parameters
integer$number
Returns
Zend_Service_Technorati_Weblog $this instance
setLastUpdate (   $datetime)

Sets weblog Last Update timestamp.

$datetime can be any value supported by Zend_Service_Technorati_Utils::normalizeDate().

Parameters
mixed$datetimeA string representing the last update date time in a valid date time format
Returns
Zend_Service_Technorati_Weblog $this instance
Exceptions
Zend_Service_Technorati_Exception
setLat (   $coordinate)

Sets weblog latitude coordinate.

Parameters
float$coordinate
Returns
Zend_Service_Technorati_Weblog $this instance
setLon (   $coordinate)

Sets weblog longitude coordinate.

Parameters
float$coordinate
Returns
Zend_Service_Technorati_Weblog $this instance
setName (   $name)

Sets weblog name.

Parameters
string$name
Returns
Zend_Service_Technorati_Weblog $this instance
setRank (   $rank)

Sets weblog Rank.

Parameters
integer$rank
Returns
Zend_Service_Technorati_Weblog $this instance
setRssUrl (   $url)

Sets weblog Rss URL.

Parameters
string | Zend_Uri_Http$url
Returns
Zend_Service_Technorati_Weblog $this instance
Exceptions
Zend_Service_Technorati_Exceptionif $input is an invalid URI (via Zend_Service_Technorati_Utils::normalizeUriHttp)
setUrl (   $url)

Sets weblog URL.

Parameters
string | Zend_Uri_Http$url
Returns
void
Exceptions
Zend_Service_Technorati_Exceptionif $input is an invalid URI (via Zend_Service_Technorati_Utils::normalizeUriHttp)

Member Data Documentation

$_atomUrl
protected
$_authors = array()
protected
$_hasPhoto = false
protected
$_inboundBlogs
protected
$_inboundLinks
protected
$_lastUpdate
protected
$_lat
protected
$_lon
protected
$_name
protected
$_rank
protected
$_rssUrl
protected
$_url
protected