Class Gallery

Description

TAM AG CMS

  • author: DevilDev

Located in /gallery/Gallery.php (line 11)

Modules
   |
   --Gallery
Variable Summary
Method Summary
static Gallery getInstance ()
string createItem (array $arr)
array getAllByCategory (int|array $category_id)
array getById (int $id)
array getCategoryAll ([array $where = array()])
array getCategoryByAliace (string $aliace)
array getCategoryById (int $id)
string loadAdminHtml ()
string loadMainHtml ([ $aliace = ''])
string loadSideBar ()
string loadTopHtml ([int $count = 10])
Variables
static Gallery $_instance = null (line 18)

Singleton instance

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

Returns an instance of Gallery

Singleton pattern implementation

  • return: Provides a fluent interface
  • access: public
static Gallery getInstance ()
createItem (line 185)

Cretae html items for menu

  • return: hmtml or boolean
string createItem (array $arr)
  • array $arr
getAllByCategory (line 754)

Load all file one by category id

  • return: all files one by category id
  • access: public
array getAllByCategory (int|array $category_id)
  • int|array $category_id
getById (line 583)

Load file one by id

  • return: or boolean
  • access: public
array getById (int $id)
  • int $id
getCategoryAll (line 557)

Load all category

  • return: or bool
  • access: public
array getCategoryAll ([array $where = array()])
  • array $where
getCategoryByAliace (line 786)

Load category by aliace

  • return: or boolean
  • access: public
array getCategoryByAliace (string $aliace)
  • string $aliace
getCategoryById (line 818)

Load category by id

  • return: or boolean
  • access: public
array getCategoryById (int $id)
  • int $id
loadAdminHtml (line 228)

Create html for admin page

Allow variable
$categories_li - html all categories

  • return: html page for admin
  • access: public
string loadAdminHtml ()
loadMainHtml (line 607)

Create gallery page

Allow variable
$category - current category
$photoline - all file from current category
incoming variable
aliace - string category aliace

  • return: gallery page
  • access: public
string loadMainHtml ([ $aliace = ''])
  • $aliace
loadSideBar (line 41)

Create li objects for sidebar menu

  • return: html li objects or boolean if empty
  • access: public
string loadSideBar ()
loadTopHtml (line 101)

Create html for top block gallery category

  • return: html top blocks or boolean
  • access: public
string loadTopHtml ([int $count = 10])
  • int $count: count load top block

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