X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FUtils%2FZip.php;h=38213520a250d716181d9f06739504828c23c195;hb=d44c681d9105af668449d16d9f53832d7982f47e;hp=3fe425b23ad50cc6fe1c83af973d785228a077a9;hpb=5563fe43b44b754e6441841a5d92664470b20366;p=civicrm-core.git diff --git a/CRM/Utils/Zip.php b/CRM/Utils/Zip.php index 3fe425b23a..38213520a2 100644 --- a/CRM/Utils/Zip.php +++ b/CRM/Utils/Zip.php @@ -41,6 +41,8 @@ class CRM_Utils_Zip { /** * Given a zip file which contains a single root directory, determine the root's name. * + * @param ZipArchive $zip + * * @return mixed; FALSE if #root level items !=1; otherwise, the name of base dir */ static public function findBaseDirName(ZipArchive $zip) { @@ -69,6 +71,8 @@ class CRM_Utils_Zip { /** * Given a zip file, find all directory names in the root * + * @param ZipArchive $zip + * * @return array(string), no trailing / */ static public function findBaseDirs(ZipArchive $zip) { @@ -89,6 +93,9 @@ class CRM_Utils_Zip { /** * Determine the name of the folder within a zip * + * @param ZipArchive $zip + * @param $expected + * * @return string or FALSE */ static public function guessBasedir(ZipArchive $zip, $expected) {