/[openfoncier]/trunk/obj/instruction.class.php
ViewVC logotype

Diff of /trunk/obj/instruction.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2791 by vpihour, Thu Mar 6 16:58:31 2014 UTC revision 2792 by vpihour, Fri Mar 7 15:14:23 2014 UTC
# Line 924  class instruction extends instruction_ge Line 924  class instruction extends instruction_ge
924      }      }
925    
926      /**      /**
927         * Récupère la valeur du champ dans la restriction
928         * @param  string   $restrictionValue   Nom du champ
929         * @return mixed                        Valeur du champ
930         */
931        function getRestrictionValue($restrictionValue){
932    
933            // Initialisation de la valeur de retour
934            $return = false;
935    
936            // Récupére les valeurs du dossier
937            $value_dossier = $this->get_dossier_actual();
938    
939            //
940            if (is_numeric($restrictionValue)) {
941                $return = $restrictionValue;
942            }elseif (isset($value_dossier[$restrictionValue])) {
943                $return = $value_dossier[$restrictionValue];
944            }elseif (isset($this->valF[$restrictionValue])) {
945                $return = $this->valF[$restrictionValue];
946            }
947    
948            // Retourne la valeur du champ
949            return $return;
950        }
951    
952        /**
953       * Calcul des règle d'action.       * Calcul des règle d'action.
954       * @param string $rule      Règle d'action       * @param string $rule      Règle d'action
955       * @param string $rule_name Nom de la règle       * @param string $rule_name Nom de la règle

Legend:
Removed from v.2791  
changed lines
  Added in v.2792

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26