Class Giscuit_Db_Table_Files

Description

Class for files table

  • copyright: Copyright (c) 2012 VEC

Located in /Db/Table/Files.php (line 28)

Zend_Db_Table_Abstract
   |
   --Giscuit_Db_Table_Abstract
      |
      --Giscuit_Db_Table_Files
Variable Summary
 static array $imageExtensions
 string $_name
Method Summary
 addItem ( $data) integer
 deleteItem (integer $id) void
 getItems ([ $options = array()]) Zend_Db_Table_Rowset
Variables
static array $imageExtensions = array(
'jpeg',
'jpg' ,
'png',
'gif'
)
(line 43)

List of file extensions that will ne treated as an image

  • access: public
string $_name = 'files' (line 36)

Table name

  • access: protected

Inherited Variables

Inherited from Giscuit_Db_Table_Abstract

Giscuit_Db_Table_Abstract::$_primary
Methods
addItem (line 92)

Add item

  • return: The id of the new element
  • access: public
integer addItem ( $data)
  • Zend_Form $data: A form object populated with request data
deleteItem (line 152)

Delete item

  • access: public
void deleteItem (integer $id)
  • integer $id: File id
getItems (line 57)

Get items

  • access: public
Zend_Db_Table_Rowset getItems ([ $options = array()])
  • array $options: Available options:
    • whereId integer - Fetch rows that match the id

Inherited Methods

Inherited From Giscuit_Db_Table_Abstract

 Giscuit_Db_Table_Abstract::__construct()
 Giscuit_Db_Table_Abstract::count()
 Giscuit_Db_Table_Abstract::getPrimaryKey()
 Giscuit_Db_Table_Abstract::joinMultilangField()
 Giscuit_Db_Table_Abstract::moveItem()
 Giscuit_Db_Table_Abstract::whereActive()
 Giscuit_Db_Table_Abstract::whereCurrentUser()
 Giscuit_Db_Table_Abstract::whereId()

Documentation generated on Fri, 23 Nov 2012 13:01:31 +0000 by phpDocumentor 1.4.3