Public Member Functions | Protected Member Functions | Protected Attributes

Article_Files Class Reference

Inheritance diagram for Article_Files:
Collaboration diagram for Article_Files:

List of all members.

Public Member Functions

 render ()
 save ()
 getArticle ($blReset=false)
 upload ()
 deletefile ()
 getConfigOptionValue ($iOption)

Protected Member Functions

 _processOptions ($aParams)

Protected Attributes

 $_sThisTemplate = 'article_files.tpl'
 $_oArticle = null

Detailed Description

Admin article files parameters manager. Collects and updates (on user submit) files. Admin Menu: Manage Products -> Articles -> Files.

Definition at line 8 of file article_files.php.


Member Function Documentation

Article_Files._processOptions ( aParams  )  [protected]

Process config options. If value is not set, save as "-1" to database

Parameters:
array $aParams params
Returns:
array

Definition at line 193 of file article_files.php.

Article_Files.deletefile (  ) 

Deletes article file from fileid parameter and checks if this file belongs to current article.

Returns:
void

Definition at line 148 of file article_files.php.

Article_Files.getArticle ( blReset = false  ) 

Returns current oxarticle object

Parameters:
bool $blReset Load article again
Returns:
oxFile

Definition at line 82 of file article_files.php.

Article_Files.getConfigOptionValue ( iOption  ) 

Returns real config option value

Parameters:
int $iOption option value
Returns:
int

Definition at line 179 of file article_files.php.

Article_Files.render (  ) 

Collects available article axtended parameters, passes them to Smarty engine and returns tamplate file name "article_extend.tpl".

Returns:
string

Reimplemented from oxAdminDetails.

Definition at line 31 of file article_files.php.

Article_Files.save (  ) 

Saves editing article changes (oxisdownloadable) and updates oxFile object which are associated with editing object

Reimplemented from oxAdminView.

Definition at line 54 of file article_files.php.

Article_Files.upload (  ) 

Creates new oxFile object and stores newly uploaded file

Returns:
null

Definition at line 101 of file article_files.php.


Member Data Documentation

Article_Files.$_oArticle = null [protected]

Definition at line 23 of file article_files.php.

Article_Files.$_sThisTemplate = 'article_files.tpl' [protected]

Reimplemented from oxAdminView.

Definition at line 16 of file article_files.php.


The documentation for this class was generated from the following file: