Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct ($config=array()) | |
getModel ($name= 'Source', $prefix= 'TemplatesModel', $config=array()) | |
display ($cachable=false, $urlparams=false) | |
edit () | |
cancel () | |
save () |
Fonctions membres protégées | |
allowEdit () | |
allowSave () |
TemplatesControllerSource::__construct | ( | $config = array() | ) |
Constructor.
array | An optional associative array of configuration settings. |
Réimplémentée à partir de JController.
Références $config.
|
protected |
Method to check if you can add a new record.
Extended classes can override this if necessary.
array | An array of input data. |
string | The name of the key for the primary key. |
Références JFactory\getUser().
|
protected |
Method to check if you can save a new or existing record.
Extended classes can override this if necessary.
array | An array of input data. |
string | The name of the key for the primary key. |
TemplatesControllerSource::cancel | ( | ) |
Method to cancel an edit
Références $app, JRoute\_(), JText\_(), JSession\checkToken(), JFactory\getApplication(), jexit(), et null.
This controller does not have a display method. Redirect back to the list view of the component.
boolean | If true, the view output will be cached |
array | An array of safe url parameters and their variable types, for valid values see JFilterInput::clean(). |
Réimplémentée à partir de JController.
Références JRoute\_().
TemplatesControllerSource::edit | ( | ) |
Method to edit an existing record.
Références $app, JText\_(), JFactory\getApplication(), JRequest\getVar(), null, JError\raiseError(), et JError\raiseWarning().
TemplatesControllerSource::getModel | ( | $name = 'Source' , |
|
$prefix = 'TemplatesModel' , |
|||
$config = array() |
|||
) |
Method to get a model object, loading it if required.
string | The model name. Optional. |
string | The class prefix. Optional. |
array | Configuration array for model. Optional (note, the empty array is atypical compared to other models). |
Réimplémentée à partir de JController.
TemplatesControllerSource::save | ( | ) |
Saves a template source file.
Références $app, $data, $i, $n, $task, JRoute\_(), JText\_(), JSession\checkToken(), elseif, JFactory\getApplication(), JRequest\getVar(), jexit(), null, JError\raiseError(), JError\raiseWarning(), et JText\sprintf().