API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5

Référence de la classe plgContentExample

Graphe d'héritage de plgContentExample:
Graphe de collaboration de plgContentExample:

Liste de tous les membres

Fonctions membres publiques


Documentation des fonctions membres

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

Paramètres:
objectA JTableContent object
boolIf the content is just about to be created
Renvoie:
void

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

Paramètres:
objectThe article object. Note $article->text is also available
objectThe article params
intThe 'page' number
Renvoie:
string

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

Paramètres:
objectThe article object. Note $article->text is also available
objectThe article params
intThe 'page' number
Renvoie:
string

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)

Paramètres:
objectA JTableContent object
boolIf the content is just about to be created
Renvoie:
bool If false, abort the save

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

Paramètres:
objectThe article object. Note $article->text is also available
objectThe article params
intThe 'page' number
Renvoie:
string

Références $mainframe.

plgContentExample::onPrepareContent ( &$  article,
&$  params,
limitstart 
)

Example prepare content method

Method is called by the view

Paramètres:
objectThe article object. Note $article->text is also available
objectThe article params
intThe '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.

Paramètres:
object$subjectThe object to observe
object$paramsThe object that holds the plugin parameters
Depuis:
1.5

Références $params.


La documentation de cette classe a été générée à partir du fichier suivant :