VirtueMart  3.2.14.9808
Public Member Functions | Protected Attributes | List of all members
VmController Class Reference
Inheritance diagram for VmController:
Inheritance graph
[legend]
Collaboration diagram for VmController:
Collaboration graph
[legend]

Public Member Functions

 __construct ($cidName='cid', $config=array())
 
 display ($cachable=false, $urlparams=false)
 
 edit ($layout='edit')
 
 save ($data=0)
 
 remove ()
 
 cancel ()
 
 toggle ($field=0, $val=null)
 
 publish ($cidname=0, $table=0, $redirect=0)
 
 unpublish ($cidname=0, $table=0, $redirect=0)
 
 orderup ()
 
 orderdown ()
 
 saveorder ()
 
 getModel ($name= '', $prefix= '', $config=array())
 

Protected Attributes

 $_cidName = 0
 
 $_cname = 0
 

Constructor & Destructor Documentation

VmController::__construct (   $cidName = 'cid',
  $config = array() 
)

Sets automatically the shortcut for the language and the redirect path

Author
Max Milbers

Member Function Documentation

VmController::cancel ( )

Generic cancel task

Author
Max Milbers
VmController::display (   $cachable = false,
  $urlparams = false 
)

Typical view method for MVC based architecture

This function is provide as a default implementation, in most cases you will need to override it in your own controllers.

For the virtuemart core, we removed the "Get/Create the model"

Parameters
boolean$cachableIf true, the view output will be cached
array$urlparamsAn array of safe url parameters and their variable types, for valid values see JFilterInput::clean().
Returns
JController A JController object to support chaining.
Since
11.1
VmController::edit (   $layout = 'edit')

Generic edit task

Author
Max Milbers
VmController::getModel (   $name = '',
  $prefix = '',
  $config = array() 
)

This function just overwrites the standard joomla function, using our standard class VmModel for this

See also
JController::getModel()
VmController::orderdown ( )
VmController::orderup ( )
VmController::publish (   $cidname = 0,
  $table = 0,
  $redirect = 0 
)

Handle the publish task

Author
Jseros, Max Milbers
VmController::remove ( )

Generic remove task

Author
Max Milbers
VmController::save (   $data = 0)

Generic save task

Author
Max Milbers
Parameters
post$datasometimes we just want to override the data to process
VmController::saveorder ( )
VmController::toggle (   $field = 0,
  $val = null 
)

Handle the toggle task

Author
Max Milbers , Patrick Kohl
VmController::unpublish (   $cidname = 0,
  $table = 0,
  $redirect = 0 
)

Handle the publish task

Author
Max Milbers, Jseros

Member Data Documentation

VmController::$_cidName = 0
protected
VmController::$_cname = 0
protected

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