|
|
@@ -64,20 +64,24 @@
|
|
|
<title>Filter: Rename</title>
|
|
|
|
|
|
<itemizedlist>
|
|
|
- <listitem><para>
|
|
|
- Old method <acronym>API</acronym>:
|
|
|
- <methodname>Zend_Filter_File_Rename($oldfile, $newfile,
|
|
|
- $overwrite)</methodname>
|
|
|
- </para></listitem>
|
|
|
-
|
|
|
- <listitem><para>
|
|
|
- New method <acronym>API</acronym>:
|
|
|
- <methodname>Zend_Filter_File_Rename($options)</methodname>
|
|
|
- where <varname>$options</varname> accepts the following array keys:
|
|
|
- <emphasis>source</emphasis> equals to <varname>$oldfile</varname>,
|
|
|
- <emphasis>target</emphasis> equals to <varname>$newfile</varname>,
|
|
|
- <emphasis>overwrite</emphasis> equals to <varname>$overwrite</varname>.
|
|
|
- </para></listitem>
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ Old method <acronym>API</acronym>:
|
|
|
+ <methodname>Zend_Filter_File_Rename($oldfile, $newfile,
|
|
|
+ $overwrite)</methodname>
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
+
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ New method <acronym>API</acronym>:
|
|
|
+ <methodname>Zend_Filter_File_Rename($options)</methodname>
|
|
|
+ where <varname>$options</varname> accepts the following array keys:
|
|
|
+ <emphasis>source</emphasis> equals to <varname>$oldfile</varname>,
|
|
|
+ <emphasis>target</emphasis> equals to <varname>$newfile</varname>,
|
|
|
+ <emphasis>overwrite</emphasis> equals to <varname>$overwrite</varname>.
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
</itemizedlist>
|
|
|
|
|
|
<example id="migration.17.zend.file.transfer.validators.rename.example">
|
|
|
@@ -103,18 +107,22 @@ $upload->addFilter('Rename',
|
|
|
<title>Validator: Count</title>
|
|
|
|
|
|
<itemizedlist>
|
|
|
- <listitem><para>
|
|
|
- Old method <acronym>API</acronym>:
|
|
|
- <methodname>Zend_Validate_File_Count($min, $max)</methodname>
|
|
|
- </para></listitem>
|
|
|
-
|
|
|
- <listitem><para>
|
|
|
- New method <acronym>API</acronym>:
|
|
|
- <methodname>Zend_Validate_File_Count($options)</methodname>
|
|
|
- where <varname>$options</varname> accepts the following array keys:
|
|
|
- <emphasis>min</emphasis> equals to <varname>$min</varname>,
|
|
|
- <emphasis>max</emphasis> equals to <varname>$max</varname>.
|
|
|
- </para></listitem>
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ Old method <acronym>API</acronym>:
|
|
|
+ <methodname>Zend_Validate_File_Count($min, $max)</methodname>
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
+
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ New method <acronym>API</acronym>:
|
|
|
+ <methodname>Zend_Validate_File_Count($options)</methodname>
|
|
|
+ where <varname>$options</varname> accepts the following array keys:
|
|
|
+ <emphasis>min</emphasis> equals to <varname>$min</varname>,
|
|
|
+ <emphasis>max</emphasis> equals to <varname>$max</varname>.
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
</itemizedlist>
|
|
|
|
|
|
<example id="migration.17.zend.file.transfer.validators.count.example">
|
|
|
@@ -140,18 +148,23 @@ $upload->addValidator('Count',
|
|
|
<title>Validator:Extension</title>
|
|
|
|
|
|
<itemizedlist>
|
|
|
- <listitem><para>
|
|
|
- Old method <acronym>API</acronym>:
|
|
|
- <methodname>Zend_Validate_File_Extension($extension, $case)</methodname>
|
|
|
- </para></listitem>
|
|
|
-
|
|
|
- <listitem><para>
|
|
|
- New method <acronym>API</acronym>:
|
|
|
- <methodname>Zend_Validate_File_Extension($options)</methodname> where
|
|
|
- <varname>$options</varname> accepts the following array keys:
|
|
|
- <emphasis>*</emphasis> equals to <varname>$extension</varname> and can have
|
|
|
- any other key, <emphasis>case</emphasis> equals to <varname>$case</varname>.
|
|
|
- </para></listitem>
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ Old method <acronym>API</acronym>:
|
|
|
+ <methodname>Zend_Validate_File_Extension($extension, $case)</methodname>
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
+
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ New method <acronym>API</acronym>:
|
|
|
+ <methodname>Zend_Validate_File_Extension($options)</methodname> where
|
|
|
+ <varname>$options</varname> accepts the following array keys:
|
|
|
+ <emphasis>*</emphasis> equals to <varname>$extension</varname> and can
|
|
|
+ have any other key, <emphasis>case</emphasis> equals to
|
|
|
+ <varname>$case</varname>.
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
</itemizedlist>
|
|
|
|
|
|
<example id="migration.17.zend.file.transfer.validators.extension.example">
|
|
|
@@ -177,20 +190,25 @@ $upload->addValidator('Extension',
|
|
|
<title>Validator: FilesSize</title>
|
|
|
|
|
|
<itemizedlist>
|
|
|
- <listitem><para>
|
|
|
- Old method <acronym>API</acronym>:
|
|
|
- <methodname>Zend_Validate_File_FilesSize($min, $max,
|
|
|
- $bytestring)</methodname>
|
|
|
- </para></listitem>
|
|
|
-
|
|
|
- <listitem><para>
|
|
|
- New method <acronym>API</acronym>:
|
|
|
- <methodname>Zend_Validate_File_FilesSize($options)</methodname> where
|
|
|
- <varname>$options</varname> accepts the following array keys:
|
|
|
- <emphasis>min</emphasis> equals to <varname>$min</varname>,
|
|
|
- <emphasis>max</emphasis> equals to <varname>$max</varname>,
|
|
|
- <emphasis>bytestring</emphasis> equals to <varname>$bytestring</varname>.
|
|
|
- </para></listitem>
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ Old method <acronym>API</acronym>:
|
|
|
+ <methodname>Zend_Validate_File_FilesSize($min, $max,
|
|
|
+ $bytestring)</methodname>
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
+
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ New method <acronym>API</acronym>:
|
|
|
+ <methodname>Zend_Validate_File_FilesSize($options)</methodname> where
|
|
|
+ <varname>$options</varname> accepts the following array keys:
|
|
|
+ <emphasis>min</emphasis> equals to <varname>$min</varname>,
|
|
|
+ <emphasis>max</emphasis> equals to <varname>$max</varname>,
|
|
|
+ <emphasis>bytestring</emphasis> equals to
|
|
|
+ <varname>$bytestring</varname>.
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
</itemizedlist>
|
|
|
|
|
|
<para>
|
|
|
@@ -231,19 +249,23 @@ $upload->setUseByteSting(true); // set flag
|
|
|
<title>Validator: Hash</title>
|
|
|
|
|
|
<itemizedlist>
|
|
|
- <listitem><para>
|
|
|
- Old method <acronym>API</acronym>:
|
|
|
- <methodname>Zend_Validate_File_Hash($hash, $algorithm)</methodname>
|
|
|
- </para></listitem>
|
|
|
-
|
|
|
- <listitem><para>
|
|
|
- New method <acronym>API</acronym>:
|
|
|
- <methodname>Zend_Validate_File_Hash($options)</methodname>
|
|
|
- where <varname>$options</varname> accepts the following array keys:
|
|
|
- <emphasis>*</emphasis> equals to <varname>$hash</varname> and can have any
|
|
|
- other key, <emphasis>algorithm</emphasis> equals to
|
|
|
- <varname>$algorithm</varname>.
|
|
|
- </para></listitem>
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ Old method <acronym>API</acronym>:
|
|
|
+ <methodname>Zend_Validate_File_Hash($hash, $algorithm)</methodname>
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
+
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ New method <acronym>API</acronym>:
|
|
|
+ <methodname>Zend_Validate_File_Hash($options)</methodname>
|
|
|
+ where <varname>$options</varname> accepts the following array keys:
|
|
|
+ <emphasis>*</emphasis> equals to <varname>$hash</varname> and can have
|
|
|
+ any other key, <emphasis>algorithm</emphasis> equals to
|
|
|
+ <varname>$algorithm</varname>.
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
</itemizedlist>
|
|
|
|
|
|
<example id="migration.17.zend.file.transfer.validators.hash.example">
|
|
|
@@ -269,21 +291,25 @@ $upload->addValidator('Hash',
|
|
|
<title>Validator: ImageSize</title>
|
|
|
|
|
|
<itemizedlist>
|
|
|
- <listitem><para>
|
|
|
- Old method <acronym>API</acronym>:
|
|
|
- <methodname>Zend_Validate_File_ImageSize($minwidth, $minheight, $maxwidth,
|
|
|
- $maxheight)</methodname>
|
|
|
- </para></listitem>
|
|
|
-
|
|
|
- <listitem><para>
|
|
|
- New method <acronym>API</acronym>:
|
|
|
- <methodname>Zend_Validate_File_FilesSize($options)</methodname> where
|
|
|
- <varname>$options</varname> accepts the following array keys:
|
|
|
- <emphasis>minwidth</emphasis> equals to <varname>$minwidth</varname>,
|
|
|
- <emphasis>maxwidth</emphasis> equals to <varname>$maxwidth</varname>,
|
|
|
- <emphasis>minheight</emphasis> equals to <varname>$minheight</varname>,
|
|
|
- <emphasis>maxheight</emphasis> equals to <varname>$maxheight</varname>.
|
|
|
- </para></listitem>
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ Old method <acronym>API</acronym>:
|
|
|
+ <methodname>Zend_Validate_File_ImageSize($minwidth, $minheight,
|
|
|
+ $maxwidth, $maxheight)</methodname>
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
+
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ New method <acronym>API</acronym>:
|
|
|
+ <methodname>Zend_Validate_File_FilesSize($options)</methodname> where
|
|
|
+ <varname>$options</varname> accepts the following array keys:
|
|
|
+ <emphasis>minwidth</emphasis> equals to <varname>$minwidth</varname>,
|
|
|
+ <emphasis>maxwidth</emphasis> equals to <varname>$maxwidth</varname>,
|
|
|
+ <emphasis>minheight</emphasis> equals to <varname>$minheight</varname>,
|
|
|
+ <emphasis>maxheight</emphasis> equals to <varname>$maxheight</varname>.
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
</itemizedlist>
|
|
|
|
|
|
<example id="migration.17.zend.file.transfer.validators.imagesize.example">
|
|
|
@@ -311,19 +337,25 @@ $upload->addValidator('ImageSize',
|
|
|
<title>Validator: Size</title>
|
|
|
|
|
|
<itemizedlist>
|
|
|
- <listitem><para>
|
|
|
- Old method <acronym>API</acronym>: <methodname>Zend_Validate_File_Size($min,
|
|
|
- $max, $bytestring)</methodname>
|
|
|
- </para></listitem>
|
|
|
-
|
|
|
- <listitem><para>
|
|
|
- New method <acronym>API</acronym>:
|
|
|
- <methodname>Zend_Validate_File_Size($options)</methodname>
|
|
|
- where <varname>$options</varname> accepts the following array keys:
|
|
|
- <emphasis>min</emphasis> equals to <varname>$min</varname>,
|
|
|
- <emphasis>max</emphasis> equals to <varname>$max</varname>,
|
|
|
- <emphasis>bytestring</emphasis> equals to <varname>$bytestring</varname>.
|
|
|
- </para></listitem>
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ Old method <acronym>API</acronym>:
|
|
|
+ <methodname>Zend_Validate_File_Size($min, $max,
|
|
|
+ $bytestring)</methodname>
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
+
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ New method <acronym>API</acronym>:
|
|
|
+ <methodname>Zend_Validate_File_Size($options)</methodname>
|
|
|
+ where <varname>$options</varname> accepts the following array keys:
|
|
|
+ <emphasis>min</emphasis> equals to <varname>$min</varname>,
|
|
|
+ <emphasis>max</emphasis> equals to <varname>$max</varname>,
|
|
|
+ <emphasis>bytestring</emphasis> equals to
|
|
|
+ <varname>$bytestring</varname>.
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
</itemizedlist>
|
|
|
|
|
|
<example id="migration.17.zend.file.transfer.validators.size.example">
|
|
|
@@ -413,7 +445,6 @@ if (Zend_Locale::isLocale($locale, false)) {
|
|
|
// original string is no locale but can be rerouted
|
|
|
}
|
|
|
]]></programlisting>
|
|
|
-
|
|
|
</example>
|
|
|
</sect3>
|
|
|
|
|
|
@@ -524,7 +555,6 @@ $language = new Zend_Translate('gettext',
|
|
|
'auto',
|
|
|
array('disableNotices' => true));
|
|
|
]]></programlisting>
|
|
|
-
|
|
|
</example>
|
|
|
</sect3>
|
|
|
</sect2>
|
|
|
@@ -584,4 +614,4 @@ $view->setLfiProtection(false);
|
|
|
</sect1>
|
|
|
<!--
|
|
|
vim:se ts=4 sw=4 et:
|
|
|
--->
|
|
|
+-->
|