La définition de l'appel à une méthode ou une fonction peut avoir les formes suivantes:
::maMethode()::maSecondeMethode(EVT_IDINITIATOR)::maTroisiemeMethode(true)
Ces méthodes doivent être renseignées pour l'objet événement.
Soit le fichier Method.MesFonctions.php identifié comme faisant partir de la sous-famille événements que l'on a spécifiée
public function maMethode() { $a = $this->title; $b = $this->getValue("EVT_IDINITIATOR"); //.. } public function maSecondeMethode($idini) { $a = $this->title; //.. } public function maTroisièmeMethode($isSure) { if ($isSure) { $a = $this->title; $b = $this->getValue("EVT_IDINITIATOR"); } //.. }
Les fonctions doivent être dans un fichier php se trouvant dans le répertoire EXTERNALS du répertoire de publication
mesfonctions:maFonction()mesfonctions:maSecondeFonction(EVT_IDINITIATOR)mesfonctions:maTroisiemeFonction(true)
Soit le fichier EXTERNALS/mesfonctions.php
function maFonction(&$oevt) { $a = $oevt->title; $b = $oevt->getValue("EVT_IDINITIATOR"); //.. } function maSecondeFonction(&$oevt,$idini) { $a = $oevt->title; //.. } function maTroisièmeFonction(&$oevt,$isSure) { if ($isSure) { $a = $oevt->title; $b = $oevt->getValue("EVT_IDINITIATOR"); } //.. }