Class Dms

Description

TAM AG CMS

  • author: DevilDev

Located in /dms/Dms.php (line 11)

ModelAbstract
   |
   --Dms
Variable Summary
static Dms $_instance
Method Summary
static Dms getInstance ()
int getTypeOneByName (string $name)
string loadAdminHtml ()
int saveDocument (array $data)
void _init ()
Variables
static Dms $_instance = null (line 18)

Singleton instance

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

Returns an instance of Dms

Singleton pattern implementation

  • return: Provides a fluent interface
  • access: public
static Dms getInstance ()
getTypeOneByName (line 68)

Get document type id one by type name

  • return: document type id
  • access: public
int getTypeOneByName (string $name)
  • string $name: document type name
loadAdminHtml (line 100)

Create html for admin

Allow variable
$search_type string current search type (id, date, name)
$q - current search query
$order_f - current sort field name (id, date, name)
$order_t - current sort type (asc, desc)
$total - int total found result
$html - all lines html
$pagination - html paginator
Incoming variable
limit - int limit per page
pages - int current page
q - search query
of, ot - sort data
search_type - search data

  • return: html for admin
  • access: public
string loadAdminHtml ()
saveDocument (line 49)

Save new document in database

  • return: last insert id
  • access: public
int saveDocument (array $data)
  • array $data: (required all fields in dms_documents table)
_init (line 38)
void _init ()

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