\Gallery_model

CSZ CMS

An open source content management system

Copyright (c) 2016, Astian Foundation.

Astian Develop Public License (ADPL)

This Source Code Form is subject to the terms of the Astian Develop Public License, v. 1.0. If a copy of the APL was not distributed with this file, You can obtain one at http://astian.org/about-ADPL

Summary

Methods
Properties
Constants
__construct()
insert()
update()
updateConfig()
delete()
insertFileUpload()
getFirstImgs()
getConfig()
getIndexData()
getValueArray()
$db
$dbforge
$config
$load
$session
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$db

$db : \CI_DB_query_builder

Type

\CI_DB_query_builder

$dbforge

$dbforge : \CI_DB_forge

Type

\CI_DB_forge

$config

$config : \CI_Config

Type

\CI_Config

$load

$load : \CI_Loader

Type

\CI_Loader

$session

$session : \CI_Session

Type

\CI_Session

Methods

__construct()

__construct() 

insert()

insert() 

update()

update(  $id) 

Parameters

$id

updateConfig()

updateConfig() 

delete()

delete(  $id) 

Parameters

$id

insertFileUpload()

insertFileUpload(  $gallery_db_id,   $gallery_type,   $fileupload = '',   $youtube_url = '') 

Parameters

$gallery_db_id
$gallery_type
$fileupload
$youtube_url

getFirstImgs()

getFirstImgs(  $gallery_db_id) 

Parameters

$gallery_db_id

getConfig()

getConfig() : Object

getConfig

Function for get settings from settings table

Returns

Object —

or FALSE

getIndexData()

getIndexData(  $table,   $result_per_page,   $pagination,   $search_arr) 

Parameters

$table
$result_per_page
$pagination
$search_arr

getValueArray()

getValueArray(  $table,   $search_arr,   $sel_feild = '*') 

Parameters

$table
$search_arr
$sel_feild