/**
         * Closes the file.
         */
        public bool zip_close(@NotNull ZipDirectory directory)
        {
            if (directory == null)
            {
                return(false);
            }

            return(directory.zip_close());
        }
Exemple #2
0
        /**
         * Returns the number of affected rows.
         */
        public static int mysqli_affected_rows(Env env, @NotNull Mysqli conn)
        {
            if (conn == null)
            {
                return(-1);
            }

            return(conn.affected_rows(env));
        }
        /**
         * Starts a CData section
         */
        public static bool xmlwriter_end_cdata(@NotNull XMLWriter w)
        {
            if (w == null)
            {
                return(false);
            }

            return(w.endCData());
        }
        /**
         * Returns the file's uncompressed size.
         *
         * @return false if zipEntry @is null
         */
        public Value zip_entry_filesize(@NotNull QuercusZipEntry entry)
        {
            if (entry == null)
            {
                return(BooleanValue.FALSE);
            }

            return(LongValue.create(entry.zip_entry_filesize()));
        }
        /**
         * Starts a comment section
         */
        public static bool xmlwriter_end_comment(@NotNull XMLWriter w)
        {
            if (w == null)
            {
                return(false);
            }

            return(w.endComment());
        }
        /**
         * Ends a DTD
         */
        public static bool xmlwriter_end_dtd(@NotNull XMLWriter w)
        {
            if (w == null)
            {
                return(false);
            }

            return(w.endDTD());
        }
        /**
         * Flushes the output and returns the result.
         */
        public static Value xmlwriter_flush(@NotNull XMLWriter w)
        {
            if (w == null)
            {
                return(BooleanValue.FALSE);
            }

            return(w.flush());
        }
        /**
         * Ends an attribute
         */
        public static bool xmlwriter_end_attribute(@NotNull XMLWriter w)
        {
            if (w == null)
            {
                return(false);
            }

            return(w.endAttribute());
        }
        /**
         * Returns the memory result
         */
        public static Value xmlwriter_output_memory(@NotNull XMLWriter w)
        {
            if (w == null)
            {
                return(NullValue.NULL);
            }

            return(w.outputMemory());
        }
        /**
         * Closes this cURL object.
         *
         * @param env
         * @param curl
         */
        public static void curl_close(Env env,
                                      @NotNull CurlResource curl)
        {
            if (curl == null)
            {
                return;
            }

            curl.close();
        }
        /**
         * Ends an element
         */
        public static bool xmlwriter_full_end_element(Env env,
                                                      @NotNull XMLWriter w)
        {
            if (w == null)
            {
                return(false);
            }

            return(w.fullEndElement(env));
        }
        public static CurlResource curl_copy_handle(Env env,
                                                    @NotNull CurlResource curl)
        {
            if (curl == null)
            {
                return(null);
            }

            return(curl.clone());
        }
        /**
         * Returns the error string from the last operation.
         *
         * @param env
         * @param curl
         */
        public static Value curl_error(Env env,
                                       @NotNull CurlResource curl)
        {
            if (curl == null)
            {
                return(BooleanValue.FALSE);
            }

            return(env.createString(curl.getError()));
        }
        /**
         * @param env
         * @param curl
         */
        public static Value curl_exec(Env env,
                                      @NotNull CurlResource curl)
        {
            if (curl == null)
            {
                return(BooleanValue.FALSE);
            }

            return(curl.execute(env, true));
        }
        /**
         * Returns the error code from the last operation.
         *
         * @param env
         * @param curl
         */
        public static Value curl_errno(Env env,
                                       @NotNull CurlResource curl)
        {
            if (curl == null)
            {
                return(BooleanValue.FALSE);
            }

            return(LongValue.create(curl.getErrorCode()));
        }
        /**
         * Returns the file name.
         *
         * @return false if zipEntry @is null
         */
        public Value zip_entry_name(Env env,
                                    @NotNull QuercusZipEntry entry)
        {
            if (entry == null)
            {
                return(BooleanValue.FALSE);
            }

            return(env.createString(entry.zip_entry_name()));
        }
Exemple #17
0
  static public DOMDocumentType createDocumentType(
      Env env,
      @NotNull string qualifiedName,
      @Optional string publicId,
      @Optional string systemId) {
    if (qualifiedName == null)
      return null;

    if ((publicId != null && publicId.length() > 0)
        && (publicId != null && publicId.length() > 0))
      return get(env).createDocumentType(qualifiedName, publicId, systemId);
    else
      return get(env).createDocumentType(qualifiedName);
  }
        public ZipDirectory zip_open(Env env,
                                     @NotNull StringValue filename)
        {
            if (filename == null || filename.length() == 0)
            {
                return(null);
            }

            BinaryStream s = FileModule.fopen(env, filename, "rb", false, null);

            if (s == null)
            {
                return(null);
            }

            return(new ZipDirectory((BinaryInput)s));
        }
        public QuercusZipEntry zip_read(Env env,
                                        @NotNull ZipDirectory directory)
        {
            if (directory == null)
            {
                return(null);
            }

            try {
                QuercusZipEntry qze = directory.zip_read();
                zip_entry_open(env, directory, qze, "rb");

                return(qze);
            } catch (IOException e) {
                throw new QuercusModuleException(e);
            }
        }
Exemple #20
0
 /**
  * Turns auto-commit on or off.
  */
 public static bool mysqli_autocommit(Env env,
                                      @NotNull Mysqli conn,
 /**
  * enables indentation
  */
 public static bool xmlwriter_set_indent(@NotNull XMLWriter w,
 public static bool socket_bind(Env env,
                                @NotNull SocketInputOutput socket,
Exemple #23
0
 /**
  * @see bool Xml.xml_parse
  *
  * @param parser
  * @param data
  * @param isFinal
  * @return false if parser == null
  *
  */
 public int xml_parse(Env env,
                      @NotNull Xml parser,
 /**
  * Returns information about the last request.
  *
  * @param env
  * @param curl
  * @param option type of information to return
  */
 public static Value curl_getinfo(Env env,
                                  @NotNull CurlResource curl,
 /**
  * Opens entry for decompression.
  *
  * @return true on success or false on failure
  */
 public bool zip_entry_open(Env env,
                            @NotNull ZipDirectory directory,
Exemple #26
0
 public bool send(@NotNull Value value, @Optional JMSQueue replyTo)
 /**
  * Sets the current font
  *
  * @param name the font name, e.g. Helvetica
  * @param encoding the font encoding, e.g. winansi
  * @param opt any options
  */
 public bool setfont(@NotNull PDFFont font, double size)