API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
plgContentExample::onAfterContentSave | ( | &$ | article, |
$ | isNew | ||
) |
Example after save content method Article is passed by reference, but after the save, so no changes will be saved. Method is called right after the content is saved
object | A JTableContent object |
bool | If the content is just about to be created |
Références $mainframe.
plgContentExample::onAfterDisplayContent | ( | &$ | article, |
&$ | params, | ||
$ | limitstart | ||
) |
Example after display content method
Method is called by the view and the results are imploded and displayed in a placeholder
object | The article object. Note $article->text is also available |
object | The article params |
int | The 'page' number |
Références $mainframe.
plgContentExample::onAfterDisplayTitle | ( | &$ | article, |
&$ | params, | ||
$ | limitstart | ||
) |
Example after display title method
Method is called by the view and the results are imploded and displayed in a placeholder
object | The article object. Note $article->text is also available |
object | The article params |
int | The 'page' number |
Références $mainframe.
plgContentExample::onBeforeContentSave | ( | &$ | article, |
$ | isNew | ||
) |
Example before save content method
Method is called right before content is saved into the database. Article object is passed by reference, so any changes will be saved! NOTE: Returning false will abort the save with an error. You can set the error by calling $article->setError($message)
object | A JTableContent object |
bool | If the content is just about to be created |
Références $mainframe.
plgContentExample::onBeforeDisplayContent | ( | &$ | article, |
&$ | params, | ||
$ | limitstart | ||
) |
Example before display content method
Method is called by the view and the results are imploded and displayed in a placeholder
object | The article object. Note $article->text is also available |
object | The article params |
int | The 'page' number |
Références $mainframe.
plgContentExample::onPrepareContent | ( | &$ | article, |
&$ | params, | ||
$ | limitstart | ||
) |
Example prepare content method
Method is called by the view
object | The article object. Note $article->text is also available |
object | The article params |
int | The 'page' number |
Références $mainframe.
plgContentExample::plgContentExample | ( | &$ | subject, |
$ | params | ||
) |
Constructor
For php4 compatability we must not use the __constructor as a constructor for plugins because func_get_args ( void ) returns a copy of all passed arguments NOT references. This causes problems with cross-referencing necessary for the observer design pattern.
object | $subject | The object to observe |
object | $params | The object that holds the plugin parameters |
Références $params.