Exemplo n.º 1
0
	public function getDomaineCpt() {
		return DomaineCpt::getById($this->getIdDomaineCpt());
	}
Exemplo n.º 2
0
			break;
		case 'addPointLib':
			$libPointCpt = $_GET['libPointCpt'];
			$idDomaineCpt = $_GET['idDomaineCpt'];
			$domaine = DomaineCpt::getById($idDomaineCpt);
			$point = new PointCpt();
			$point->setIdDomaineCpt($domaine->getIdDomaineCpt());
			$point->setLibellePointCpt($libPointCpt);
			$point->insert();
			$idEval = $_GET['idEvaluation'];
			echo majEvalCompetence($idEval, $point->getIdPointCpt());
			break;

		case 'addPointId':
			$idDomaineCpt = $_GET['idDomaine'];
			$domaine = DomaineCpt::getById($idDomaineCpt);
			$idPointCpt = (isset($_GET['idPointCpt'])?$_GET['idPointCpt']:$idPointCpt);
			$point = PointCpt::getById($idPointCpt);
			$idEval = $_GET['idEvaluation'];
			echo majEvalCompetence($idEval, $idPointCpt);
			break;
		case 'getListe':
			$return = array();
			$idEval = $_GET['idEvaluation'];
			$pointsCpt = PointCpt::getByEvaluation($idEval);
			foreach ($pointsCpt as $pointCpt){
				$tmp = array();
				$tmp['pointCpt'] = $pointCpt->toArray();
				$tmp['domaineCpt'] = $pointCpt->getDomaineCpt()->toArray();
				$return[] = $tmp;
				$tmp = array();