/** * @name existe($pOperation) * @param OperationVO ou interger * @return bool * @desc Vérifie si l'Operation existe */ public function existe($pOperation) { $lOperationValid = new OperationValid(); if (is_object($pOperation) && $lOperationValid->estOperation($pOperation)) { $lOperation = $this->get($pOperation); if ($lOperation->getId() == $pOperation->getId()) { return true; } else { return false; } } else { if (is_int((int) $pOperation)) { if ($lOperationValid->id($pOperation)) { $lOperation = $this->get($pOperation); if ($lOperation->getId() == $pOperation) { return true; } else { return false; } } } else { return false; } } }