|
@@ 1814-1828 (lines=15) @@
|
| 1811 |
|
}
|
| 1812 |
|
|
| 1813 |
|
// ----- Look for mandatory options
|
| 1814 |
|
if ($v_requested_options !== false) {
|
| 1815 |
|
for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) {
|
| 1816 |
|
// ----- Look for mandatory option
|
| 1817 |
|
if ($v_requested_options[$key] == 'mandatory') {
|
| 1818 |
|
// ----- Look if present
|
| 1819 |
|
if (!isset($v_result_list[$key])) {
|
| 1820 |
|
// ----- Error log
|
| 1821 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Missing mandatory parameter ".PclZipUtilOptionText($key)."(".$key.")");
|
| 1822 |
|
|
| 1823 |
|
// ----- Return
|
| 1824 |
|
return PclZip::errorCode();
|
| 1825 |
|
}
|
| 1826 |
|
}
|
| 1827 |
|
}
|
| 1828 |
|
}
|
| 1829 |
|
|
| 1830 |
|
// ----- Look for default values
|
| 1831 |
|
if (!isset($v_result_list[PCLZIP_OPT_TEMP_FILE_THRESHOLD])) {
|
|
@@ 1984-1995 (lines=12) @@
|
| 1981 |
|
}
|
| 1982 |
|
|
| 1983 |
|
// ----- Look for mandatory options
|
| 1984 |
|
if ($v_requested_options !== false) {
|
| 1985 |
|
for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) {
|
| 1986 |
|
// ----- Look for mandatory option
|
| 1987 |
|
if ($v_requested_options[$key] == 'mandatory') {
|
| 1988 |
|
// ----- Look if present
|
| 1989 |
|
if (!isset($p_file_list[$key])) {
|
| 1990 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Missing mandatory parameter ".PclZipUtilOptionText($key)."(".$key.")");
|
| 1991 |
|
return PclZip::errorCode();
|
| 1992 |
|
}
|
| 1993 |
|
}
|
| 1994 |
|
}
|
| 1995 |
|
}
|
| 1996 |
|
|
| 1997 |
|
// end foreach
|
| 1998 |
|
}
|