PclZip::delete() –

You appear to be a bot. Output may be restricted

Description

Usage

PclZip::delete();

Parameters

Returns

void

Source

File name: wordpress/wp-admin/includes/class-pclzip.php
Lines:

1 to 51 of 51
  function delete()
  {
    $v_result=1;

    // ----- Reset the error handler
    $this->PclZip::privErrorReset();

    // ----- Check archive
    if (!$this->PclZip::privCheckFormat()) {
      return(0);
    }

    // ----- Set default values
    $v_options = array();

    // ----- Look for variable options arguments
    $v_size = func_num_args();

    // ----- Look for arguments
    if ($v_size > 0) {
      // ----- Get the arguments
      $v_arg_list = func_get_args();

      // ----- Parse the options
      $v_result = $this->PclZip::privParseOptions($v_arg_list, $v_size, $v_options,
                                        array (PCLZIP_OPT_BY_NAME => 'optional',
                                               PCLZIP_OPT_BY_EREG => 'optional',
                                               PCLZIP_OPT_BY_PREG => 'optional',
                                               PCLZIP_OPT_BY_INDEX => 'optional' ));
      if ($v_result != 1) {
          return 0;
      }
    }

    // ----- Magic quotes trick
    $this->PclZip::privDisableMagicQuotes();

    // ----- Call the delete fct
    $v_list = array();
    if (($v_result = $this->PclZip::privDeleteByRule($v_list, $v_options)) != 1) {
      $this->PclZip::privSwapBackMagicQuotes();
      unset($v_list);
      return(0);
    }

    // ----- Magic quotes trick
    $this->PclZip::privSwapBackMagicQuotes();

    // ----- Return
    return $v_list;
  }
 

 View on GitHub View on Trac