/** * Provoquer une ErrorException et/ou retourne la dernière provoquée. * * @param string $message=null Le message de l'erreur * @param int $code=0 Le code de l'erreur * @return ErrorException|null */ public function error($message = null, $code = 0) { if ($message !== null) { $error = new ErrorException($message, $code); self::$_lastError = $error; if ($this->throwExceptions) { throw $error; } } return self::$_lastError; }
return count($this->_data); } /** * Si l'on essaie d'accéder à l'objet comme à un tableau. * * @param string|int $offset * @return mixed */ public function offsetGet($offset) { $data = $this->_getProperty($offset); if (is_array($data)) { return new AlloData($data, $this->utf8Decode);