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

Class: Services_Blogging_Driver

Source Location: /Services_Blogging-0.2.4/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 28]
A PHP interface to blogging APIs


[ Top ]


Method Detail

createNewPost   [line 111]

Services_Blogging_Post createNewPost( [string $strPostType = 'post'])

Creates a new post object and returns that.

Automatically sets the driver object in the post.

Needs to be overwritten by drivers supporting multiple post types.


Parameters:

string   $strPostType     Type of post to create.

[ Top ]

deletePost   [line 61]

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_MetaWeblog::deletePost()
Delete a given post.
Services_Blogging_Driver_LiveJournal::deletePost()
Delete a given post.

Parameters:

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

[ Top ]

getSupportedPostProperties   [line 75]

array getSupportedPostProperties( [string $strPostType = 'post'])

Returns an array of strings thay define the properties that a post to this blog may have.

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_MetaWeblog::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.

Parameters:

string   $strPostType     Type of post to create.

[ Top ]

getSupportedPostTypes   [line 143]

array getSupportedPostTypes( )

Returns an array of supported post types. Pass one of them to createNewPost() to instantiate such a post object.

Useful for drivers that support multiple post types like normal post ("post"), video and such. Most drivers support posts only.

Needs to be overwritten by drivers supporting post types.

  • Return: Array of strings (post types)
  • Access: public

[ Top ]

isPostPropertySupported   [line 90]

boolean isPostPropertySupported( string $strProperty, [string $strPostType = 'post'])

Checks if the given property name/id is supported for this driver.

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_MetaWeblog::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.

Parameters:

string   $strProperty     Property name/id to check
string   $strPostType     Type of post to create.

[ Top ]

savePost   [line 49]

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_MetaWeblog::savePost()
Save a new post into the blog.
Services_Blogging_Driver_LiveJournal::savePost()
Save a new post into the blog.

Parameters:

Services_Blogging_Post   $post     Post object to put online

[ Top ]


Documentation generated on Sat, 10 Dec 2011 15:30:27 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.