|
@@ 1798-1812 (lines=15) @@
|
| 1795 |
|
} |
| 1796 |
|
|
| 1797 |
|
// ----- Look for mandatory options |
| 1798 |
|
if ($v_requested_options !== false) { |
| 1799 |
|
for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) { |
| 1800 |
|
// ----- Look for mandatory option |
| 1801 |
|
if ($v_requested_options[$key] == 'mandatory') { |
| 1802 |
|
// ----- Look if present |
| 1803 |
|
if (!isset($v_result_list[$key])) { |
| 1804 |
|
// ----- Error log |
| 1805 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Missing mandatory parameter ".PclZipUtilOptionText($key)."(".$key.")"); |
| 1806 |
|
|
| 1807 |
|
// ----- Return |
| 1808 |
|
return PclZip::errorCode(); |
| 1809 |
|
} |
| 1810 |
|
} |
| 1811 |
|
} |
| 1812 |
|
} |
| 1813 |
|
|
| 1814 |
|
// ----- Look for default values |
| 1815 |
|
if (!isset($v_result_list[PCLZIP_OPT_TEMP_FILE_THRESHOLD])) { |
|
@@ 1969-1980 (lines=12) @@
|
| 1966 |
|
} |
| 1967 |
|
|
| 1968 |
|
// ----- Look for mandatory options |
| 1969 |
|
if ($v_requested_options !== false) { |
| 1970 |
|
for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) { |
| 1971 |
|
// ----- Look for mandatory option |
| 1972 |
|
if ($v_requested_options[$key] == 'mandatory') { |
| 1973 |
|
// ----- Look if present |
| 1974 |
|
if (!isset($p_file_list[$key])) { |
| 1975 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Missing mandatory parameter ".PclZipUtilOptionText($key)."(".$key.")"); |
| 1976 |
|
return PclZip::errorCode(); |
| 1977 |
|
} |
| 1978 |
|
} |
| 1979 |
|
} |
| 1980 |
|
} |
| 1981 |
|
|
| 1982 |
|
// end foreach |
| 1983 |
|
} |