$nBlogId = null
[line 50]
Id of the blog to be used.
Some blogs support multiple blogs with one account.
$userdata = array()
[line 56]
Internal list with user data.
__construct (Constructor) [line 78]
Services_Blogging_Driver_Blogger __construct(
string
$user, string
$pass, [string
$server = null], [string
$path = null])
Constructor for the Blogger class that authenticates the user and sets class properties. It will return the userinfo if authentication was successful, an exception if authentication failed. The username, password, path to the XML-RPC client and server URI are passed as parameters.
If $server and $path are set to NULL, the default blogger.com address is used.
- Throws: Services_Blogging_Exception If authentication fails
- Access: public
Parameters:
string
$user
—
The username of the blog account.
string
$pass
—
The password of the blog account.
string
$server
—
The URI of the server to connect to.
string
$path
—
The path to the XML-RPC server script.
deletePost [line 174]
boolean deletePost(
mixed
$post)
Delete a given post
- Return: True if deleted, false if not.
- Access: public
Overrides
Services_Blogging_Driver::deletePost() (Delete a given post)
Parameters:
mixed
$post
—
Services_Blogging_Post object to delete, or post id (integer) to delete
getBlogId [line 258]
Returns the id of the currently used blog.
- Return: Blog id
- Access: public
getBlogs [line 270]
Returns an array of blogs for that account.
- Return: Array of Services_Blogging_Blog objects
- Access: public
getSupportedPostProperties [line 212]
array getSupportedPostProperties(
[string
$strPostType = 'post'])
Returns an array of strings thay define the properties that a post to this blog may have.
Overrides
Services_Blogging_Driver::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.
getSupportedTemplates [line 386]
array getSupportedTemplates(
)
Returns an array of supported Templates
- Return: Array of templates (strings)
- Access: public
getTemplate [line 316]
string getTemplate(
string
$tempType)
Implements the blogger.getTemplate() method. The BlogID of the blog for which the template must be retrieved and the template type are passed as parameters.
The template type is usually one of 'main' or 'archiveIndex'. The template in HTML format is returned.
A template is the HTML code that represents the format of your blog. It is best to first examine the code that is returned by using this method; modifying it to suit your requirements, and then updating the template using the setTemplate() method.
- Return: The template in HTML form.
- Access: public
Parameters:
string
$tempType
—
The type of template to retrived. Usually either 'main' or 'archiveIndex'.
isPostPropertySupported [line 230]
boolean isPostPropertySupported(
string
$strProperty, [string
$strPostType = 'post'])
Checks if the given property name/id is supported for this driver.
Overrides
Services_Blogging_Driver::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.
savePost [line 126]
Save a new post into the blog.
- Throws: Services_Blogging_Exception If an error occured
- Access: public
Overrides
Services_Blogging_Driver::savePost() (Save a new post into the blog.)
Parameters:
setBlogId [line 245]
void setBlogId(
int
$nBlogId)
Sets the blog id to use (some blogging APIs support multiple blogs with one account)
Parameters:
int
$nBlogId
—
Id of the blog to use
setTemplate [line 356]
boolean setTemplate(
string
$tempType, string
$template)
Implements the blogger.setTemplate() method. The BlogID of the blog for which the template is to be set, the template type (again: 'main' or 'archiveIndex') and the actual template in the HTML format are passed as parameters.
See the docblock for the getTemplate() to find out what a template is.
- Return: Whether or not the template was set.
- Access: public
Parameters:
string
$tempType
—
The type of the template being set. Either 'main' or 'archiveIndex'.
string
$template
—
The actual template in the HTML format.