Class Blog

Description

TAM AG CMS

  • author: DevilDev

Located in /blog/Blog.php (line 11)

ModelAbstract
   |
   --Blog
Variable Summary
static Blog $_instance
Method Summary
static Blog getInstance ()
integer addComment ()
void getById ( $blog_id)
string loadAdminHtml ()
string loadBlogDetailHtml (integer $blog_id)
string loadBlogsHtml ([ $return = false])
string loadComments (integer $blog_id)
string loadForm ()
void loadLikeBlogs ([ $count = 4], [ $blog_id = null])
void loadLikeBlogsHtml ([ $count = 4], [ $blog_id = null])
string loadSlider (array $blog)
string loadTopBlogs (int $count, [ $ignoreId = NULL])
void loadTopBlogsHtml ( $count, [ $ignoreId = NULL])
string loadTopCategory ([int $count = 10])
void loadTrash ([ $cnt = false])
void removeById ( $id)
void _init ()
Variables
static Blog $_instance = null (line 19)

Singleton instance

  • access: protected
Methods
static method getInstance (line 29)

Returns an instance of Blog

Singleton pattern implementation

  • return: Provides a fluent interface
  • access: public
static Blog getInstance ()
addComment (line 605)

Add new comment

Required params
message, blog_id, parent_id

  • return: new comment id
  • access: public
integer addComment ()
getById (line 1289)
  • access: public
void getById ( $blog_id)
  • $blog_id
loadAdminHtml (line 53)

Create admin page for editing all blogs

Allow variables :
$news_lines - html all news lines
$pagination - html paginator
$no_index - TRUE or FALSE
$meta_title, $meta_keywords, $meta_description - all meta tags

  • return: html page for admin module
  • access: public
string loadAdminHtml ()
loadBlogDetailHtml (line 687)

Create html for blog detail page

Allow variables:
$text - blog text
$date - blog date
$slider - blog slider
$blog_lines - other blogs html
$category_list - categories html
$blog - array, all params blogs
$comments - html all comments
$form_comment - html form for add new comment

  • return: html
  • access: public
string loadBlogDetailHtml (integer $blog_id)
  • integer $blog_id
loadBlogsHtml (line 888)

Create blogs html

Allow variables :
$category_id - current category_id
$q - current search query
$blog_lines - html all blogs with limit
$paginator - html current paginator
$category_list - html all categories
$canonical - html meta canonicals
incoming params:
pages - current page
l - limit per page
c - filter by category_id
q - search query

  • return: html
  • access: public
string loadBlogsHtml ([ $return = false])
  • $return
loadComments (line 786)

Create comment html

Allow variable
$comments - html line comments
$count_comment - int coun comments

  • return: html or boolean
  • access: public
string loadComments (integer $blog_id)
  • integer $blog_id
loadForm (line 465)

Create html form for admin module on edit blog

Allow variables:
$blog - array
$blog_id - id blog
$images_form - html for edit images for this blog
$comments_form - html for for add comments
$category_select - select with all categoriess

  • return: html form for edit blog
  • access: public
string loadForm ()
loadLikeBlogs (line 1219)
  • access: public
void loadLikeBlogs ([ $count = 4], [ $blog_id = null])
  • $count
  • $blog_id
loadLikeBlogsHtml (line 1215)
  • access: public
void loadLikeBlogsHtml ([ $count = 4], [ $blog_id = null])
  • $count
  • $blog_id
loadSlider (line 1051)

Create slider for blog

Allow valiable :
$slider_lines - html lines for slider

  • return: html
  • access: public
string loadSlider (array $blog)
  • array $blog
loadTopBlogs (line 1136)

Create html for top blogs

Allow variables:
$news_line - html lines top blogs

  • return: html or FALSE
  • access: public
string loadTopBlogs (int $count, [ $ignoreId = NULL])
  • int $count
  • $ignoreId
loadTopBlogsHtml (line 1123)
  • access: public
void loadTopBlogsHtml ( $count, [ $ignoreId = NULL])
  • $count
  • $ignoreId
loadTopCategory (line 1089)

Load html top blog category

  • return: html top categies or FALSE
  • access: public
string loadTopCategory ([int $count = 10])
  • int $count
loadTrash (line 1190)
  • access: public
void loadTrash ([ $cnt = false])
  • $cnt
removeById (line 1302)
  • access: public
void removeById ( $id)
  • $id
_init (line 36)
void _init ()

Documentation generated on Fri, 19 Aug 2016 17:10:28 +0200 by phpDocumentor 1.4.3