models/Listfile.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Listfile

Package: Models
Listfile
Parent(s)
\Zend_Db_Table
Access
public  
Author
Alexander  
Copyright
2012  
Version
$Id$  

Properties

>VPropertyprotected$_db
Details
Type
n/a
>VPropertyprotectedstring $_name = 'files'
table name
Default value'files'Details
Type
string
>VPropertyprotectedstring $_schema = 'scout_listfile'
db name
Default value'scout_listfile'Details
Type
string
>VPropertypublic$lid
Details
Type
n/a

Methods

methodpubliccleanData(mixed $str) :

Clean data

Parameters
NameTypeDescription
$strmixed
methodpubliccleanNotFinished() :

Clean not finished "add listfile" temporary tables

methodpubliccreate_fields_table(mixed $table_name, mixed $cols) :

Listfile::create_fields_table()

Parameters
NameTypeDescription
$table_namemixed
$colsmixed
methodpubliccreate_import_table(mixed $table_name, mixed $cols,  $db = false) :

Listfile::create_import_table()

Parameters
NameTypeDescription
$table_namemixed
$colsmixed
$db
methodpublicduplicate(mixed $lid, mixed $new_id) :

Duplicate listfile

Parameters
NameTypeDescription
$lidmixed
$new_idmixed
methodpublicexport_to_xls(mixed $data) :

Export to xls

Parameters
NameTypeDescription
$datamixed
methodpublicgetFields(boolean $where = false) :

Get all fields for listfile

Parameters
NameTypeDescription
$whereboolean
methodpublicgetNameListfile(integer $id) :

Listfile::getSameListfile()

Parameters
NameTypeDescription
$idinteger
methodpublicgetSameListfile(integer $id,  $groupId = 0) :

Listfile::getSameListfile()

Parameters
NameTypeDescription
$idinteger
$groupId
methodpublicget_csv_header_fields(mixed $file_name, boolean $use_csv_header = true) :

Listfile::get_csv_header_fields() returns array of CSV file columns

Parameters
NameTypeDescription
$file_namemixed
$use_csv_headerboolean
methodpublicimport(mixed $filename, mixed $table_name, mixed $arr_csv_columns,  $db = false) :

Listfile::import() import listfile from csv to db

Parameters
NameTypeDescription
$filenamemixed
$table_namemixed
$arr_csv_columnsmixed
$db
methodpublicparse_codes(mixed $codefile) :

Listfile parse codes

Parameters
NameTypeDescription
$codefilemixed
methodpublicrenameList(mixed $oldname, mixed $newname) :

Rename listfile

Parameters
NameTypeDescription
$oldnamemixed
$newnamemixed
methodpublicxls2csv(mixed $xlsfile, mixed $csvfile) :

xls to csv file

Parameters
NameTypeDescription
$xlsfilemixed
$csvfilemixed
Documentation was generated by phpDocumentor 2.8.5.