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

Class: Content_BlogPodcast

Source Location: /content_classes/blogpodcast.class.php

Class Overview




Variables

Methods



Class Details

[line 38]


[ Top ]


Class Variables

static $instance =  null

[line 45]

Singleton



Tags:

access:  public

Type:   object


[ Top ]

$base =  null

[line 52]

Reference to base class



Tags:

access:  public

Type:   object


[ Top ]



Class Methods


constructor __construct [line 59]

Content_BlogPodcast __construct( )

Start instance of base class, load configuration and establish database connection. Please don't call the constructor direcly, use the singleton pattern instead.



Tags:

access:  public


[ Top ]

method addBlogPodcast [line 85]

int addBlogPodcast( array $sqlData)

Adds blog podcast to the blog podcast table. Takes a field=>value array with blog podcast data as first argument. Returns insert id.



Tags:

return:  Insert id
throws:  Content_BlogPodcastException
access:  public


Parameters:

array   $sqlData   Row data

[ Top ]

method blogPodcastBelongsToCurrentProject [line 652]

int blogPodcastBelongsToCurrentProject( int $blog_podcast)

Tests whether given blog podcast belongs to current project. Takes the blog podcast id as first argument. Returns bool.



Tags:

return:  bool
throws:  Content_BlogPodcastException
access:  public


Parameters:

int   $blog_podcast   Blog podcast id

[ Top ]

method blogPodcastBelongsToCurrentUser [line 706]

bool blogPodcastBelongsToCurrentUser( int $blog_podcast)

Test whether blog podcast belongs to current user or not. Takes the blog podcast id as first argument. Returns bool.



Tags:

throws:  Content_BlogPodcastException
access:  public


Parameters:

int   $blog_podcast   Blog podcast id

[ Top ]

method blogPodcastExists [line 594]

bool blogPodcastExists( int $podcast_id)

Test whether blog podcast exists. Takes the podcast id as first argument, returns bool.



Tags:

throws:  Content_BlogPodcastException
access:  public


Parameters:

int   $podcast_id  

[ Top ]

method countBlogPodcasts [line 426]

int countBlogPodcasts( [array $params = array()])

Method to count blog podcasts. Takes key=>value array with select params as first argument. Returns int.

List of supported params:

  • page, int, optional: Page id
  • blog_posting, int, optional: Blog posting id




Tags:

throws:  Content_BlogPodcastException
access:  public


Parameters:

array   $params   Select params

[ Top ]

method deleteBlogPodcast [line 169]

int deleteBlogPodcast( int $id)

Removes blog podcast from the blog podcasts table. Takes the blog podcast id as first argument. Returns amount of affected rows.



Tags:

return:  Amount of affected rows
throws:  Content_BlogPodcastException
access:  public


Parameters:

int   $id   Blog podcast id

[ Top ]

method selectBlogPodcast [line 206]

array selectBlogPodcast( int $id)

Selects one blog podcast. Takes the blog podcast id as first argument. Returns array with blog podcast information.



Tags:

throws:  Content_BlogPodcastException
access:  public


Parameters:

int   $id   Blog podcast id

[ Top ]

method selectBlogPodcasts [line 296]

array selectBlogPodcasts( [array $params = array()])

Method to select one or more blog podcasts. Takes key=>value array with select params as first argument. Returns array.

List of supported params:

  • page, int, optional: Page id
  • blog_posting, int, optional: Blog posting id
  • start, int, optional: row offset
  • limit, int, optional: amount of rows to return
  • order_marco, string, otpional: How to sort the result set. Supported macros:
    • DATE_MODIFIED: sorty by date modified
    • DATE_ADDED: sort by date added




Tags:

throws:  Content_BlogPodcastException
access:  public


Parameters:

array   $params   Select params

[ Top ]

method updateBlogPodcast [line 121]

int updateBlogPodcast( int $id, array $sqlData)

Updates blog podcast. Takes the blog podcast id as first argument, a field=>value array with the new blog podcast data as second argument.

Returns amount of affected rows.




Tags:

return:  Affected rows
throws:  Content_BlogPodcastException
access:  public


Parameters:

int   $id   Blog podcast id
array   $sqlData   Row data

[ Top ]

method updateMetadataFromSelectedSources [line 499]

int updateMetadataFromSelectedSources( int $podcast_id)

Updates metadata from selected sources. Takes the podcast id as first argument. Returns amount of affected rows.



Tags:

return:  Affected rows
throws:  Content_BlogPodcastException
access:  protected


Parameters:

int   $podcast_id   Podcast id

[ Top ]


Documentation generated on Sun, 08 Jan 2012 17:51:42 +0100 by phpDocumentor 1.4.3