| Current Path : /var/www/html/ebilikparlimen1/ebilik/ks_library/SRC/ |
| Current File : /var/www/html/ebilikparlimen1/ebilik/ks_library/SRC/Attachment.php |
<?php
class KS_Attachment extends KS_Search {
protected $sqlTable = 'ks_attachment';
protected $id;
protected $desc;
protected $category;
protected $filename;
protected $filesize;
protected $filemimetype;
protected $fileblob;
protected $fileextension;
protected $filemodificationtime;
protected $recordid;
protected $tableid;
protected $dateCreated;
protected $dateModified;
protected $useridCreated;
protected $useridModified;
protected $searchSortField = 'att_id';
public $searchResultAssociativeArray;
public function __construct () {
}
/**
* This method returns a single record based on primary key $id
*
* @param none
* @return true
*/
public function select () {
}
/**
* This method check whether the supplied primary key $id exists or not
*
* @param none
* @return true if record found, false if not found
*/
public function exists () {
}
/**
* This method inserts a single record
*
* @param none
*/
public function insert () {
}
/**
* This method updates a single record, based on $id
*
* @param none
*/
public function update () {
}
/**
* This method deletes a single record, based on $id
*
* @param none
*/
public function delete () {
}
/**
* This method perform search based on this object.
*
* @param none
* @return array $class
*/
public function search () {
}
/**
* @return int(11)
*/
public function getId () {
}
/**
* @return varchar(255)
*/
public function getDesc () {
}
/**
* @return varchar(10)
*/
public function getCategory () {
}
/**
* @return varchar(255)
*/
public function getFilename () {
}
/**
* @return varchar(32)
*/
public function getFilesize () {
}
/**
* @return varchar(100)
*/
public function getFilemimetype () {
}
/**
* @return longblob
*/
public function getFileblob () {
}
/**
* @return varchar(32)
*/
public function getFileextension () {
}
/**
* @return datetime
*/
public function getFilemodificationtime () {
}
/**
* @return varchar(32)
*/
public function getRecordid () {
}
/**
* @return varchar(32)
*/
public function getTableid () {
}
/**
* @return datetime
*/
public function getDateCreated () {
}
/**
* @return datetime
*/
public function getDateModified () {
}
/**
* @return varchar(32)
*/
public function getUseridCreated () {
}
/**
* @return varchar(32)
*/
public function getUseridModified () {
}
/**
* @return string
*/
public function getSearchSortField () {
}
/**
* @param int(11) id
*/
public function setId ($id) {
}
/**
* @param varchar(255) desc
*/
public function setDesc ($desc) {
}
/**
* @param varchar(10) category
*/
public function setCategory ($category) {
}
/**
* @param varchar(255) filename
*/
public function setFilename ($filename) {
}
/**
* @param varchar(32) filesize
*/
public function setFilesize ($filesize) {
}
/**
* @param varchar(100) filemimetype
*/
public function setFilemimetype ($filemimetype) {
}
/**
* @param longblob fileblob
*/
public function setFileblob ($fileblob) {
}
/**
* @param varchar(32) fileextension
*/
public function setFileextension ($fileextension) {
}
/**
* @param datetime filemodificationtime
*/
public function setFilemodificationtime ($filemodificationtime) {
}
/**
* @param varchar(32) recordid
*/
public function setRecordid ($recordid) {
}
/**
* @param varchar(32) tableid
*/
public function setTableid ($tableid) {
}
/**
* @param datetime dateCreated
*/
public function setDateCreated ($dateCreated) {
}
/**
* @param datetime dateModified
*/
public function setDateModified ($dateModified) {
}
/**
* @param varchar(32) useridCreated
*/
public function setUseridCreated ($useridCreated) {
}
/**
* @param varchar(32) useridModified
*/
public function setUseridModified ($useridModified) {
}
/**
* @param string $searchSortField
*/
public function setSearchSortField ($searchSortField) {
}
/**
* @return array
*/
public function getSearchResultAssociativeArray () {
}
public function parse_csv ($file, $options) {
}
public function listAttachmentsByTableIdRecordId ($tableId, $recordId, $description) {
}
/**
* This method calculates the filesize and returns meaningful size..
*
* @param int $filesize
* @return string
*/
public static function displayFilesize ($filesize) {
}
/**
* This method returns an array containing Allowed File Upload Extensions.
* If not found from System Setting, default array will be returned.
*/
public static function getAllowedExtensions () {
}
/**
* This method uploads KS_Field_File
* @param $_FILES $file : $file is the KS_Field_File name (eg: usr_photo)
* @param PRIMARY_KEY $id : This is the record ID that this file belongs to (eg: usr_id)
* @param TABLE_NAME $tableId : This is the table name that the record belongs to (eg: t_user)
*/
public static function uploadAttachment ($file, $id, $tableId, $fieldnamedb) {
}
/**
* This method returns the encryption key used to retrieve/dispatch files.
* Used in /dispatch.php
* Free to change to more secure mechanism.
* Enter description here ...
*/
public function generateKey () {
}
public function generateURL($strValue = '') {
}
}