Skip to content

Commit

Permalink
Uniformize field country_id, country_code, country
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 27, 2012
1 parent 1f10e4e commit aa8e7b1
Show file tree
Hide file tree
Showing 5 changed files with 191 additions and 143 deletions.
16 changes: 8 additions & 8 deletions htdocs/core/class/html.formsms.class.php
Expand Up @@ -24,11 +24,11 @@
require_once(DOL_DOCUMENT_ROOT ."/core/class/html.form.class.php");


/** \class FormSms
* \brief Classe permettant la generation du formulaire d'envoi de Sms
* \remarks Utilisation: $formsms = new FormSms($db)
* \remarks $formsms->proprietes=1 ou chaine ou tableau de valeurs
* \remarks $formsms->show_form() affiche le formulaire
/**
* Classe permettant la generation du formulaire d'envoi de Sms
* Usage: $formsms = new FormSms($db)
* $formsms->proprietes=1 ou chaine ou tableau de valeurs
* $formsms->show_form() affiche le formulaire
*/
class FormSms
{
Expand Down Expand Up @@ -62,11 +62,11 @@ class FormSms
/**
* Constructor
*
* @param DoliDB $DB Database handler
* @param DoliDB $db Database handler
*/
function FormSms($DB)
function FormSms($db)
{
$this->db = $DB;
$this->db = $db;

$this->withfrom=1;
$this->withto=1;
Expand Down
31 changes: 16 additions & 15 deletions htdocs/core/class/interfaces.class.php
Expand Up @@ -25,8 +25,7 @@


/**
* \class Interfaces
* \brief Classe de la gestion des triggers
* Class to manage triggers
*/

class Interfaces
Expand All @@ -45,26 +44,27 @@ function Interfaces($db)
}

/**
* \brief Fonction appelee lors du declenchement d'un evenement Dolibarr.
* Cette fonction declenche tous les triggers trouves actifs.
* \param action Trigger event code
* \param object Objet concern
* \param user Objet user
* \param lang Objet lang
* \param conf Objet conf
* \return int Nb of triggers ran if no error, -Nb of triggers with errors otherwise.
* Function called when a Dolibarr business event occurs
* This function call all qualified triggers.
*
* @param string $action Trigger event code
* @param Object $object Objet concern
* @param User $user Objet user
* @param Lang $lang Objet lang
* @param Conf $conf Objet conf
* @return int Nb of triggers ran if no error, -Nb of triggers with errors otherwise.
*/
function run_triggers($action,$object,$user,$langs,$conf)
{
// Check parameters
if (! is_object($object) || ! is_object($conf)) // Error
{
dol_syslog('interface::run_triggers was called with wrong parameters action='.$action.' object='.is_object($object).' user='.is_object($user).' langs='.is_object($langs).' conf='.is_object($conf), LOG_ERR);
dol_syslog(get_class($this).'::run_triggers was called with wrong parameters action='.$action.' object='.is_object($object).' user='.is_object($user).' langs='.is_object($langs).' conf='.is_object($conf), LOG_ERR);
return -1;
}
if (! is_object($user) || ! is_object($langs)) // Warning
{
dol_syslog('interface::run_triggers was called with wrong parameters action='.$action.' object='.is_object($object).' user='.is_object($user).' langs='.is_object($langs).' conf='.is_object($conf), LOG_WARNING);
dol_syslog(get_class($this).'::run_triggers was called with wrong parameters action='.$action.' object='.is_object($object).' user='.is_object($user).' langs='.is_object($langs).' conf='.is_object($conf), LOG_WARNING);
}

foreach($conf->triggers_modules as $reldir)
Expand Down Expand Up @@ -175,9 +175,10 @@ function run_triggers($action,$object,$user,$langs,$conf)
}

/**
* Return list of triggers. Function used by admin page htdoc/admin/triggers
* @param workflow 0=Return all triggers, 1=Return only triggers not disabled if workflow module activated
* @return array Array list of triggers
* Return list of triggers. Function used by admin page htdoc/admin/triggers
*
* @param int $workflow 0=Return all triggers, 1=Return only triggers not disabled if workflow module activated
* @return array Array list of triggers
*/
function getTriggersList($workflow=0)
{
Expand Down

0 comments on commit aa8e7b1

Please sign in to comment.