Services_Blogging
[ class tree: Services_Blogging ] [ index: Services_Blogging ] [ all elements ]

Class: Services_Blogging_Driver

Source Location: /Services_Blogging-0.1.1/Services/Blogging/Driver.php

Class Overview


A PHP interface to blogging APIs


Author(s):

Methods


Child classes:

Services_Blogging_Driver_Blogger
Blogger API implementation.
Services_Blogging_ExtendedDriver
A class extended from Services_Blogging that provides additional abstract functions not present in the original class. These methods have been primarily implemented by the metaWeblog API driver.

Inherited Variables

Inherited Methods


Class Details

[line 13]
A PHP interface to blogging APIs


[ Top ]


Method Detail

createNewPost   [line 75]

Services_Blogging_Post createNewPost( )

Creates a new post object and returns that.

Automatically sets the driver object in the post.

  • Return: New post object
  • Access: public

[ Top ]

deletePost   [line 41]

boolean deletePost( mixed $post)

Delete a given post
  • Return: True if deleted, false if not.
  • Abstract:
  • Access: public

Overridden in child classes as:

Services_Blogging_Driver_Blogger::deletePost()
Delete a given post
Services_Blogging_Driver_LiveJournal::deletePost()
Delete a given post.
Services_Blogging_Driver_MetaWeblog::deletePost()
Delete a given post.

Parameters:

mixed   $post   —  Services_Blogging_Post object to delete, or post id (integer) to delete

[ Top ]

getSupportedPostProperties   [line 53]

array getSupportedPostProperties( )

Returns an array of strings thay define the properties that a post to this blog may have.
  • Return: Array of strings
  • Abstract:
  • Access: public

Overridden in child classes as:

Services_Blogging_Driver_Blogger::getSupportedPostProperties()
Returns an array of strings thay define the properties that a post to this blog may have.
Services_Blogging_Driver_LiveJournal::getSupportedPostProperties()
Returns an array of strings thay define the properties that a post to this blog may have.
Services_Blogging_Driver_MetaWeblog::getSupportedPostProperties()
Returns an array of strings thay define the properties that a post to this blog may have.

[ Top ]

isPostPropertySupported   [line 65]

boolean isPostPropertySupported( string $strProperty)

Checks if the given property name/id is supported for this driver.
  • Return: If the property is supported
  • Abstract:
  • Access: public

Overridden in child classes as:

Services_Blogging_Driver_Blogger::isPostPropertySupported()
Checks if the given property name/id is supported for this driver.
Services_Blogging_Driver_LiveJournal::isPostPropertySupported()
Checks if the given property name/id is supported for this driver.
Services_Blogging_Driver_MetaWeblog::isPostPropertySupported()
Checks if the given property name/id is supported for this driver.

Parameters:

string   $strProperty   —  Property name/id to check

[ Top ]

savePost   [line 30]

string savePost( Services_Blogging_Post $post)

Save a new post into the blog.
  • Return: The ID assigned to the post
  • Abstract:
  • Access: public

Overridden in child classes as:

Services_Blogging_Driver_Blogger::savePost()
Save a new post into the blog.
Services_Blogging_Driver_LiveJournal::savePost()
Save a new post into the blog.
Services_Blogging_Driver_MetaWeblog::savePost()
Save a new post into the blog.

Parameters:

Services_Blogging_Post   $post   —  Post object to put online

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:57:58 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.