/** * adds a magic method to the CertissimTransactionResponse objects * * @param string $name name of the called method * @param array $params params given to the method called * @return mixed */ public function __call($name, array $params) { //getEvalItem returns the value of the attribute Item in the element <eval> if it exists, null otherwise if (preg_match('#^getEval.+$#', $name)) { $elementname = strtolower(preg_replace('#^getEval(.+)$#', '$1', $name)); return $this->getEvalItem($elementname); } return parent::__call($name, $params); }
public function __construct($data) { $data = preg_replace('#\\"#', '\'', $data); parent::__construct($data); if ($this->getName() != self::ROOT_NAME) { $msg = "L'�l�ment racine n'est pas valide : " . $this->getName() . " trouve, " . self::ROOT_NAME . " attendu."; CertissimLogger::insertLog(__FILE__ . " - __construct()", $msg); } }